|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.Component
nextapp.echo.text.TextComponent
nextapp.echo.TextField
echopoint.TextField
echopoint.ComboBox
echopoint.RecallComboBox
The RecallComboBox
class is a ComboBox that
can remember what has been entered into it before.
By default the RecallComboBox
will 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.
You can turn this behaviour off via the setAutoRecall() method.
Nested Class Summary | |
static class |
RecallComboBox.NestedStyleInfo
Nested public static StyleInfo class. |
Field Summary | |
static java.lang.String |
AUTO_RECALL_CHANGED_PROPERTY
Auto Recall Property |
static java.lang.String |
AUTO_RECALL_LIMIT_CHANGED_PROPERTY
Auto Recall Limit Property |
Fields inherited from class nextapp.echo.TextField |
ACTION_COMMAND_CHANGED_PROPERTY, COLUMN_UNITS_CHANGED_PROPERTY, COLUMNS_CHANGED_PROPERTY, MAXIMUM_LENGTH_CHANGED_PROPERTY, STYLE_MAXIMUM_LENGTH |
Fields inherited from class nextapp.echo.text.TextComponent |
BORDER_COLOR_CHANGED_PROPERTY, BORDER_DEFAULT, BORDER_INSET, BORDER_NONE, BORDER_SIZE_CHANGED_PROPERTY, BORDER_SOLID, BORDER_STYLE_CHANGED_PROPERTY, CHARACTER_UNITS, DOCUMENT_CHANGED_PROPERTY, EDITABLE_CHANGED_PROPERTY, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, PERCENT_UNITS, PIXEL_UNITS, STYLE_BORDER_COLOR, STYLE_BORDER_SIZE, STYLE_BORDER_STYLE, STYLE_COLUMNS, STYLE_HORIZONTAL_ALIGNMENT, STYLE_LINE_WRAP, STYLE_ROWS, TEXT_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, 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 |
Fields inherited from interface nextapp.echo.ToolTipSupport |
TOOL_TIP_TEXT_CHANGED_PROPERTY |
Constructor Summary | |
RecallComboBox()
Creates a RecallTextField |
|
RecallComboBox(int columns)
|
|
RecallComboBox(java.lang.Object[] list)
|
|
RecallComboBox(java.lang.String text)
|
|
RecallComboBox(java.lang.String text,
int columns)
|
|
RecallComboBox(java.lang.String text,
int columns,
java.lang.Object[] list)
|
|
RecallComboBox(java.lang.String text,
java.lang.Object[] list)
|
Method Summary | |
void |
applyStyle(nextapp.echo.Style style)
This will apply the borderColor, borderWidth and borderStyle properties first followed by the left, top, right and bottom borer properties. |
int |
getAutoRecallLimit()
Returns the auto recall limit |
boolean |
isAutoRecall()
Returns true if auto recall is in effect |
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 |
setAutoRecall(boolean b)
Controls whether auto recall is in effect |
void |
setAutoRecall(int newValue)
Sets how many entries will be automatically recalled. |
Methods inherited from class nextapp.echo.TextField |
addActionListener, fireActionEvent, getActionCommand, getColumns, getColumnUnits, getMaximumLength, hasActionListeners, removeActionListener, setActionCommand, setColumns, setColumnUnits, setMaximumLength |
Methods inherited from class nextapp.echo.text.TextComponent |
getDocument, getHorizontalAlignment, getText, isEditable, setDocument, setEditable, setHorizontalAlignment, setText |
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, 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.validation.Validateable |
getIdentifier, getLocale, getText |
Field Detail |
public static final java.lang.String AUTO_RECALL_CHANGED_PROPERTY
public static final java.lang.String AUTO_RECALL_LIMIT_CHANGED_PROPERTY
Constructor Detail |
public RecallComboBox()
RecallTextField
public RecallComboBox(int columns)
ComboBox.ComboBox(int)
public RecallComboBox(java.lang.String text)
ComboBox.ComboBox(String)
public RecallComboBox(java.lang.Object[] list)
ComboBox.ComboBox(Object[])
public RecallComboBox(java.lang.String text, java.lang.Object[] list)
ComboBox.ComboBox(String, Object[])
public RecallComboBox(java.lang.String text, int columns)
ComboBox.ComboBox(String, int, Object[])
public RecallComboBox(java.lang.String text, int columns, java.lang.Object[] list)
ComboBox.ComboBox(String, int, Object[])
Method Detail |
public void applyStyle(nextapp.echo.Style style)
Borderable
applyStyle
in interface Borderable
applyStyle
in class ComboBox
Component.applyStyle(nextapp.echo.Style)
public boolean isAutoRecall()
public int getAutoRecallLimit()
public void setAutoRecall(boolean b)
b
- - booleanpublic void setAutoRecall(int newValue)
newValue
- - int - the new limitpublic 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 ComboBox
java.lang.Exception
ReflectionSetter.set(Field, Object)
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |