|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.Component nextapp.echo.Panel echopoint.Panel echopoint.ScrollablePanel
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 FormNested Class Summary |
Nested classes inherited from class echopoint.positionable.ScrollableContainer |
ScrollableContainer.NestedStyleInfo |
Nested classes inherited from class 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 class nextapp.echo.Component |
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, listenerList, LOCALE_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, UPDATE_PROPERTY, VISIBLE_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 | |
ScrollablePanel()
Construct a ScrollablePanel with no direct positioning in affect at all. |
|
ScrollablePanel(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. |
|
ScrollablePanel(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. |
|
ScrollablePanel(int left,
int top,
int right,
int bottom,
int zIndex)
Constructs a ScrollablePanel with POSITIONING_ABSOLUTE,
SCROLLBARS_NEVER and no clipping rectangle. |
|
ScrollablePanel(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning)
Constructs a ScrollablePanel with SCROLLBARS_NEVER and
no clipping rectangle. |
|
ScrollablePanel(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning,
int scrollBarPolicy)
Constructs a ScrollablePanel |
|
ScrollablePanel(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning,
int scrollBarPolicy,
int[] clipRect)
Constructs a ScrollablePanel with all the properties |
|
ScrollablePanel(LayoutManager layoutManager)
Constructs a ScrollablePanel with a LayoutManager
with no direct positioning in affect at all. |
Method Summary | |
void |
applyStyle(nextapp.echo.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(nextapp.echo.EchoInstance instance)
This convenience method returns the current client screen height. |
static int |
getScreenWidth(nextapp.echo.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 nextapp.echo.Component |
addHierarchyListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getComponent, getComponentCount, getComponents, getEchoInstance, getFont, getForeground, getIdentifier, getLocale, getParent, indexOf, init, isAncestorOf, isEnabled, isRegistered, isShowing, isVisible, removeAll, removeHierarchyListener, removePropertyChangeListener, setBackground, setEnabled, setFont, setForeground, setIdentifier, setLocale, setVisible, update, 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 |
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 ScrollablePanel()
public ScrollablePanel(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 ScrollablePanel(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 ScrollablePanel(int left, int top, int right, int bottom, int zIndex)
ScrollablePanel
with POSITIONING_ABSOLUTE,
SCROLLBARS_NEVER and no clipping rectangle.
public ScrollablePanel(int left, int top, int right, int bottom, int zIndex, int positioning)
ScrollablePanel
with SCROLLBARS_NEVER and
no clipping rectangle.
public ScrollablePanel(int left, int top, int right, int bottom, int zIndex, int positioning, int scrollBarPolicy)
ScrollablePanel
public ScrollablePanel(int left, int top, int right, int bottom, int zIndex, int positioning, int scrollBarPolicy, int[] clipRect)
ScrollablePanel
with all the properties
public ScrollablePanel(LayoutManager layoutManager)
ScrollablePanel
with a LayoutManager
with no direct positioning in affect at all.
Method Detail |
public void applyStyle(nextapp.echo.Style style)
nextapp.echo.Component
style names can be used as well.
applyStyle
in interface Scrollable
applyStyle
in class Panel
Borderable.applyStyle(nextapp.echo.Style)
public void clearPositioning()
clearPositioning
in interface Positionable
public int getBottom()
getBottom
in interface Positionable
public ClipRect getClipRect()
getClipRect
in interface Clippable
public int getHeight()
getHeight
in interface Scrollable
public int getLeft()
getLeft
in interface Positionable
public int getPositioning()
getPositioning
in interface Positionable
public int getRight()
getRight
in interface Positionable
public int getScrollBarPolicy()
getScrollBarPolicy
in interface Scrollable
public int getScrollBarX()
getScrollBarX
in interface Scrollable
public int getScrollBarY()
getScrollBarY
in interface Scrollable
public int getTop()
getTop
in interface Positionable
public int getWidth()
getWidth
in interface Scrollable
public int getzIndex()
getzIndex
in interface Positionable
public boolean isPositioned()
isPositioned
in interface Positionable
public void setBottom(int newValue)
setBottom
in interface Positionable
public 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 Clippable
public 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 setHeight(int newValue)
setHeight
in interface Scrollable
public void setLeft(int newValue)
setLeft
in interface Positionable
public void setPositioning(int newPositioning)
setPositioning
in interface Positionable
public void setRight(int newValue)
setRight
in interface Positionable
public void setScrollBarPolicy(int newScrollBarPolicy)
setScrollBarPolicy
in interface Scrollable
public void setScrollBarX(int newValue)
setScrollBarX
in interface Scrollable
newValue
- The new position of the horizontal scroll bar, in pixels.public void setScrollBarY(int newValue)
setScrollBarY
in interface Scrollable
newValue
- The new position of the vertical scroll bar, in pixels.public void setTop(int newValue)
setTop
in interface Positionable
public void setWidth(int newValue)
setWidth
in interface Scrollable
public void setzIndex(int newValue)
setzIndex
in interface Positionable
public static int getScreenHeight(nextapp.echo.EchoInstance instance)
public static int getScreenWidth(nextapp.echo.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 ReflectionSetter
set
in class Panel
java.lang.Exception
ReflectionSetter.set(Field, Object)
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |