|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.AbstractComponent
nextapp.echo.Panel
echopoint.Panel
echopoint.ScrollablePanel2
public class ScrollablePanel2
The ScrollablePanel, which extends Panel is
a generic lightweight container that implements Scrollable,
Positionable and Clippable.
It is derived from echopoint.Panel and hence is LayoutManageable, and can therefore use a LayoutManager.
Positionable,
Scrollable,
Clippable,
AbstractScrollableComponent,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface echopoint.positionable.ScrollableContainer |
|---|
ScrollableContainer.NestedStyleInfo |
| Nested classes/interfaces inherited from interface echopoint.positionable.MouseCursorable |
|---|
MouseCursorable.NestedStyleInfo |
| Field Summary | |
|---|---|
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 nextapp.echo.Panel |
|---|
DEFAULT_INSETS, 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.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 | |
|---|---|
ScrollablePanel2()
Construct a ScrollablePanel with no direct positioning in affect at all. |
|
ScrollablePanel2(int left,
int top)
Constructs a ScrollablePanel with to right and bottom
properties set to Positionable.UNDEFINED, a zIndex of 0 and
with POSITIONING_ABSOLUTE, SCROLLBARS_NEVER and
no clipping rectangle. |
|
ScrollablePanel2(int left,
int top,
int right,
int bottom)
Constructs a ScrollablePanel with a zIndex of 0
and with POSITIONING_ABSOLUTE, SCROLLBARS_NEVER and
no clipping rectangle. |
|
ScrollablePanel2(int left,
int top,
int right,
int bottom,
int zIndex)
Constructs a ScrollablePanel with POSITIONING_ABSOLUTE,
SCROLLBARS_NEVER and no clipping rectangle. |
|
ScrollablePanel2(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning)
Constructs a ScrollablePanel with SCROLLBARS_NEVER and
no clipping rectangle. |
|
ScrollablePanel2(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning,
int scrollBarPolicy)
Constructs a ScrollablePanel |
|
ScrollablePanel2(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning,
int scrollBarPolicy,
int[] clipRect)
Constructs a ScrollablePanel with all the properties |
|
ScrollablePanel2(LayoutManager layoutManager)
Constructs a ScrollablePanel with a LayoutManager
with no direct positioning in affect at all. |
|
| Method Summary | |
|---|---|
void |
applyStyle(Style style)
Applies the provided style to the component. |
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. |
int |
getBottom()
Returns the bottom Y position of the component |
ClipRect |
getClipRect()
Returns the clipping rectangle on the component. |
int |
getHeight()
Returns the height of the component |
int |
getLeft()
Returns the left X position of the component |
int |
getPositioning()
This can be one of : POSITIONING_NONE POSITIONING_ABSOLUTE POSITIONING_RELATIVE |
int |
getRight()
Returns the right X position of the component |
static int |
getScreenHeight(EchoInstance instance)
This convenience method returns the current client screen height. |
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 panel. |
int |
getScrollBarY()
Returns the position of the vertical scroll bar, in pixels offset from the top the panel. |
int |
getTop()
Returns the top Y position of the component |
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 |
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 |
setBottom(int newValue)
Sets the bottom Y position of the component |
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 |
setLeft(int newValue)
Set the left X position of the component |
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 |
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 panel. |
void |
setScrollBarY(int newValue)
Sets the position of the vertical scroll bar, in pixels offset from the top of the panel. |
void |
setTop(int newValue)
Sets the top Y position of the component |
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 nextapp.echo.Panel |
|---|
getHorizontalAlignment, getInsets, getVerticalAlignment, setHorizontalAlignment, setInsets, setVerticalAlignment |
| 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 |
|---|
getHorizontalAlignment, getInsets, getVerticalAlignment, setHorizontalAlignment, setInsets, setVerticalAlignment |
| Methods inherited from interface echopoint.layout.LayoutManageable |
|---|
add, add, add, add, getLayoutManager, remove, remove, setLayoutManager |
| Field Detail |
|---|
public static final int DEFAULT_POSITONABLE_POLICY
public static final int DEFAULT_SCROLLBAR_POLICY
| Constructor Detail |
|---|
public ScrollablePanel2()
public ScrollablePanel2(int left,
int top)
ScrollablePanel 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 ScrollablePanel2(int left,
int top,
int right,
int bottom)
ScrollablePanel with a zIndex of 0
and with POSITIONING_ABSOLUTE, SCROLLBARS_NEVER and
no clipping rectangle.
public ScrollablePanel2(int left,
int top,
int right,
int bottom,
int zIndex)
ScrollablePanel with POSITIONING_ABSOLUTE,
SCROLLBARS_NEVER and no clipping rectangle.
public ScrollablePanel2(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning)
ScrollablePanel with SCROLLBARS_NEVER and
no clipping rectangle.
public ScrollablePanel2(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning,
int scrollBarPolicy)
ScrollablePanel
public ScrollablePanel2(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning,
int scrollBarPolicy,
int[] clipRect)
ScrollablePanel with all the properties
public ScrollablePanel2(LayoutManager layoutManager)
ScrollablePanel with a LayoutManager
with no direct positioning in affect at all.
| Method Detail |
|---|
public void applyStyle(Style style)
nextapp.echo.Component
style names can be used as well.
applyStyle in interface BorderableapplyStyle in interface ClippableapplyStyle in interface MouseCursorableapplyStyle in interface PositionableapplyStyle in interface ScrollableapplyStyle in interface ComponentapplyStyle in class Panelstyle - The style object from which to retrieve properties for this
Component.Borderable.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 getLeft()
getLeft in interface Positionablepublic int getPositioning()
getPositioning in interface Positionablepublic int getRight()
getRight in interface Positionablepublic 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 getWidth()
getWidth in interface Scrollablepublic int getzIndex()
getzIndex in interface Positionablepublic boolean isPositioned()
isPositioned in interface Positionablepublic void setBottom(int newValue)
setBottom in interface Positionablepublic 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 Clippable
public void setClipRect(int x,
int y,
int width,
int height)
setClipRect in interface Clippablepublic 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 Clippablepublic void setHeight(int newValue)
setHeight in interface Scrollablepublic 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 setWidth(int newValue)
setWidth in interface Scrollablepublic void setzIndex(int newValue)
setzIndex in interface Positionablepublic static int getScreenHeight(EchoInstance instance)
public static int getScreenWidth(EchoInstance instance)
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 Panelfield - - 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 | ||||||||