|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.webui.dhtml.IlxWContainer ilog.webui.dhtml.IlxWComponent ilog.webui.dhtml.components.IlxWLabelWrapper ilog.webui.dhtml.components.IlxWTextField
public class IlxWTextField
A text field component.
This component is rendered as an <input type="text">
HTML element.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ilog.webui.dhtml.IlxWComponent |
---|
IlxWComponent.DynamicStyleMap |
Field Summary |
---|
Fields inherited from class ilog.webui.dhtml.components.IlxWLabelWrapper |
---|
cssDescriptor, cssModel, label |
Fields inherited from class ilog.webui.dhtml.IlxWContainer |
---|
listenerList |
Constructor Summary | |
---|---|
IlxWTextField()
Constructs an empty text field. |
|
IlxWTextField(int columns)
Constructs a text field with the given number of columns and no text. |
|
IlxWTextField(String text)
Constructs a text field with the given text. |
|
IlxWTextField(String text,
int columns)
Constructs a text field with the given text and number of columns. |
Method Summary | |
---|---|
void |
addActionListener(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()
|
String |
getEmptyText()
Gets the text to display when no text has been set on this text field. |
String |
getMenuClass()
|
String |
getMenuItemSelectedClass()
|
String |
getMenuItemUnSelectedClass()
|
IlxWAction |
getOnKeyPressAction()
Gets the action that will be called when a key is pressed in the input field representing this textfield. |
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(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(String emptyText)
Sets the text to display when no text has been set on this text field. |
void |
setMenuClass(String menuClass)
|
void |
setMenuItemSelectedClass(String menuItemSelectedClass)
|
void |
setMenuItemUnSelectedClass(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(String text)
sets the text of this text field. |
Methods inherited from class ilog.webui.dhtml.components.IlxWLabelWrapper |
---|
getCSSModel, getIconPath, getIcoPath, getLabel, setIconPath |
Methods inherited from class ilog.webui.dhtml.IlxWComponent |
---|
addPropertyChangeListener, addPropertyChangeListener, detach, doPrint, firePropertyChange, firePropertyChange, getName, getRealHtmlTagName, getStyle, invalidate, isInvalidated, print, removePropertyChangeListener, removePropertyChangeListener, setName, validate |
Methods inherited from class ilog.webui.dhtml.IlxWContainer |
---|
add, add, getAttribute, getAttributeNames, getComponent, getComponentCount, getComponentNamed, getComponents, getManager, getParent, indexOf, isAncestorOf, remove, remove, removeAll, removeAttribute, setAttribute, setAuthorRules, setFinalizer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IlxWTextField()
public IlxWTextField(int columns)
public IlxWTextField(String text)
public IlxWTextField(String text, int columns)
Method Detail |
---|
public int getColumns()
public void setColumns(int columns)
columns
- The number of columns.public void setText(String text)
setText
in class ilog.webui.dhtml.components.IlxWLabelWrapper
text
- the displayed textpublic String getText()
getText
in class ilog.webui.dhtml.components.IlxWLabelWrapper
public void setEmptyText(String emptyText)
emptyText
- The displayed text when no text has been set.public 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 String getMenuItemUnSelectedClass()
public String getMenuItemSelectedClass()
public void setMenuItemSelectedClass(String menuItemSelectedClass)
public void setMenuItemUnSelectedClass(String menuItemUnSelectedClass)
public String getMenuClass()
public void setMenuClass(String menuClass)
protected void printComponent(IlxWPort port) throws IOException
IlxWComponent
IlxWComponent.print(ilog.webui.dhtml.IlxWPort)
method.
printComponent
in class ilog.webui.dhtml.components.IlxWLabelWrapper
IOException
port
- The port on which the component will be printed.IlxWComponent.print(ilog.webui.dhtml.IlxWPort)
public void addActionListener(ActionListener l)
l
- the action listenerpublic void removeActionListener(ActionListener l)
l
- the action listenerprotected void fireActionPerformed()
EventListenerList
protected IlxWCSSRuleset getUserAgentRules()
IlxWContainer
setAuthorRules
method.
This method returns null
by default but is intended
to be redefined by subclasses.
getUserAgentRules
in class IlxWContainer
IlxWContainer.setAuthorRules(ilog.webui.dhtml.IlxWCSSRuleset)
public void notifyDependencies(IlxWPort port)
notifyDependencies
in interface ilog.webui.dhtml.IlxWDependencyProvider
notifyDependencies
in class IlxWComponent
|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |