|
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.DropDownBox
The DropDownBox
class is a ScrollableBox
component
that can be used as a container for other components, with a "toggle"
child component.
The "toggle" child component is displayed with a toggle handle next to it. This
allows a drop down list to be presented consisting of all the other contained components
in the DropDownBox
.
This drop down list contents are rendered just like any other ScrollableBox
You can set a group name into the drop down box. All drop down boxes with the same group name are "drop down mutually exclusive", that is to say only one drop down box in a set of drop down boxes, with the same group name, can be open at the one time.
Nested Class Summary | |
static class |
DropDownBox.NestedStyleInfo
Nested public static StyleInfo class. |
Field Summary | |
static java.lang.String |
AUTO_COLLAPSE_CHANGED_PROPERTY
Auto Collapse Property |
static java.lang.String |
BOX_HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY
|
static java.lang.String |
DROP_DOWN_BUTTON_BACKGROUND_CHANGED_PROPERTY
|
static java.lang.String |
DROP_DOWN_BUTTON_VERTICAL_ALIGNMENT_CHANGED_PROPERTY
|
static java.lang.String |
EXPANSION_MODEL_CHANGED_PROPERTY
|
static java.lang.String |
GROUP_NAME_CHANGED_PROPERTY
|
static java.lang.String |
STYLE_BOX_HORIZONTAL_ALIGNMENT
|
static java.lang.String |
STYLE_DROP_DOWN_BUTTON_BACKGROUND
|
static java.lang.String |
STYLE_DROP_DOWN_BUTTON_VERTICAL_ALIGNMENT
|
static java.lang.String |
STYLE_GROUP_NAME
|
static java.lang.String |
TOGGLE_COMPONENT_CHANGED_PROPERTY
Nominated Component 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 nextapp.echo.ToolTipSupport |
TOOL_TIP_TEXT_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 | |
DropDownBox()
Creates a DropDownBox |
|
DropDownBox(int left,
int top)
Constructs a DropDownBox
* @param left
* @param top |
|
DropDownBox(int left,
int top,
int right,
int bottom)
Constructs a DropDownBox
* @param left
* @param top
* @param right
* @param bottom |
|
DropDownBox(int left,
int top,
int right,
int bottom,
int zIndex)
Constructs a DropDownBox
* @param left
* @param top
* @param right
* @param bottom
* @param zIndex |
|
DropDownBox(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning)
Constructs a DropDownBox
* @param left
* @param top
* @param right
* @param bottom
* @param zIndex
* @param positioning |
|
DropDownBox(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning,
int scrollBarPolicy)
Constructs a DropDownBox
* @param left
* @param top
* @param right
* @param bottom
* @param zIndex
* @param positioning
* @param scrollBarPolicy |
|
DropDownBox(int left,
int top,
int right,
int bottom,
int zIndex,
int positioning,
int scrollBarPolicy,
int[] clipRect)
Constructs a DropDownBox
* @param left
* @param top
* @param right
* @param bottom
* @param zIndex
* @param positioning
* @param scrollBarPolicy
* @param clipRect |
|
DropDownBox(LayoutManager layoutManager)
Constructs a DropDownBox with a LayoutManager |
Method Summary | |
void |
applyStyle(nextapp.echo.Style style)
Applies the provided style to the component. |
int |
getBoxHorizontalAlignment()
Returns the horizontal alignment of the expanded box itself relative to the button. |
nextapp.echo.Color |
getDropDownButtonBackground()
Returns the background Color of the drop down button |
int |
getDropDownButtonVerticalAlignment()
Returns the vertical alignment of the drop down button. |
ExpandableModel |
getExpansionModel()
|
java.lang.String |
getGroupName()
Returns the Group Name for this DropDownBox. |
nextapp.echo.Component |
getToggleComponent()
Returns the toggle Component that will be drawn with a drop down toggle button beside it. |
boolean |
isAutoCollapse()
Returns TRUE if the DropDownBox will revert to a collapsed state
when any server interaction occurs. |
boolean |
isDisplayToggle()
Returns true if a toggle component should be displayed. |
boolean |
isExpanded()
|
void |
remove(nextapp.echo.Component c)
Removes a component from the container Component and informs the LayoutManager of this removal. |
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 |
setAutoCollapse(boolean newAutoCollapse)
Sets whether the DropDownBox will revert to a
collapsed state when any server interaction occurs. |
void |
setBoxHorizontalAlignment(int newValue)
Sets the horizontal alignment of the expanded box itself relative to the toggle component. |
void |
setDisplayToggle(boolean displayToggle)
Sets the flag to indicate whether or not a toggle button should be displayed. |
void |
setDropDownButtonBackground(nextapp.echo.Color newValue)
Sets the background Color of the drop down button |
void |
setDropDownButtonVerticalAlignment(int newValue)
Sets the vertical alignment of the drop down button. |
void |
setExpanded(boolean isExpanded)
Sets whether the DropDownBox is expanded or not and hence whether its
contained DatePicker is showing. |
void |
setExpansionModel(ExpandableModel newExpansionModel)
Sets the ExpandableModel model used by the DropDownBox . |
void |
setGroupName(java.lang.String groupName)
Sets the name of a "logical box group" for this DropDownBox. |
void |
setToggleComponent(nextapp.echo.Component newValue)
Sets the toggle Component that will be drawn with a drop down button beside it. |
void |
validate()
|
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 |
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 nextapp.echo.ToolTipSupport |
getToolTipText, setToolTipText |
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, setLayoutManager |
Field Detail |
public static final java.lang.String AUTO_COLLAPSE_CHANGED_PROPERTY
public static final java.lang.String DROP_DOWN_BUTTON_BACKGROUND_CHANGED_PROPERTY
public static final java.lang.String DROP_DOWN_BUTTON_VERTICAL_ALIGNMENT_CHANGED_PROPERTY
public static final java.lang.String BOX_HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY
public static final java.lang.String GROUP_NAME_CHANGED_PROPERTY
public static final java.lang.String EXPANSION_MODEL_CHANGED_PROPERTY
public static final java.lang.String STYLE_DROP_DOWN_BUTTON_BACKGROUND
public static final java.lang.String STYLE_DROP_DOWN_BUTTON_VERTICAL_ALIGNMENT
public static final java.lang.String STYLE_BOX_HORIZONTAL_ALIGNMENT
public static final java.lang.String STYLE_GROUP_NAME
public static final java.lang.String TOGGLE_COMPONENT_CHANGED_PROPERTY
Constructor Detail |
public DropDownBox()
DropDownBox
public DropDownBox(LayoutManager layoutManager)
DropDownBox
with a LayoutManager
public DropDownBox(int left, int top)
DropDownBox
* @param left
* @param top
public DropDownBox(int left, int top, int right, int bottom)
DropDownBox
* @param left
* @param top
* @param right
* @param bottom
public DropDownBox(int left, int top, int right, int bottom, int zIndex)
DropDownBox
* @param left
* @param top
* @param right
* @param bottom
* @param zIndex
public DropDownBox(int left, int top, int right, int bottom, int zIndex, int positioning)
DropDownBox
* @param left
* @param top
* @param right
* @param bottom
* @param zIndex
* @param positioning
public DropDownBox(int left, int top, int right, int bottom, int zIndex, int positioning, int scrollBarPolicy)
DropDownBox
* @param left
* @param top
* @param right
* @param bottom
* @param zIndex
* @param positioning
* @param scrollBarPolicy
public DropDownBox(int left, int top, int right, int bottom, int zIndex, int positioning, int scrollBarPolicy, int[] clipRect)
DropDownBox
* @param left
* @param top
* @param right
* @param bottom
* @param zIndex
* @param positioning
* @param scrollBarPolicy
* @param clipRect
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 nextapp.echo.Color getDropDownButtonBackground()
public int getDropDownButtonVerticalAlignment()
public ExpandableModel getExpansionModel()
ExpandableModel
model of the DropDownBox
.public nextapp.echo.Component getToggleComponent()
public boolean isAutoCollapse()
DropDownBox
will revert to a collapsed state
when any server interaction occurs.
public boolean isExpanded()
DropDownBox
is expanded or not, and hence whether
it is showing its underlying drop down component.public void remove(nextapp.echo.Component c)
LayoutManageable
remove
in interface LayoutManageable
remove
in class AbstractScrollableComponent
Component.remove(nextapp.echo.Component)
public void setAutoCollapse(boolean newAutoCollapse)
DropDownBox
will revert to a
collapsed state when any server interaction occurs.
newAutoCollapse
- booleanpublic void setDropDownButtonBackground(nextapp.echo.Color newValue)
newValue
- - the new background colorpublic void setDropDownButtonVerticalAlignment(int newValue)
newValue
- The the vertical alignment of the drop down button,
one of the following values.
public void setExpanded(boolean isExpanded)
DropDownBox
is expanded or not and hence whether its
contained DatePicker is showing.
public void setExpansionModel(ExpandableModel newExpansionModel)
ExpandableModel
model used by the DropDownBox
.
public void setToggleComponent(nextapp.echo.Component newValue)
If this Component is not already an ancestor of this DropDownBox then it will be added as the latest child of the DropDownBox
newValue
- - the component in question
java.lang.IllegalArgumentException
- - if the nominated component is nullpublic void validate()
validate
in class EchoPointComponent
Component.validate()
public void setBoxHorizontalAlignment(int newValue)
newValue
- The new horizontal alignmentpublic int getBoxHorizontalAlignment()
public java.lang.String getGroupName()
setGroupName(String)
public void setGroupName(java.lang.String groupName)
groupName
- The group name to use.public boolean isDisplayToggle()
true
if a toggle component should be displayed.
true
if a toggle component should be displayed.public void setDisplayToggle(boolean displayToggle)
false
, then the application is responsible for
hiding and showing the DropDownBox. The default is true
.
displayToggle
- The new display toggle flag.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 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 |