|
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.Container echopoint.EchoPointComponent echopoint.positionable.AbstractScrollableComponent echopoint.ScrollableBox echopoint.HidingSlidingPanel
The HidingSlidingPanel
class provides a Scrollable
component that can be hidden on the side of the client window
ready to slide in and be used.
It is useful to provide quick access to a panel of other components, that the user can tuck away out of view. For example it could be used to hold a tool box of controls or a list of actions the user can perform.
The hidingAlignment property controls which side of the client window the HidingSlidingPanel will go to. This can be the following values :
The XY property is the position along the client window that the panel will be placed. It is always the opposite of the alignment.
The hidingOnIcon and hidingOffIcon are used to provide a visual clue as to the presence of the HidingPanel. Clicking on these icons will move/remove the HidingPanel from view. You must provde an icon other wise the user will not have a visual cue with which to move the HidingSlidingPanel.
Note : the normal Positionable parameters are not adhered to by the HidingSlidingPanel. While they are used to size the panel initially, the panel will be moved to a place controlled by the XY property.
Nested Class Summary | |
static class |
HidingSlidingPanel.NestedStyleInfo
Nested public static StyleInfo class. |
Field Summary | |
static java.lang.String |
EXPANDED_CHANGED_PROPERTY
|
static java.lang.String |
HIDING_ALIGMENT_CHANGED_PROPERTY
Property change name constants |
static java.lang.String |
JUMP_CHANGED_PROPERTY
|
static java.lang.String |
OFF_ICON_CHANGED_PROPERTY
|
static java.lang.String |
ON_ICON_CHANGED_PROPERTY
|
static java.lang.String |
STYLE_EXPANDED
A style constant for the Expanded property. |
static java.lang.String |
STYLE_HIDING_ALIGNMENT
A style constant for the HidingAlignment property. |
static java.lang.String |
STYLE_OFF_ICON
A style constant for the Off Icon property. |
static java.lang.String |
STYLE_ON_ICON
A style constant for the On Icon property. |
static java.lang.String |
STYLE_XY
A style constant for the XY property. |
static java.lang.String |
XY_CHANGED_PROPERTY
|
Fields inherited from class echopoint.ScrollableBox |
DEFAULT_INSETS, DEFAULT_POSITONABLE_POLICY, DEFAULT_SCROLLBAR_POLICY |
Fields inherited from class echopoint.EchoPointComponent |
STYLE_TOOL_TIP_TEXT, TOOL_TIP_TEXT_CHANGED_PROPERTY, toolTipPopUp |
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 | |
HidingSlidingPanel()
Constructs a HidingPanel with the hiding alignment site to EchoConstants.LEFT and the XY property set to 10. |
|
HidingSlidingPanel(int newHidingAlignment)
Constructs a HidingPanel with the specified hiding alignment and the XY property set to 10. |
|
HidingSlidingPanel(LayoutManager layoutManager)
Constructs a HidingSlidingPanel with a LayoutManager and
with the hiding alignment site to EchoConstants.LEFT
and the XY property set to 10. |
Method Summary | |
void |
applyStyle(nextapp.echo.Style style)
Applies the provided style to the component. |
int |
getHidingAlignment()
Returns the hiding alignment in place. |
nextapp.echo.ImageReference |
getOffIcon()
Returns the icon to be used when the panel is hidden |
java.lang.String |
getOffTitle()
Returns the Off Title used on the expansion icons. |
nextapp.echo.Font |
getOffTitleFont()
Returns the Off Title font used on the expansion icons. |
nextapp.echo.Color |
getOffTitleForeground()
Returns the Off Title foreground used on the expansion icons. |
nextapp.echo.ImageReference |
getOnIcon()
Returns the icon to be used when the panel is visible |
java.lang.String |
getOnTitle()
Returns the On Title used on the expansion icons. |
nextapp.echo.Font |
getOnTitleFont()
Returns the On Title font used on the expansion icons. |
nextapp.echo.Color |
getOnTitleForeground()
Returns the On Title foreground used on the expansion icons. |
int |
getXY()
Returns the XY property |
boolean |
isExpanded()
Returns true of the panel is currently expanded |
boolean |
isJump()
Gets whether the HidingSlidingPanel will jump
directly to its final position or slide there.
|
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 |
setExpanded(boolean newState)
Sets the expansion state of the panel. |
void |
setHidingAlignment(int newHidingAlignment)
Sets the hiding alignment of the panel. |
void |
setJump(boolean newValue)
Sets whether the HidingSlidingPanel will jump
directly to its final position or slide there.
|
void |
setOffIcon(nextapp.echo.ImageReference newOffIcon)
Sets the icon to be used when the panel is hidden (ie not expanded). |
void |
setOffTitle(java.lang.String string)
Sets the Off Title used on the expansion icons. |
void |
setOffTitleFont(nextapp.echo.Font font)
Sets the Off Title font used on the expansion icons. |
void |
setOffTitleForeground(nextapp.echo.Color color)
Sets the Off Title foreground used on the expansion icons. |
void |
setOnIcon(nextapp.echo.ImageReference newOnIcon)
Sets the icon to be used when the panel is visible (ie is expanded). |
void |
setOnTitle(java.lang.String string)
Sets the On Title used on the expansion icons. |
void |
setOnTitleFont(nextapp.echo.Font font)
Sets the On Title font used on the expansion icons. |
void |
setOnTitleForeground(nextapp.echo.Color color)
Sets the On Title foreground used on the expansion icons. |
void |
setXY(int newXy)
Sets the XY value to be used by the panel. |
Methods inherited from class echopoint.ScrollableBox |
getHorizontalAlignment, getInsets, getVerticalAlignment, setHorizontalAlignment, setInsets, setVerticalAlignment |
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 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 |
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 java.lang.String EXPANDED_CHANGED_PROPERTY
public static final java.lang.String HIDING_ALIGMENT_CHANGED_PROPERTY
public static final java.lang.String JUMP_CHANGED_PROPERTY
public static final java.lang.String OFF_ICON_CHANGED_PROPERTY
public static final java.lang.String ON_ICON_CHANGED_PROPERTY
public static final java.lang.String STYLE_EXPANDED
boolean
public static final java.lang.String STYLE_HIDING_ALIGNMENT
int
public static final java.lang.String STYLE_OFF_ICON
ImageReference
public static final java.lang.String STYLE_ON_ICON
ImageReference
public static final java.lang.String STYLE_XY
int
public static final java.lang.String XY_CHANGED_PROPERTY
Constructor Detail |
public HidingSlidingPanel()
public HidingSlidingPanel(LayoutManager layoutManager)
HidingSlidingPanel
with a LayoutManager and
with the hiding alignment site to EchoConstants.LEFT
and the XY property set to 10.
public HidingSlidingPanel(int newHidingAlignment)
The hisding alignment can be the following values :
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 ScrollableBox
Component.applyStyle(nextapp.echo.Style)
public int getHidingAlignment()
public nextapp.echo.ImageReference getOffIcon()
public java.lang.String getOffTitle()
Note that this take effect if the default internal TextImageReference icons are used. if you set your own on and off icons, then this property has no effect.
public nextapp.echo.Font getOffTitleFont()
Note that this take effect if the default internal TextImageReference icons are used. if you set your own on and off icons, then this property has no effect.
public nextapp.echo.Color getOffTitleForeground()
Note that this take effect if the default internal TextImageReference icons are used. if you set your own on and off icons, then this property has no effect.
public nextapp.echo.ImageReference getOnIcon()
public java.lang.String getOnTitle()
Note that this take effect if the default internal TextImageReference icons are used. if you set your own on and off icons, then this property has no effect.
public nextapp.echo.Font getOnTitleFont()
Note that this take effect if the default internal TextImageReference icons are used. if you set your own on and off icons, then this property has no effect.
public nextapp.echo.Color getOnTitleForeground()
Note that this take effect if the default internal TextImageReference icons are used. if you set your own on and off icons, then this property has no effect.
public int getXY()
public boolean isExpanded()
public boolean isJump()
HidingSlidingPanel
will jump
directly to its final position or slide there.
By default this is false
.
public void setExpanded(boolean newState)
public void setHidingAlignment(int newHidingAlignment)
java.lang.IllegalArgumentException
- if the hiding alighment is not one of the abovepublic void setJump(boolean newValue)
HidingSlidingPanel
will jump
directly to its final position or slide there.
By default this is false
.
newValue
- public void setOffIcon(nextapp.echo.ImageReference newOffIcon)
The icon may null in which case a default one will be rendered. If it is not null then it must have a width and height > 0, otherwise an IllegalArgumentException is thrown.
java.lang.IllegalArgumentException
- if the width and height are <= 0public void setOffTitle(java.lang.String string)
Note that this take effect if the default internal TextImageReference icons are used. if you set your own on and off icons, then this property has no effect.
string
- public void setOffTitleFont(nextapp.echo.Font font)
Note that this take effect if the default internal TextImageReference icons are used. if you set your own on and off icons, then this property has no effect.
font
- public void setOffTitleForeground(nextapp.echo.Color color)
Note that this take effect if the default internal TextImageReference icons are used. if you set your own on and off icons, then this property has no effect.
color
- public void setOnIcon(nextapp.echo.ImageReference newOnIcon)
The icon may null in which case a default one will be rendered. If it is not null then it must have a width and height > 0, otherwise an IllegalArgumentException is thrown.
java.lang.IllegalArgumentException
- if the width and height are <= 0public void setOnTitle(java.lang.String string)
Note that this take effect if the default internal TextImageReference icons are used. if you set your own on and off icons, then this property has no effect.
string
- public void setOnTitleFont(nextapp.echo.Font font)
Note that this take effect if the default internal TextImageReference icons are used. if you set your own on and off icons, then this property has no effect.
font
- public void setOnTitleForeground(nextapp.echo.Color color)
Note that this take effect if the default internal TextImageReference icons are used. if you set your own on and off icons, then this property has no effect.
color
- public void setXY(int newXy)
For example if the hiding alignment is LEFT, then xy will represent the y co-ordinate to place the panel.
if the hiding alignment is TOP, then xy will represent the x co-ordinate to place the panel.
newXy
- intpublic 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 ScrollableBox
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 |