|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Scrollable
is a component that can have a a fixed width
and/or height, and can present scrollbars when the content of
the component is too large to fit inside.
Scrollable
can be made a fixed size, by setting
its width and/or height properties, it has support for
a scroll bar policy which controls how scroll bars are used if the content
of the component will not fit into the fixed size.
If the scroll bar policy is SCROLLBARS_NEVER, then no scroll bars will be shown and the content inside the component will be clipped to the bounding rectangle.
If the scroll bar policy is SCROLLBARS_ALWAYS, then scroll bars will always be shown, regardless of whether the content is too big for the bounding rectangle, which allows the user to view all the content.
If the scroll bar policy is SCROLLBARS_AUTO, then scroll bars will be shown when appropriate, ie when the content is too big for the bounding rectangle.
Nested Class Summary | |
static class |
Scrollable.NestedStyleInfo
Nested public static StyleInfo class. |
Field Summary | |
static java.lang.String |
HEIGHT_CHANGED_PROPERTY
This property name is fired when the height value changes |
static java.lang.String |
SCROLL_BAR_X_CHANGED_PROPERTY
This property name is fired when the scolling bar X value changes |
static java.lang.String |
SCROLL_BAR_Y_CHANGED_PROPERTY
This property name is fired when the scolling bar Y value changes |
static java.lang.String |
SCROLLBAR_POLICY_CHANGED_PROPERTY
This property name is fired when the scolling bar policy changes |
static int |
SCROLLBARS_ALWAYS
A scroll bar policy that will cause scroll bars to always appear, without regard for whether they are required. |
static int |
SCROLLBARS_AUTO
A scroll bar policy that will cause scroll bars to be visible if they are necessary, and invisible if they are not. |
static int |
SCROLLBARS_CLIPHIDE
A scroll bar policy that will cause scroll bars never to appear, without regard for whether they are required. |
static int |
SCROLLBARS_NEVER
A scroll bar policy that will cause scroll bars never to appear, without regard for whether they are required. |
static java.lang.String |
STYLE_HEIGHT
A style constant for the Height property. |
static java.lang.String |
STYLE_SCROLL_BAR_POLICY
A style constant for the ScrollBar Policy property. |
static java.lang.String |
STYLE_WIDTH
A style constant for the Width property. |
static int |
UNDEFINED
This can be used to indicate that an integer parameter is not define (ie should not be interpreseted). |
static SymbolicValue[] |
undefinedSymbolic
Helper static SymbolicValue[] - UNDEFINED Symbolic |
static java.lang.String |
WIDTH_CHANGED_PROPERTY
This property name is fired when the width value changes |
Method Summary | |
void |
applyStyle(nextapp.echo.Style style)
|
int |
getHeight()
Returns the height of the component |
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 |
getWidth()
Returns the width of the component |
void |
setHeight(int newValue)
Sets the height of the component |
void |
setScrollBarPolicy(int newScrollBarPolicy)
Sets the scroll bar policy of the component This can be one of : SCOLLBARS_NONE SCOLLBARS_ALWAYS SCOLLBARS_AUTO |
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 |
setWidth(int newValue)
Set the width of the component |
Field Detail |
public static final int UNDEFINED
public static final int SCROLLBARS_NEVER
public static final int SCROLLBARS_ALWAYS
public static final int SCROLLBARS_AUTO
public static final int SCROLLBARS_CLIPHIDE
public static final java.lang.String STYLE_HEIGHT
int
public static final java.lang.String STYLE_SCROLL_BAR_POLICY
int
public static final java.lang.String STYLE_WIDTH
int
public static final java.lang.String SCROLLBAR_POLICY_CHANGED_PROPERTY
public static final java.lang.String SCROLL_BAR_X_CHANGED_PROPERTY
public static final java.lang.String SCROLL_BAR_Y_CHANGED_PROPERTY
public static final java.lang.String HEIGHT_CHANGED_PROPERTY
public static final java.lang.String WIDTH_CHANGED_PROPERTY
public static final SymbolicValue[] undefinedSymbolic
Method Detail |
public void applyStyle(nextapp.echo.Style style)
Component.applyStyle(nextapp.echo.Style)
public int getHeight()
public int getScrollBarPolicy()
public int getScrollBarX()
public int getScrollBarY()
public int getWidth()
public void setHeight(int newValue)
public void setScrollBarPolicy(int newScrollBarPolicy)
public void setScrollBarX(int newValue)
newValue
- The new position of the horizontal scroll bar, in pixels.public void setScrollBarY(int newValue)
newValue
- The new position of the vertical scroll bar, in pixels.public void setWidth(int newValue)
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |