|
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.PickList
The PickList
class provides a Component
that presents tow list of objects and allows the user to move them
from one list to the other.
The class uses two ListBox
components to contain the PickList contents.
The listbox models must be derived from nextapp.echo.DefaultListModel. The reason for this is that the PickList adds and removes elements from each listbox model. nextapp.echo.DefaultListModel has method to allows this to happen, as opposed to the generic nextapp.echo.ListModel, which does not.
Nested Class Summary | |
static class |
PickList.NestedStyleInfo
Nested public static StyleInfo class. |
Field Summary | |
static java.lang.String |
BORDER_COLOR_CHANGED_PROPERTY
|
static java.lang.String |
BORDER_SIZE_CHANGED_PROPERTY
|
protected nextapp.echo.Color |
borderColor
the default border is Color.BLACK |
protected int |
borderSize
the default border size is 0 |
static nextapp.echo.Insets |
DEFAULT_INSETS
the default insets are Insets(0) |
static int |
defaultOrientation
The default orientation for a progress bar is HORIZONTAL. |
protected nextapp.echo.Insets |
insets
the default insets Insets(0) |
static java.lang.String |
INSETS_CHANGED_PROPERTY
|
static java.lang.String |
LEFT_LISTBOX_CHANGED_PROPERTY
|
static java.lang.String |
LEFT_SWAP_TEXT_CHANGED_PROPERTY
|
static java.lang.String |
LEFT_TITLE_CHANGED_PROPERTY
|
protected nextapp.echo.ListBox |
leftListBox
the left ListBox |
protected java.lang.String |
leftSwapText
the left swap text |
protected java.lang.String |
leftTitle
the left title text |
protected int |
orientation
The default is HORIZONTAL. |
static java.lang.String |
ORIENTATION_CHANGED_PROPERTY
|
static int |
ORIENTATION_HORIZONTAL
The orientation values for the the progress bar. |
static int |
ORIENTATION_VERTICAL
|
static java.lang.String |
RIGHT_LISTBOX_CHANGED_PROPERTY
|
static java.lang.String |
RIGHT_SWAP_TEXT_CHANGED_PROPERTY
|
static java.lang.String |
RIGHT_TITLE_CHANGED_PROPERTY
|
protected nextapp.echo.ListBox |
rightListBox
the right ListBox |
protected java.lang.String |
rightSwapText
the right swap text |
protected java.lang.String |
rightTitle
the right title text |
static java.lang.String |
STYLE_BORDER_COLOR
A style constant for the Border Color property. |
static java.lang.String |
STYLE_BORDER_SIZE
A style constant for the Border Size property. |
static java.lang.String |
STYLE_INSETS
A style constant for the Insets property. |
static java.lang.String |
STYLE_ORIENTATION
A style constant for the Orientation property. |
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.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 | |
PickList()
Constructs a PickList with nothing in it |
|
PickList(int ordering)
Constructs a PickList
Orientation can be one of the following values.
|
|
PickList(int orientation,
java.lang.Object[] leftList,
java.lang.Object[] rightList)
Constructs a PickList with the objects supplied
in the provided array.
|
|
PickList(java.lang.Object[] leftList,
java.lang.Object[] rightList)
Constructs a PickList with the objects supplied
in the provided array. |
Method Summary | |
void |
applyStyle(nextapp.echo.Style style)
Applies the provided style to the component. |
nextapp.echo.Color |
getBorderColor()
|
int |
getBorderSize()
|
nextapp.echo.Insets |
getInsets()
|
nextapp.echo.ListBox |
getLeftListBox()
Returns the PickList's left list box. |
java.lang.String |
getLeftSwapText()
Returns the PickList's left swap text . |
java.lang.String |
getLeftTitle()
Returns the PickList's left list box title. |
int |
getOrientation()
Returns PickList.ORIENTATION_VERTICAL or
PickList.ORIENTATION_HORIZONTAL , depending on the orientation
of the progress bar. |
nextapp.echo.ListBox |
getRightListBox()
Returns the PickList's right list box. |
java.lang.String |
getRightSwapText()
Returns the PickList's right swap text. |
java.lang.String |
getRightTitle()
Returns the PickList's right list box title. |
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 |
setBorderColor(nextapp.echo.Color newBorderColor)
Sets the border Color of the PickList .
|
void |
setBorderSize(int newBorderSize)
Sets the border size of the PickList .
|
void |
setEnabled(boolean newValue)
|
void |
setInsets(nextapp.echo.Insets newValue)
Sets the Insets used by the PickList
This methods fires a PropertyChangeEvent with a
getPropertyName() value of
PickList.INSETS_CHANGED_PROPERTY |
void |
setLeftListBox(nextapp.echo.ListBox newLeftListBox)
Sets the PickList's left list box. |
void |
setLeftSwapText(java.lang.String newLeftSwapText)
Sets the PickList's left swap text. |
void |
setLeftTitle(java.lang.String newLeftTitle)
Sets the PickList's left list box title. |
void |
setOrientation(int newOrientation)
Sets the PickList's orientation to newOrientation, which must be PickList.ORIENTATION_VERTICAL or PickList.ORIENTATION_HORIZONTAL .
|
void |
setRightListBox(nextapp.echo.ListBox newRightListBox)
Sets the PickList's right list box. |
void |
setRightSwapText(java.lang.String newRightSwapText)
Sets the PickList's right swap text. |
void |
setRightTitle(java.lang.String newRightTitle)
Sets the PickList's right list box title. |
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 |
add, add, 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, remove, remove, removeAll, removeHierarchyListener, removePropertyChangeListener, setBackground, setFont, setForeground, setIdentifier, setLocale, setVisible, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ORIENTATION_HORIZONTAL
public static final int ORIENTATION_VERTICAL
public static final java.lang.String STYLE_BORDER_COLOR
nextapp.echo.Color.
public static final java.lang.String STYLE_BORDER_SIZE
Integer.
public static final java.lang.String STYLE_INSETS
nextapp.echo.Insets.
public static final java.lang.String STYLE_ORIENTATION
int
public static final java.lang.String BORDER_COLOR_CHANGED_PROPERTY
public static final java.lang.String BORDER_SIZE_CHANGED_PROPERTY
public static final java.lang.String INSETS_CHANGED_PROPERTY
public static final java.lang.String LEFT_LISTBOX_CHANGED_PROPERTY
public static final java.lang.String RIGHT_LISTBOX_CHANGED_PROPERTY
public static final java.lang.String LEFT_TITLE_CHANGED_PROPERTY
public static final java.lang.String RIGHT_TITLE_CHANGED_PROPERTY
public static final java.lang.String LEFT_SWAP_TEXT_CHANGED_PROPERTY
public static final java.lang.String RIGHT_SWAP_TEXT_CHANGED_PROPERTY
public static final java.lang.String ORIENTATION_CHANGED_PROPERTY
public static final nextapp.echo.Insets DEFAULT_INSETS
protected nextapp.echo.Color borderColor
protected int borderSize
protected nextapp.echo.Insets insets
protected nextapp.echo.ListBox leftListBox
protected nextapp.echo.ListBox rightListBox
protected java.lang.String leftTitle
protected java.lang.String rightTitle
protected java.lang.String leftSwapText
protected java.lang.String rightSwapText
public static final int defaultOrientation
protected int orientation
Constructor Detail |
public PickList()
PickList
with nothing in it
public PickList(java.lang.Object[] leftList, java.lang.Object[] rightList)
PickList
with the objects supplied
in the provided array.
public PickList(int ordering)
PickList
Orientation can be one of the following values.
public PickList(int orientation, java.lang.Object[] leftList, java.lang.Object[] rightList)
PickList
with the objects supplied
in the provided array.
Orientation can be one of 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 MouseCursorable
applyStyle
in class EchoPointComponent
Component.applyStyle(nextapp.echo.Style)
public nextapp.echo.Color getBorderColor()
Color
of the PickList's
border.public int getBorderSize()
PickList's
border.public nextapp.echo.Insets getInsets()
Insets
(margins) of the PickList
.public nextapp.echo.ListBox getLeftListBox()
public java.lang.String getLeftSwapText()
public java.lang.String getLeftTitle()
public int getOrientation()
PickList.ORIENTATION_VERTICAL
or
PickList.ORIENTATION_HORIZONTAL
, depending on the orientation
of the progress bar. The default orientation is
ORIENTATION_HORIZONTAL
.
public nextapp.echo.ListBox getRightListBox()
public java.lang.String getRightSwapText()
public java.lang.String getRightTitle()
public void setBorderColor(nextapp.echo.Color newBorderColor)
Color
of the PickList
.
PropertyChangeEvent
with a
getPropertyName()
value of
PickList.BORDER_COLOR_CHANGED_PROPERTY
public void setBorderSize(int newBorderSize)
PickList
.
PropertyChangeEvent
with a
getPropertyName()
value of
PickList.BORDER_SIZE_CHANGED_PROPERTY
public void setInsets(nextapp.echo.Insets newValue)
Insets
used by the PickList
PropertyChangeEvent
with a
getPropertyName()
value of
PickList.INSETS_CHANGED_PROPERTY
public void setLeftListBox(nextapp.echo.ListBox newLeftListBox)
newLeftListBox
- nextapp.echo.ListBoxpublic void setLeftSwapText(java.lang.String newLeftSwapText)
newLeftSwapText
- java.lang.Stringpublic void setLeftTitle(java.lang.String newLeftTitle)
newLeftTitle
- java.lang.Stringpublic void setOrientation(int newOrientation)
PickList.ORIENTATION_VERTICAL
or PickList.ORIENTATION_HORIZONTAL
.
The default orientation is ORIENTATION_HORIZONTAL
.
public void setRightListBox(nextapp.echo.ListBox newRightListBox)
newRightListBox
- nextapp.echo.ListBoxpublic void setRightSwapText(java.lang.String newRightSwapText)
newRightSwapText
- java.lang.Stringpublic void setRightTitle(java.lang.String newRightTitle)
newRightTitle
- java.lang.Stringpublic void setEnabled(boolean newValue)
Component.setEnabled(boolean)
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; }
field
- - the field to be setnewValue
- - the new value to be set
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 |