|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wings.SComponent
org.wings.STextComponent
org.wings.STextField
public class STextField
Single-lined input component for text input which requires a surrounding SForm element.
| Field Summary | |
|---|---|
protected String |
actionCommand
default action command to fire |
protected int |
columns
maximum columns shown |
protected int |
maxColumns
maximum columns allowed |
| Fields inherited from class org.wings.SComponent |
|---|
DONE_RENDERING, dynamicStyles, enabled, propertyChangeSupport, SELECTOR_ALL, START_RENDERING, visible, WHEN_FOCUSED_OR_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_FRAME |
| Constructor Summary | |
|---|---|
STextField()
|
|
STextField(String text)
|
|
| Method Summary | |
|---|---|
void |
addActionListener(ActionListener listener)
Adds an ActionListener to the button. |
protected void |
fireActionEvent()
Notify all listeners that have registered as ActionListeners if the selected item has changed |
protected void |
fireActionPerformed(ActionEvent event)
Fire an ActionEvent at each registered listener. |
void |
fireFinalEvents()
Internal event trigger used by CGs. |
String |
getActionCommand()
Returns the action commnand that is included in the event sent to action listeners. |
ActionListener[] |
getActionListeners()
Returns an array of all the ActionListeners added
to this AbstractButton with addActionListener(). |
int |
getColumns()
Returns the number of columns of the TextField. |
int |
getMaxColumns()
|
void |
removeActionListener(ActionListener listener)
Removes the supplied Listener from teh listener list |
void |
setActionCommand(String command)
Sets the action commnand that should be included in the event sent to action listeners. |
void |
setCG(TextFieldCG cg)
|
void |
setColumns(int c)
Sets the number of columns of the TextField. |
void |
setMaxColumns(int mc)
|
| Methods inherited from class org.wings.STextComponent |
|---|
addDocumentListener, append, changedUpdate, fireIntermediateEvents, getDocument, getDocumentListeners, getText, insertUpdate, isEditable, isEpochCheckEnabled, processLowLevelEvent, removeDocumentListener, removeUpdate, setDocument, setEditable, setEpochCheckEnabled, setText |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.wings.LowLevelEventListener |
|---|
getLowLevelEventId, getName, isEnabled |
| Field Detail |
|---|
protected int columns
protected int maxColumns
protected String actionCommand
| Constructor Detail |
|---|
public STextField()
public STextField(String text)
| Method Detail |
|---|
public void setColumns(int c)
c - the number of columnspublic int getColumns()
public void setMaxColumns(int mc)
public int getMaxColumns()
public void setCG(TextFieldCG cg)
public void setActionCommand(String command)
command - a string containing the "command" that is sent
to action listeners. The same listener can then
do different things depending on the command it
receives.public String getActionCommand()
public void addActionListener(ActionListener listener)
listener - the ActionListener to be addedpublic void removeActionListener(ActionListener listener)
public ActionListener[] getActionListeners()
ActionListeners added
to this AbstractButton with addActionListener().
ActionListeners added or an empty
array if no listeners have been addedprotected void fireActionPerformed(ActionEvent event)
event - the supplied ActionEventprotected void fireActionEvent()
EventListenerListpublic void fireFinalEvents()
SComponent
fireFinalEvents in interface LowLevelEventListenerfireFinalEvents in class STextComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||