|
EchoPoint 2.1.0rc4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echo2.app.Component
echopointng.ComponentEx
echopointng.AbleComponent
echopointng.PopUp
echopointng.DropDown
echopointng.ComboBox
The ComboBox component is a TextField that acts like a SelectField as well. It will present a list of
choices to the user (like a SelectField) that can be auto-matched as the user types in key strokes.
The ComboBox has a drop down button that when pressed will toggle the display of a list of choices,
which the user can then select from.
The ComboBox can be set to remember which values have been entered and add them to its internal
ListModel. This can happen if the ListModel is an instanceof DefaultListModel and hence has an add() method. This
behaviour is off by default, but can be switched on via the setAutoRecall() method.
| Field Summary | |
static nextapp.echo2.app.Style |
DEFAULT_TEXT_FIELD_STYLE
The default appearance of the TextField component within the ComboBox Borderless so that the text field appears part of the larger control |
static java.lang.String |
PROPERTY_ACTION_ON_SELECTION
|
static java.lang.String |
PROPERTY_AUTO_RECALL
|
static java.lang.String |
PROPERTY_AUTO_RECALL_LIMIT
|
static java.lang.String |
PROPERTY_CASE_SENSITIVE
|
static java.lang.String |
PROPERTY_LIST_ROWCOUNT
|
static java.lang.String |
PROPERTY_TEXT_MATCHING
|
static java.lang.String |
PROPERTY_TEXTFIELD_DOCUMENT
|
static java.lang.String |
PROPERTY_TEXTFIELD_EDITABLE
|
| Fields inherited from class echopointng.DropDown |
DEFAULT_ALIGNMENT, DEFAULT_STYLE |
| Fields inherited from class echopointng.ComponentEx |
PROPERTY_HIDDEN |
| Fields inherited from class nextapp.echo2.app.Component |
CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_TRAVERSAL_INDEX_CHANGED_PROPERTY, FOCUS_TRAVERSAL_PARTICIPANT_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTY |
| Fields inherited from interface echopointng.able.Expandable |
EXPANDED_CHANGED_PROPERTY, PROPERTY_EXPANSION_GROUP, PROPERTY_EXPANSION_MODEL |
| Fields inherited from interface echopointng.able.AccessKeyable |
PROPERTY_ACCESS_KEY |
| Fields inherited from interface echopointng.able.Borderable |
PROPERTY_BORDER |
| Fields inherited from interface echopointng.able.MouseCursorable |
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, PROPERTY_MOUSE_CURSOR, PROPERTY_MOUSE_CURSOR_URI |
| Fields inherited from interface echopointng.able.Insetable |
DEFAULT_INSETS, DEFAULT_OUTSETS, PROPERTY_INSETS, PROPERTY_OUTSETS |
| Fields inherited from interface echopointng.able.Widthable |
PROPERTY_WIDTH |
| Fields inherited from interface echopointng.able.Heightable |
PROPERTY_HEIGHT |
| Fields inherited from interface echopointng.able.ToolTipable |
PROPERTY_TOOL_TIP_TEXT |
| Constructor Summary | |
ComboBox()
Creates a ComboBox |
|
ComboBox(int columns)
Creates a ComboBox that is columns wide. |
|
ComboBox(java.lang.Object[] list)
Creates a ComboBox with list as the initial list contents. |
|
ComboBox(java.lang.String text)
Creates a ComboBox with text as the initial value. |
|
ComboBox(java.lang.String text,
int columns,
java.lang.Object[] list)
Creates a ComboBox with text as the initial value and that is columns
wide and list as the initial list contents. |
|
ComboBox(java.lang.String text,
java.lang.Object[] list)
Creates a ComboBox with text as the initial value and list as the
initial list contents. |
|
| Method Summary | |
void |
addActionListener(nextapp.echo2.app.event.ActionListener l)
Adds an ActionListener to the ComboBox component. |
int |
getAutoRecallLimit()
Returns the auto recall limit |
nextapp.echo2.app.Component |
getFocusComponent()
Returns the Component that should receive the focus when
this Componentis focused, enabling composite components to
specify a specific child to be focused. |
nextapp.echo2.app.list.ListCellRenderer |
getListCellRenderer()
Returns the renderer for items. |
nextapp.echo2.app.list.ListModel |
getListModel()
Returns the list model for items. |
int |
getListRowCount()
Returns the number of visible rows in the drop-down list |
java.lang.String |
getText()
|
nextapp.echo2.app.TextField |
getTextField()
Returns the text field component of the combobox |
boolean |
hasActionListeners()
Determines the any ActionListeners are registered. |
boolean |
isActionOnSelection()
Indicates whether a server action is done when the list selection changes. |
boolean |
isAutoRecall()
Returns true if auto recall is in effect |
boolean |
isCaseSensitive()
Indicates whether text matching is case sensitive. |
boolean |
isTextMatchingPerformed()
Returns true if text matching is performed |
void |
removeActionListener(nextapp.echo2.app.event.ActionListener l)
Removes an ActionListener from the TextField. |
void |
setActionOnSelection(boolean newValue)
Controls whether a server action is done when the list selection changes. |
void |
setAutoRecall(boolean newValue)
Controls whether auto recall is in effect. |
void |
setAutoRecallLimit(int newValue)
Sets how many entries will be automatically recalled. |
void |
setCaseSensitive(boolean newValue)
Controls whether text matching is case sensitive. |
void |
setListCellRenderer(nextapp.echo2.app.list.ListCellRenderer newValue)
Sets the renderer for items. |
void |
setListModel(nextapp.echo2.app.list.ListModel newValue)
Sets the list model. |
void |
setListRowCount(int newValue)
Sets the visible row count for the drop-down list. |
void |
setText(java.lang.String newValue)
|
void |
setTextField(nextapp.echo2.app.TextField newValue)
Assigns a new text field to the combo box |
void |
setTextMatchingPerformed(boolean newValue)
Controls whether text matching is performed as the user types in the text field. |
void |
validate()
|
| Methods inherited from class echopointng.AbleComponent |
getAccessKey, getBorder, getHeight, getInsets, getMouseCursor, getMouseCursorUri, getOutsets, getToolTipText, getWidth, setAccessKey, setBorder, setHeight, setInsets, setMouseCursor, setMouseCursorUri, setOutsets, setToolTipText, setWidth |
| Methods inherited from class nextapp.echo2.app.Component |
add, add, addPropertyChangeListener, dispose, firePropertyChange, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusTraversalIndex, getFont, getForeground, getId, getIndexedProperty, getLayoutData, getLayoutDirection, getLocale, getParent, getProperty, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLayoutDirection, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isValidChild, isValidParent, isVisible, remove, remove, removeAll, removePropertyChangeListener, setBackground, setEnabled, setFocusTraversalIndex, setFocusTraversalParticipant, setFont, setForeground, setId, setIndexedProperty, setLayoutData, setLayoutDirection, setLocale, setProperty, setRenderId, setStyle, setStyleName, setVisible, verifyInput, visibleIndexOf |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface echopointng.able.Delegateable |
getRenderProperty, getRenderProperty |
| Field Detail |
public static final java.lang.String PROPERTY_ACTION_ON_SELECTION
public static final java.lang.String PROPERTY_AUTO_RECALL
public static final java.lang.String PROPERTY_AUTO_RECALL_LIMIT
public static final java.lang.String PROPERTY_CASE_SENSITIVE
public static final java.lang.String PROPERTY_LIST_ROWCOUNT
public static final java.lang.String PROPERTY_TEXT_MATCHING
public static final java.lang.String PROPERTY_TEXTFIELD_DOCUMENT
public static final java.lang.String PROPERTY_TEXTFIELD_EDITABLE
public static final nextapp.echo2.app.Style DEFAULT_TEXT_FIELD_STYLE
| Constructor Detail |
public ComboBox()
ComboBox
public ComboBox(int columns)
ComboBox that is columns wide.
public ComboBox(java.lang.String text)
ComboBox with text as the initial value.
public ComboBox(java.lang.Object[] list)
ComboBox with list as the initial list contents.
public ComboBox(java.lang.String text,
java.lang.Object[] list)
ComboBox with text as the initial value and list as the
initial list contents.
public ComboBox(java.lang.String text,
int columns,
java.lang.Object[] list)
ComboBox with text as the initial value and that is columns
wide and list as the initial list contents.
| Method Detail |
public nextapp.echo2.app.Component getFocusComponent()
Component that should receive the focus when
this Componentis focused, enabling composite components to
specify a specific child to be focused.
getFocusComponent in interface nextapp.echo2.app.DelegateFocusSupportComponent that should receive the focus when
this Componentis focusedpublic void addActionListener(nextapp.echo2.app.event.ActionListener l)
ActionListener to the ComboBox component. The ActionListener will be
invoked when the user selects an item.
l - the ActionListener to addpublic void removeActionListener(nextapp.echo2.app.event.ActionListener l)
ActionListener from the TextField.
l - the ActionListener to removepublic void validate()
validate in class PopUpComponent.validate()public int getAutoRecallLimit()
public nextapp.echo2.app.list.ListCellRenderer getListCellRenderer()
public nextapp.echo2.app.list.ListModel getListModel()
public java.lang.String getText()
TextComponent.getText()public int getListRowCount()
public nextapp.echo2.app.TextField getTextField()
public boolean hasActionListeners()
ActionListeners are registered.
public boolean isActionOnSelection()
public boolean isAutoRecall()
public boolean isCaseSensitive()
public boolean isTextMatchingPerformed()
public void setAutoRecallLimit(int newValue)
newValue - - the new limitpublic void setAutoRecall(boolean newValue)
newValue - - True to turn on AutoRecallpublic void setActionOnSelection(boolean newValue)
newValue - - true or falsepublic void setCaseSensitive(boolean newValue)
newValue - - True if text matching should be case sensitivepublic void setListRowCount(int newValue)
newValue - - number of rows to show in the drop-down listpublic void setListCellRenderer(nextapp.echo2.app.list.ListCellRenderer newValue)
newValue - The new renderer for items.public void setListModel(nextapp.echo2.app.list.ListModel newValue)
newValue - The new model.public void setText(java.lang.String newValue)
TextComponent.setText(java.lang.String)public void setTextField(nextapp.echo2.app.TextField newValue)
newValue - - The textField to set.public void setTextMatchingPerformed(boolean newValue)
newValue - - True if text matching is to be performed
|
EchoPoint 2.1.0rc4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||