|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.AbstractComponent
nextapp.echo.Container
echopoint.EchoPointComponent
echopoint.positionable.AbstractScrollableComponent
public abstract class AbstractScrollableComponent
The AbstractScrollableComponent is a base component class that
implements Scrollable, Postionable
and Clippable via the all in one interface
ScrollableContainer.
Use this as the basis of any positionable components if it is an appropriate base class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class echopoint.EchoPointComponent |
|---|
EchoPointComponent.NestedStyleInfo |
| Nested classes/interfaces inherited from interface echopoint.positionable.ScrollableContainer |
|---|
ScrollableContainer.NestedStyleInfo |
| Field Summary |
|---|
| Fields inherited from class echopoint.EchoPointComponent |
|---|
STYLE_TOOL_TIP_TEXT, TOOL_TIP_TEXT_CHANGED_PROPERTY, toolTipPopUp |
| Fields inherited from interface echopoint.positionable.ScrollableContainer |
|---|
HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, INSETS_CHANGED_PROPERTY, STYLE_HORIZONTAL_ALIGNMENT, STYLE_INSETS, STYLE_VERTICAL_ALIGNMENT, VERTICAL_ALIGNMENT_CHANGED_PROPERTY |
| Fields inherited from interface echopoint.positionable.Scrollable |
|---|
HEIGHT_CHANGED_PROPERTY, SCROLL_BAR_X_CHANGED_PROPERTY, SCROLL_BAR_Y_CHANGED_PROPERTY, SCROLLBAR_POLICY_CHANGED_PROPERTY, SCROLLBARS_ALWAYS, SCROLLBARS_AUTO, SCROLLBARS_CLIPHIDE, SCROLLBARS_NEVER, STYLE_HEIGHT, STYLE_SCROLL_BAR_POLICY, STYLE_WIDTH, UNDEFINED, undefinedSymbolic, WIDTH_CHANGED_PROPERTY |
| Fields inherited from interface echopoint.positionable.Positionable |
|---|
POSITION_CHANGED_PROPERTY, POSITIONING_ABSOLUTE, POSITIONING_FLOW, POSITIONING_RELATIVE, positioningSymbolics, STYLE_BOTTOM, STYLE_LEFT, STYLE_POSITIONING, STYLE_RIGHT, STYLE_TOP, STYLE_ZINDEX, UNDEFINED, undefinedSymbolic |
| Fields inherited from interface echopoint.positionable.Clippable |
|---|
CLIP_RECT_CHANGED_PROPERTY, STYLE_CLIP_RECT |
| Fields inherited from interface echopoint.layout.LayoutManageable |
|---|
LAYOUT_MANAGED_CHANGED_PROPERTY |
| Fields inherited from interface echopoint.positionable.MouseCursorable |
|---|
borderStyleSymbolics, CURSOR_AUTO, CURSOR_CROSSHAIR, CURSOR_CUSTOM_URI, CURSOR_DEFAULT, CURSOR_E_RESIZE, CURSOR_HELP, CURSOR_MOVE, CURSOR_N_RESIZE, CURSOR_NE_RESIZE, CURSOR_NW_RESIZE, CURSOR_POINTER, CURSOR_S_RESIZE, CURSOR_SE_RESIZE, CURSOR_SW_RESIZE, CURSOR_TEXT, CURSOR_W_RESIZE, CURSOR_WAIT, STYLE_MOUSE_CURSOR, STYLE_MOUSE_CURSOR_URI |
| Constructor Summary | |
|---|---|
AbstractScrollableComponent()
Construct a AbstractScrollableComponent with no direct positioning in affect at all. |
|
AbstractScrollableComponent(int left,
int top)
Constructs a AbstractScrollableComponent with to right and bottom
properties set to Positionable.UNDEFINED, a zIndex of 0 and
with POSITIONING_ABSOLUTE, SCROLLBARS_NEVER and
no clipping rectangle. |
|
AbstractScrollableComponent(int left,
int top,
int right,
int bottom)
Constructs a AbstractScrollableComponent with a zIndex of 0
and with POSITIONING_ABSOLUTE, SCROLLBARS_NEVER and
no clipping rectangle. |
|
AbstractScrollableComponent(int left,
int top,
int right,
int bottom,
int zIndex)
Constructs a AbstractScrollableComponent with POSITIONING_ABSOLUTE,
SCROLLBARS_NEVER and no clipping rectangle. |
|
AbstractScrollableComponent(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning)
Constructs a AbstractScrollableComponent with SCROLLBARS_NEVER and
no clipping rectangle. |
|
AbstractScrollableComponent(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning,
int scrollBarPolicy)
Constructs a AbstractScrollableComponent |
|
AbstractScrollableComponent(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning,
int scrollBarPolicy,
int[] clipRect)
Constructs a AbstractScrollableComponent with all the properties |
|
| Method Summary | |
|---|---|
void |
add(Component c)
Adds a Component to the AbstractScrollableComponent
This method then informs any LayoutManager that is present. |
void |
add(Component c,
int index)
Adds a Component to the AbstractScrollableComponent at
the specified index
This method then informs any LayoutManager that is present. |
void |
add(Component comp,
java.lang.Object constraints)
Adds a Component to the AbstractScrollableComponent at
the end of the list. |
void |
add(Component comp,
java.lang.Object constraints,
int index)
Adds a Component to the AbstractScrollableComponent at
the specified index. |
protected void |
addImpl(Component comp,
java.lang.Object contraints,
int index)
The common implementation of add that notifies the LayoutManager if necessary |
void |
applyStyle(Style style)
Sets stylistic properties of this component based on a Style
object. |
void |
clearPositioning()
This sets all the positioning attributes (left,top,right,bottom,z-index) to Integer.MAX, the positioning POSITIONING_FLOW and the scroll bar policy to SCROLLBAR_NONE. |
Color |
getBorderColor()
|
int |
getBorderSize()
|
int |
getBorderStyle()
Returns the border style of the Borderable. |
int |
getBottom()
Returns the bottom Y position of the component |
Color |
getBottomBorderColor()
|
int |
getBottomBorderSize()
|
int |
getBottomBorderStyle()
|
ClipRect |
getClipRect()
Returns the clipping rectangle on the component. |
int |
getHeight()
Returns the height of the component |
int |
getHorizontalAlignment()
Returns the horizontal alignment of the contents of this container. |
LayoutManager |
getLayoutManager()
Returns the LayoutManager of the LayoutManageable container, or null if one is not present. |
int |
getLeft()
Returns the left X position of the component |
Color |
getLeftBorderColor()
|
int |
getLeftBorderSize()
|
int |
getLeftBorderStyle()
|
int |
getPositioning()
This can be one of : POSITIONING_NONE POSITIONING_ABSOLUTE POSITIONING_RELATIVE |
int |
getRight()
Returns the right X position of the component |
Color |
getRightBorderColor()
|
int |
getRightBorderSize()
|
int |
getRightBorderStyle()
|
int |
getScreenHeight()
This convenience method returns the current client screen height. |
static int |
getScreenHeight(EchoInstance instance)
This convenience method returns the current client screen height. |
int |
getScreenWidth()
This convenience method returns the current client screen width. |
static int |
getScreenWidth(EchoInstance instance)
This convenience method returns the current client screen width. |
int |
getScrollBarPolicy()
Returns the ScrollBarPolicy in place This can be one of : SCOLLBARS_NONE SCOLLBARS_ALWAYS SCOLLBARS_AUTO |
int |
getScrollBarX()
Returns the position of the horizontal scroll bar, in pixels offset from the left of the component. |
int |
getScrollBarY()
Returns the position of the vertical scroll bar, in pixels offset from the top the component. |
int |
getTop()
Returns the top Y position of the component |
Color |
getTopBorderColor()
|
int |
getTopBorderSize()
|
int |
getTopBorderStyle()
|
int |
getVerticalAlignment()
Returns the vertical alignment of the contents of this container. |
int |
getWidth()
Returns the width of the component |
int |
getzIndex()
Returns the z-index of the component |
boolean |
isPositioned()
This returns true if any positioning is in place |
void |
remove(Component c)
Removes a component from the ScrollablePanel. |
void |
remove(int index)
Removes a component from the ScrollablePanel at the given index. |
java.lang.Object |
set(java.lang.reflect.Field field,
java.lang.Object newValue)
Called to save the old value of a field, set in a new value and return the old value of a field. |
void |
setBorderColor(Color newBorderColor)
Sets the Color of the Borderable's border. |
void |
setBorderSize(int newBorderSize)
Sets the size of the Borderables's border. |
void |
setBorderStyle(int borderStyle)
Sets the border style of the Borderable. |
void |
setBottom(int newValue)
Sets the bottom Y position of the component |
void |
setBottomBorderColor(Color borderColor)
Sets the Color of the Borderable's bottom border. |
void |
setBottomBorderSize(int borderSize)
Sets the size of the Borderables's bottom border. |
void |
setBottomBorderStyle(int borderStyle)
Sets the border style of the Borderables's bottom border. |
void |
setClipRect(ClipRect clipRect)
Sets the clipping rectangle of the component. |
void |
setClipRect(int[] clipRectArr)
Sets the clipping rectangle of the component. |
void |
setClipRect(int x,
int y,
int width,
int height)
Sets the clipping rectangle of the component. |
void |
setHeight(int newValue)
Sets the height of the component |
void |
setHorizontalAlignment(int newValue)
Sets the horizontal alignment of the contents of this container. |
void |
setLayoutManager(LayoutManager newLayoutManager)
Sets a new LayoutManager into the LayoutManageable container. |
void |
setLeft(int newValue)
Set the left X position of the component |
void |
setLeftBorderColor(Color borderColor)
Sets the Color of the Borderable's left border. |
void |
setLeftBorderSize(int borderSize)
Sets the size of the Borderables's left border. |
void |
setLeftBorderStyle(int borderStyle)
Sets the border style of the Borderables's left border. |
void |
setPositioning(int newPositioning)
Sets the positioning of the component This can be one of : POSITIONING_NONE POSITIONING_ABSOLUTE POSITIONING_RELATIVE |
void |
setRight(int newValue)
Sets the right X position of the component |
void |
setRightBorderColor(Color borderColor)
Sets the Color of the Borderable's right border. |
void |
setRightBorderSize(int borderSize)
Sets the size of the Borderables's right border. |
void |
setRightBorderStyle(int borderStyle)
Sets the border style of the Borderables's right border. |
void |
setScrollBarPolicy(int newScrollBarPolicy)
This sets the scroll bar policy to use. |
void |
setScrollBarX(int newValue)
Sets the position of the horizontal scroll bar, in pixels offset from the left of the component. |
void |
setScrollBarY(int newValue)
Sets the position of the vertical scroll bar, in pixels offset from the top of the component. |
void |
setTop(int newValue)
Sets the top Y position of the component |
void |
setTopBorderColor(Color borderColor)
Sets the Color of the Borderable's top border. |
void |
setTopBorderSize(int borderSize)
Sets the size of the Borderables's top border. |
void |
setTopBorderStyle(int borderStyle)
Sets the border style of the Borderables's top border. |
void |
setVerticalAlignment(int newValue)
Sets the vertical alignment of the contents of this container. |
void |
setWidth(int newValue)
Sets the width of the component |
void |
setzIndex(int newValue)
Sets the z-index of the component |
| Methods inherited from class echopoint.EchoPointComponent |
|---|
getMouseCursor, getMouseCursorURI, getToolTipPopUp, getToolTipText, set, set, set, set, set, set, set, set, set, setEnabledAllChildren, setMouseCursor, setMouseCursorURI, setToolTipText, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface echopoint.positionable.ScrollableContainer |
|---|
getInsets, setInsets |
| Constructor Detail |
|---|
public AbstractScrollableComponent()
public AbstractScrollableComponent(int left,
int top)
AbstractScrollableComponent with to right and bottom
properties set to Positionable.UNDEFINED, a zIndex of 0 and
with POSITIONING_ABSOLUTE, SCROLLBARS_NEVER and
no clipping rectangle.
public AbstractScrollableComponent(int left,
int top,
int right,
int bottom)
AbstractScrollableComponent with a zIndex of 0
and with POSITIONING_ABSOLUTE, SCROLLBARS_NEVER and
no clipping rectangle.
public AbstractScrollableComponent(int left,
int top,
int right,
int bottom,
int zIndex)
AbstractScrollableComponent with POSITIONING_ABSOLUTE,
SCROLLBARS_NEVER and no clipping rectangle.
public AbstractScrollableComponent(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning)
AbstractScrollableComponent with SCROLLBARS_NEVER and
no clipping rectangle.
public AbstractScrollableComponent(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning,
int scrollBarPolicy)
AbstractScrollableComponent
public AbstractScrollableComponent(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning,
int scrollBarPolicy,
int[] clipRect)
AbstractScrollableComponent with all the properties
| Method Detail |
|---|
public void add(Component c)
Component to the AbstractScrollableComponent
This method then informs any LayoutManager that is present.
add in interface LayoutManageableadd in interface Componentadd in class AbstractComponentc - The child component to add.
public void add(Component c,
int index)
Component to the AbstractScrollableComponent at
the specified index
This method then informs any LayoutManager that is present.
add in interface LayoutManageableadd in interface Componentadd in class AbstractComponentc - The child component to add.index - The index at which to add the child component, or -1 to add
the component at the end.
public void add(Component comp,
java.lang.Object constraints)
Component to the AbstractScrollableComponent at
the end of the list.
This method then informs any LayoutManager that is present.
add in interface LayoutManageable
public void add(Component comp,
java.lang.Object constraints,
int index)
Component to the AbstractScrollableComponent at
the specified index.
This method then informs any LayoutManager that is present.
add in interface LayoutManageable
protected void addImpl(Component comp,
java.lang.Object contraints,
int index)
public void applyStyle(Style style)
ComponentStyle
object. The version of this method in Component will set
foreground and background colors and the font from the style if they are
present. Components should override this method if they allow more
properties to be set from a style object, and should call
super.applyStyle() if necessary.
applyStyle in interface BorderableapplyStyle in interface ClippableapplyStyle in interface MouseCursorableapplyStyle in interface PositionableapplyStyle in interface ScrollableapplyStyle in interface ComponentapplyStyle in class EchoPointComponentstyle - The style object from which to retrieve properties for this
Component.Component.applyStyle(nextapp.echo.Style)public void clearPositioning()
clearPositioning in interface Positionablepublic int getBottom()
getBottom in interface Positionablepublic ClipRect getClipRect()
getClipRect in interface Clippablepublic int getHeight()
getHeight in interface Scrollablepublic int getHorizontalAlignment()
getHorizontalAlignment in interface ScrollableContainerpublic LayoutManager getLayoutManager()
getLayoutManager in interface LayoutManageablepublic int getLeft()
getLeft in interface Positionablepublic int getPositioning()
getPositioning in interface Positionablepublic int getRight()
getRight in interface Positionablepublic int getScreenHeight()
public static int getScreenHeight(EchoInstance instance)
public int getScreenWidth()
public static int getScreenWidth(EchoInstance instance)
public int getScrollBarPolicy()
getScrollBarPolicy in interface Scrollablepublic int getScrollBarX()
getScrollBarX in interface Scrollablepublic int getScrollBarY()
getScrollBarY in interface Scrollablepublic int getTop()
getTop in interface Positionablepublic int getVerticalAlignment()
getVerticalAlignment in interface ScrollableContainerpublic int getWidth()
getWidth in interface Scrollablepublic int getzIndex()
getzIndex in interface Positionablepublic boolean isPositioned()
isPositioned in interface Positionablepublic void remove(int index)
ScrollablePanel at the given index.
This method then informs any LayoutManager that is removed.
remove in interface LayoutManageableremove in interface Componentremove in class AbstractComponentindex - The index of the child component to remove.public void remove(Component c)
ScrollablePanel.
This method then informs any LayoutManager that is removed.
remove in interface LayoutManageableremove in interface Componentremove in class AbstractComponentc - The child component to remove.public void setBottom(int newValue)
setBottom in interface Positionablepublic void setClipRect(int[] clipRectArr)
eg. new int { 2,3,10,15}
If no clipping is required, this should be set to null.
setClipRect in interface Clippable
public void setClipRect(int x,
int y,
int width,
int height)
setClipRect in interface Clippablepublic void setClipRect(ClipRect clipRect)
eg. new ClipRect{ 2,3,10,15}
If no clipping is required, this should be set to null.
setClipRect in interface Clippablepublic void setHeight(int newValue)
setHeight in interface Scrollablepublic void setHorizontalAlignment(int newValue)
setHorizontalAlignment in interface ScrollableContainernewValue - The horizontal alignment of the contents of this container,
one of the following values.
public void setLayoutManager(LayoutManager newLayoutManager)
setLayoutManager in interface LayoutManageablepublic void setLeft(int newValue)
setLeft in interface Positionablepublic void setPositioning(int newPositioning)
setPositioning in interface Positionablepublic void setRight(int newValue)
setRight in interface Positionablepublic void setScrollBarPolicy(int newScrollBarPolicy)
setScrollBarPolicy in interface Scrollablepublic void setScrollBarX(int newValue)
setScrollBarX in interface ScrollablenewValue - The new position of the horizontal scroll bar, in pixels.public void setScrollBarY(int newValue)
setScrollBarY in interface ScrollablenewValue - The new position of the vertical scroll bar, in pixels.public void setTop(int newValue)
setTop in interface Positionablepublic void setVerticalAlignment(int newValue)
setVerticalAlignment in interface ScrollableContainernewValue - The vertical alignment of the contents of this container,
one of the following values.
public void setWidth(int newValue)
setWidth in interface Scrollablepublic void setzIndex(int newValue)
setzIndex in interface Positionablepublic Color getBorderColor()
getBorderColor in interface BorderableColor of the Borderable's border.Borderable.getBorderColor()public int getBorderSize()
getBorderSize in interface BorderableBorderables's border.Borderable.getBorderSize()public int getBorderStyle()
Borderable
getBorderStyle in interface BorderableBorderable.getBorderStyle()public void setBorderColor(Color newBorderColor)
BorderableColor of the Borderable's border.
This will also set the left, top, right and bottom border color.
setBorderColor in interface BorderableBorderable.setBorderColor(nextapp.echo.Color)public void setBorderSize(int newBorderSize)
BorderableBorderables's border.
This will also set the left, top, right and bottom border size.
setBorderSize in interface BorderableBorderable.setBorderSize(int)public void setBorderStyle(int borderStyle)
Borderable
setBorderStyle in interface BorderableBorderable.setBorderStyle(int)public Color getLeftBorderColor()
getLeftBorderColor in interface BorderableColor of the Borderable's left border.Borderable.getLeftBorderColor()public int getLeftBorderSize()
getLeftBorderSize in interface BorderableBorderables's left border.Borderable.getLeftBorderSize()public int getLeftBorderStyle()
getLeftBorderStyle in interface BorderableBorderables's left border.Borderable.getLeftBorderStyle()public void setLeftBorderColor(Color borderColor)
BorderableColor of the Borderable's left border.
setLeftBorderColor in interface BorderableBorderable.setLeftBorderColor(nextapp.echo.Color)public void setLeftBorderSize(int borderSize)
BorderableBorderables's left border.
setLeftBorderSize in interface BorderableBorderable.setLeftBorderSize(int)public void setLeftBorderStyle(int borderStyle)
BorderableBorderables's left border.
setLeftBorderStyle in interface BorderableBorderable.setLeftBorderStyle(int)public Color getTopBorderColor()
getTopBorderColor in interface BorderableColor of the Borderable's top border.Borderable.getTopBorderColor()public int getTopBorderSize()
getTopBorderSize in interface BorderableBorderables's top border.Borderable.getTopBorderSize()public int getTopBorderStyle()
getTopBorderStyle in interface BorderableBorderables's top border.Borderable.getTopBorderStyle()public void setTopBorderColor(Color borderColor)
BorderableColor of the Borderable's top border.
setTopBorderColor in interface BorderableBorderable.setTopBorderColor(nextapp.echo.Color)public void setTopBorderSize(int borderSize)
BorderableBorderables's top border.
setTopBorderSize in interface BorderableBorderable.setTopBorderSize(int)public void setTopBorderStyle(int borderStyle)
BorderableBorderables's top border.
setTopBorderStyle in interface BorderableBorderable.setTopBorderStyle(int)public Color getRightBorderColor()
getRightBorderColor in interface BorderableColor of the Borderable's right border.Borderable.getRightBorderColor()public int getRightBorderSize()
getRightBorderSize in interface BorderableBorderables's right border.Borderable.getRightBorderSize()public int getRightBorderStyle()
getRightBorderStyle in interface BorderableBorderables's right border.Borderable.getRightBorderStyle()public void setRightBorderColor(Color borderColor)
BorderableColor of the Borderable's right border.
setRightBorderColor in interface BorderableBorderable.setRightBorderColor(nextapp.echo.Color)public void setRightBorderSize(int borderSize)
BorderableBorderables's right border.
setRightBorderSize in interface BorderableBorderable.setRightBorderSize(int)public void setRightBorderStyle(int borderStyle)
BorderableBorderables's right border.
setRightBorderStyle in interface BorderableBorderable.setRightBorderStyle(int)public Color getBottomBorderColor()
getBottomBorderColor in interface BorderableColor of the Borderable's bottom border.Borderable.getBottomBorderColor()public int getBottomBorderSize()
getBottomBorderSize in interface BorderableBorderables's bottom border.Borderable.getBottomBorderSize()public int getBottomBorderStyle()
getBottomBorderStyle in interface BorderableBorderables's bottom border.Borderable.getBottomBorderStyle()public void setBottomBorderColor(Color borderColor)
BorderableColor of the Borderable's bottom border.
setBottomBorderColor in interface BorderableBorderable.setBottomBorderColor(nextapp.echo.Color)public void setBottomBorderSize(int borderSize)
BorderableBorderables's bottom border.
setBottomBorderSize in interface BorderableBorderable.setBottomBorderSize(int)public void setBottomBorderStyle(int borderStyle)
BorderableBorderables's bottom border.
setBottomBorderStyle in interface BorderableBorderable.setBottomBorderStyle(int)
public java.lang.Object set(java.lang.reflect.Field field,
java.lang.Object newValue)
throws java.lang.Exception
ReflectionSetter
public Object set(Field f, Object newValue) throws Exception {
Object oldValue = f.get(this);
f.set(this,newValue);
return oldValue;
}
set in interface ReflectionSetterfield - - the field to be setnewValue - - the new value to be set
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.NullPointerException
java.lang.ExceptionReflectionSetter.set(Field, Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||