|
|||||||||
| 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
echopoint.ScrollableBox
public class ScrollableBox
The ScrollableBox, which extends AbstractScrollableComponent is
a generic lightweight container that implements Scrollable,
Positionable and Clippable.
This differs from ScrollablePanel in that it will only be sized to the
dimensions of its contents, where as ScrollablePanel will fill its parent container.
Positionable,
Scrollable,
Clippable,
AbstractScrollableComponent,
Serialized Form| 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 | |
|---|---|
static Insets |
DEFAULT_INSETS
the default Insets are size 0 |
static int |
DEFAULT_POSITONABLE_POLICY
the default positioning is POSITIONING_FLOW |
static int |
DEFAULT_SCROLLBAR_POLICY
the default scrollbar policy is SCROLLBARS_AUTO |
| 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 | |
|---|---|
ScrollableBox()
Construct a ScrollableBox with no direct positioning in affect at all. |
|
ScrollableBox(int left,
int top)
Constructs a ScrollableBox with to right and bottom
properties set to Integer.MAX_VALUE, a zIndex of 0 and
with POSITIONING_ABSOLUTE, SCROLLBARS_NEVER and
no clipping rectangle. |
|
ScrollableBox(int left,
int top,
int right,
int bottom)
Constructs a ScrollableBox with a zIndex of 0
and with POSITIONING_ABSOLUTE, SCROLLBARS_NEVER and
no clipping rectangle. |
|
ScrollableBox(int left,
int top,
int right,
int bottom,
int zIndex)
Constructs a ScrollableBox with POSITIONING_ABSOLUTE,
SCROLLBARS_NEVER and no clipping rectangle. |
|
ScrollableBox(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning)
Constructs a ScrollableBox with SCROLLBARS_NEVER and
no clipping rectangle. |
|
ScrollableBox(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning,
int scrollBarPolicy)
Constructs a ScrollableBox with no clipping rectangle. |
|
ScrollableBox(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning,
int scrollBarPolicy,
int[] clipRect)
Constructs a ScrollableBox with all the properties |
|
ScrollableBox(LayoutManager layoutManager)
Constructs a ScrollableBox with a LayoutManager
with no direct positioning in affect at all. |
|
| Method Summary | |
|---|---|
void |
applyStyle(Style style)
Sets stylistic properties of this component based on a Style
object. |
int |
getHorizontalAlignment()
Returns the horizontal alignment of the contents of this panel. |
Insets |
getInsets()
Returns the insets (margins) of the panel. |
int |
getVerticalAlignment()
Returns the vertical alignment of the contents of this panel. |
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 |
setHorizontalAlignment(int newValue)
Sets the horizontal alignment of the contents of this panel. |
void |
setInsets(Insets newValue)
Sets the insets (margins) of the pane. |
void |
setVerticalAlignment(int newValue)
Sets the vertical alignment of the contents of this panel. |
| 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.Scrollable |
|---|
getHeight, getScrollBarPolicy, getScrollBarX, getScrollBarY, getWidth, setHeight, setScrollBarPolicy, setScrollBarX, setScrollBarY, setWidth |
| Methods inherited from interface echopoint.positionable.Positionable |
|---|
clearPositioning, getBottom, getLeft, getPositioning, getRight, getTop, getzIndex, isPositioned, setBottom, setLeft, setPositioning, setRight, setTop, setzIndex |
| Methods inherited from interface echopoint.positionable.Clippable |
|---|
getClipRect, setClipRect, setClipRect, setClipRect |
| Methods inherited from interface echopoint.layout.LayoutManageable |
|---|
add, add, add, add, getLayoutManager, remove, remove, setLayoutManager |
| Field Detail |
|---|
public static final Insets DEFAULT_INSETS
public static final int DEFAULT_POSITONABLE_POLICY
public static final int DEFAULT_SCROLLBAR_POLICY
| Constructor Detail |
|---|
public ScrollableBox()
public ScrollableBox(int left,
int top)
ScrollableBox with to right and bottom
properties set to Integer.MAX_VALUE, a zIndex of 0 and
with POSITIONING_ABSOLUTE, SCROLLBARS_NEVER and
no clipping rectangle.
public ScrollableBox(int left,
int top,
int right,
int bottom)
ScrollableBox with a zIndex of 0
and with POSITIONING_ABSOLUTE, SCROLLBARS_NEVER and
no clipping rectangle.
public ScrollableBox(int left,
int top,
int right,
int bottom,
int zIndex)
ScrollableBox with POSITIONING_ABSOLUTE,
SCROLLBARS_NEVER and no clipping rectangle.
public ScrollableBox(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning)
ScrollableBox with SCROLLBARS_NEVER and
no clipping rectangle.
public ScrollableBox(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning,
int scrollBarPolicy)
ScrollableBox with no clipping rectangle.
public ScrollableBox(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning,
int scrollBarPolicy,
int[] clipRect)
ScrollableBox with all the properties
public ScrollableBox(LayoutManager layoutManager)
ScrollableBox with a LayoutManager
with no direct positioning in affect at all.
| Method Detail |
|---|
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 AbstractScrollableComponentstyle - The style object from which to retrieve properties for this
Component.Component.applyStyle(nextapp.echo.Style)public int getHorizontalAlignment()
getHorizontalAlignment in interface ScrollableContainergetHorizontalAlignment in class AbstractScrollableComponentpublic Insets getInsets()
getInsets in interface ScrollableContainerpublic int getVerticalAlignment()
getVerticalAlignment in interface ScrollableContainergetVerticalAlignment in class AbstractScrollableComponentpublic void setHorizontalAlignment(int newValue)
setHorizontalAlignment in interface ScrollableContainersetHorizontalAlignment in class AbstractScrollableComponentnewValue - The horizontal alignment of the contents of this panel,
one of the following values.
public void setInsets(Insets newValue)
setInsets in interface ScrollableContainernewValue - An insets object that specifies the size of each margin
of this pane.public void setVerticalAlignment(int newValue)
setVerticalAlignment in interface ScrollableContainersetVerticalAlignment in class AbstractScrollableComponentnewValue - The vertical alignment of the contents of this panel,
one of the following values.
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 ReflectionSetterset in class AbstractScrollableComponentfield - - 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 | ||||||||