|
EchoPoint 2.1.0rc4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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 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 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 AUTO, then scroll bars will be shown when appropriate, ie when the content is too big for the bounding rectangle.
Field Summary | |
static int |
ALWAYS
A scroll bar policy that will cause scroll bars to always appear, without regard for whether they are required. |
static int |
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 |
CLIPHIDE
A scroll bar policy that will cause scroll bars to never appear, without regard for whether they are required. |
static int |
NEVER
A scroll bar policy that will cause scroll bars to never appear, without regard for whether they are required. |
static java.lang.String |
PROPERTY_SCROLL_BAR_BASE_COLOR
|
static java.lang.String |
PROPERTY_SCROLL_BAR_POLICY
|
static java.lang.String |
PROPERTY_SCROLL_BAR_PROPERTIES
|
static int |
UNDEFINED
A scroll bar policy that will cause not cause any scroll bar policy to be applied at all. |
Fields inherited from interface echopointng.able.Widthable |
PROPERTY_WIDTH |
Fields inherited from interface echopointng.able.Heightable |
PROPERTY_HEIGHT |
Method Summary | |
nextapp.echo2.app.Color |
getScrollBarBaseColor()
Returns the base color of the ScrollBarProperties associated with this Scrollable |
int |
getScrollBarPolicy()
Returns the ScrollBarPolicy in place This can be one of : NONE ALWAYS AUTO CLIPHIDE |
ScrollBarProperties |
getScrollBarProperties()
Returns the ScrollBarProperties associated with this Scrollable |
void |
setScrollBarBaseColor(nextapp.echo2.app.Color newValue)
Sets the base color of the ScrollBarProperties associated with this Scrollable .
|
void |
setScrollBarPolicy(int newScrollBarPolicy)
Sets the scroll bar policy of the component This can be one of : SCOLLBARS_NONE SCOLLBARS_ALWAYS SCOLLBARS_AUTO CLIPHIDE |
void |
setScrollBarProperties(ScrollBarProperties newValue)
Sets the ScrollBarProperties associated with this Scrollable |
Methods inherited from interface echopointng.able.Widthable |
getWidth, setWidth |
Methods inherited from interface echopointng.able.Delegateable |
getRenderProperty, getRenderProperty |
Methods inherited from interface echopointng.able.Heightable |
getHeight, setHeight |
Field Detail |
public static final int UNDEFINED
public static final int NEVER
public static final int ALWAYS
public static final int AUTO
public static final int CLIPHIDE
public static final java.lang.String PROPERTY_SCROLL_BAR_POLICY
public static final java.lang.String PROPERTY_SCROLL_BAR_BASE_COLOR
public static final java.lang.String PROPERTY_SCROLL_BAR_PROPERTIES
Method Detail |
public int getScrollBarPolicy()
public nextapp.echo2.app.Color getScrollBarBaseColor()
Scrollable
Scrollable
public ScrollBarProperties getScrollBarProperties()
Scrollable
Scrollable
public void setScrollBarPolicy(int newScrollBarPolicy)
public void setScrollBarBaseColor(nextapp.echo2.app.Color newValue)
Scrollable
.
If no ScrollBarProperties is available, then a new one should be created.
newValue
- - the new base color of ScrollBarProperties to usepublic void setScrollBarProperties(ScrollBarProperties newValue)
Scrollable
newValue
- - the new ScrollBarProperties to use
|
EchoPoint 2.1.0rc4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |