public class MustComboBox extends RemoteElement implements Updatable, ActionInterpreter
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
editBeginValue |
protected int |
index |
protected java.util.Vector<java.lang.String> |
items |
protected java.lang.String |
value |
context, editable, enabled, lastEditability, lastVisibility, name, nonstandardPanel, nonstandardPosition, sessionData, toolTipText, visible
Constructor and Description |
---|
MustComboBox(SessionData sessionData) |
MustComboBox(SessionData sessionData,
java.util.Vector<java.lang.String> items) |
Modifier and Type | Method and Description |
---|---|
void |
addItem(java.lang.String item) |
void |
addItemListener(RemoteItemListener l)
Sets the item listener (unique).
|
void |
buildRemoteView(ToAppletWriter out)
Build remote view.
|
void |
destroy()
Don't wait until garbage collector removed weak reference.
|
void |
fetchValuesFromRequest(GeneralizedRequest request) |
java.lang.String |
getItemAt(int index) |
int |
getItemCount() |
java.lang.String |
getSelectedItem() |
boolean |
isModified() |
boolean |
perform(java.lang.String action)
Performs this action if the passed action ID is equal to the action ID
of the class that implements this interface.
|
void |
removeAllItems() |
void |
requestFocusInWindow()
Set focus on the receiving component if isRequestFocusEnabled returns true.
|
void |
resetEditBeginValue() |
void |
selectAll()
Selects all input of the component, if it is supported - e.g. in JTextField.
|
void |
setSelectedIndex(int anIndex)
Selects the item at index
anIndex . |
void |
setSelectedIndexAsEditBeginValue(int anIndex) |
void |
setSelectedItem(java.lang.String item) |
void |
setValues(ToAppletWriter out) |
void |
updateRemoteView(ToAppletWriter out) |
beginAction, endAction, free, getContext, getName, getTranslation, isEnabled, isVisible, register, resetLastStatus, setEditable, setEnabled, setToolTipText, setVisible
protected java.util.Vector<java.lang.String> items
protected java.lang.String value
protected java.lang.String editBeginValue
protected int index
public MustComboBox(SessionData sessionData)
public MustComboBox(SessionData sessionData, java.util.Vector<java.lang.String> items)
public void removeAllItems()
public void addItem(java.lang.String item)
public void setValues(ToAppletWriter out)
setValues
in interface RemoteContent
setValues
in class RemoteElement
public void setSelectedIndex(int anIndex)
anIndex
.anIndex
- an integer specifying the list item to selectpublic void setSelectedItem(java.lang.String item)
public java.lang.String getSelectedItem()
public int getItemCount()
public java.lang.String getItemAt(int index)
public void addItemListener(RemoteItemListener l)
l
- the item listenerpublic void buildRemoteView(ToAppletWriter out)
AppletTalker
buildRemoteView
in interface AppletTalker
buildRemoteView
in class RemoteElement
out
- the writer which will be read by the appletpublic void updateRemoteView(ToAppletWriter out)
updateRemoteView
in interface Updatable
public void fetchValuesFromRequest(GeneralizedRequest request)
fetchValuesFromRequest
in interface Remotable
public boolean perform(java.lang.String action)
ActionInterpreter
perform
in interface ActionInterpreter
action
- the action to performpublic void selectAll()
RemoteContent
selectAll
in interface RemoteContent
selectAll
in class RemoteElement
public void requestFocusInWindow()
RemoteContent
requestFocusInWindow
in interface RemoteContent
requestFocusInWindow
in class RemoteElement
public void setSelectedIndexAsEditBeginValue(int anIndex)
public boolean isModified()
public void resetEditBeginValue()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de