public class IlxWTextField
extends ilog.webui.dhtml.components.IlxWLabelWrapper
<input type="text"> HTML element.IlxWComponent.DynamicStyleMapcssDescriptor, cssModel, labellistenerList| Constructor and Description |
|---|
IlxWTextField()
Constructs an empty text field.
|
IlxWTextField(int columns)
Constructs a text field with the given number of columns and no text.
|
IlxWTextField(java.lang.String text)
Constructs a text field with the given text.
|
IlxWTextField(java.lang.String text,
int columns)
Constructs a text field with the given text and number of columns.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(java.awt.event.ActionListener l)
Adds the specified action listener to receive
action events from this text field.
|
protected void |
fireActionPerformed()
Notifies all listeners that have registered interest for
notification on this event type.
|
IlxWAction |
getAction()
Gets the action to perform when the user enter some text in the
text field.
|
int |
getColumns() |
java.lang.String |
getEmptyText()
Gets the text to display when no text has been set on this text field.
|
java.lang.String |
getMenuClass() |
java.lang.String |
getMenuItemSelectedClass() |
java.lang.String |
getMenuItemUnSelectedClass() |
IlxWAction |
getOnKeyPressAction()
Gets the action that will be called when a key is pressed in the input field representing this textfield.
|
java.lang.String |
getText()
Gets the text of this text field.
|
protected IlxWCSSRuleset |
getUserAgentRules()
Gets the "user-agent" CSS rules.
|
void |
notifyDependencies(IlxWPort port) |
protected void |
printComponent(IlxWPort port)
Prints the HTML code that will display the graphical
representation of this component.
|
void |
removeActionListener(java.awt.event.ActionListener l)
Removes the specified action listener so that it no longer
receives action events from this text field.
|
void |
setAction(IlxWAction onChangeAction) |
void |
setColumns(int columns) |
void |
setEmptyText(java.lang.String emptyText)
Sets the text to display when no text has been set on this text field.
|
void |
setMenuClass(java.lang.String menuClass) |
void |
setMenuItemSelectedClass(java.lang.String menuItemSelectedClass) |
void |
setMenuItemUnSelectedClass(java.lang.String menuItemUnSelectedClass) |
void |
setOnKeyPressAction(IlxWAction onKeyPressAction)
Sets the action that will be called when a key is pressed in the input field representing this textfield.
|
void |
setText(java.lang.String text)
sets the text of this text field.
|
getCSSModel, getIconPath, getIcoPath, getLabel, setIconPathaddPropertyChangeListener, addPropertyChangeListener, detach, doPrint, firePropertyChange, firePropertyChange, getName, getRealHtmlTagName, getStyle, invalidate, isInvalidated, print, removePropertyChangeListener, removePropertyChangeListener, setName, validateadd, add, getAttribute, getAttributeNames, getComponent, getComponentCount, getComponentNamed, getComponents, getManager, getParent, indexOf, isAncestorOf, remove, remove, removeAll, removeAttribute, setAttribute, setAuthorRules, setFinalizerpublic IlxWTextField()
public IlxWTextField(int columns)
public IlxWTextField(java.lang.String text)
public IlxWTextField(java.lang.String text,
int columns)
public int getColumns()
public void setColumns(int columns)
columns - The number of columns.public void setText(java.lang.String text)
setText in class ilog.webui.dhtml.components.IlxWLabelWrappertext - the displayed textpublic java.lang.String getText()
getText in class ilog.webui.dhtml.components.IlxWLabelWrapperpublic void setEmptyText(java.lang.String emptyText)
emptyText - The displayed text when no text has been set.public java.lang.String getEmptyText()
public void setAction(IlxWAction onChangeAction)
onChangeAction - the action to perform when the user enter some text in the
text field.public IlxWAction getAction()
setAction has no been called on this
component, the action is a Java action which calls the
fireActionPerformed() method.public IlxWAction getOnKeyPressAction()
public void setOnKeyPressAction(IlxWAction onKeyPressAction)
onKeyPressAction - an action.public java.lang.String getMenuItemUnSelectedClass()
public java.lang.String getMenuItemSelectedClass()
public void setMenuItemSelectedClass(java.lang.String menuItemSelectedClass)
public void setMenuItemUnSelectedClass(java.lang.String menuItemUnSelectedClass)
public java.lang.String getMenuClass()
public void setMenuClass(java.lang.String menuClass)
protected void printComponent(IlxWPort port) throws java.io.IOException
IlxWComponentIlxWComponent.print(ilog.webui.dhtml.IlxWPort) method.printComponent in class ilog.webui.dhtml.components.IlxWLabelWrapperjava.io.IOExceptionport - The port on which the component will be printed.IlxWComponent.print(ilog.webui.dhtml.IlxWPort)public void addActionListener(java.awt.event.ActionListener l)
l - the action listenerpublic void removeActionListener(java.awt.event.ActionListener l)
l - the action listenerprotected void fireActionPerformed()
EventListenerListprotected IlxWCSSRuleset getUserAgentRules()
IlxWContainersetAuthorRules method.
This method returns null by default but is intended
to be redefined by subclasses.
getUserAgentRules in class IlxWContainerIlxWContainer.setAuthorRules(ilog.webui.dhtml.IlxWCSSRuleset)public void notifyDependencies(IlxWPort port)
notifyDependencies in interface ilog.webui.dhtml.IlxWDependencyProvidernotifyDependencies in class IlxWComponent© Copyright IBM Corp. 1987, 2017