|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.AbstractComponent
nextapp.echo.text.TextComponent
nextapp.echo.TextField
echopoint.TextField
echopoint.ComboBox
echopoint.RecallComboBox
public class 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 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(Style style)
Sets stylistic properties of this component based on a Style
object. |
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.text.TextComponent |
|---|
getCssClass, getDocument, getHorizontalAlignment, getText, isEditable, setCssClass, setDocument, setEditable, setHorizontalAlignment, setText |
| 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(Style style)
ComponentStyle
object. The version of this method in Component will set
foreground and background colors and the font from the style if they are
present. Components should override this method if they allow more
properties to be set from a style object, and should call
super.applyStyle() if necessary.
applyStyle in interface BorderableapplyStyle in interface MouseCursorableapplyStyle in interface ComponentapplyStyle in class ComboBoxstyle - The style object from which to retrieve properties for this
Component.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 limit
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 ReflectionSetterset in class ComboBoxfield - - the field to be setnewValue - - the new value to be set
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.NullPointerException
java.lang.ExceptionReflectionSetter.set(Field, Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||