Package javascript.swing
Class JSTextField
- java.lang.Object
-
- javascript.swing.JSComponent
-
- javascript.swing.JSTextField
-
public class JSTextField extends JSComponent
The javax.swing.JTextField clone- Author:
- gianpiero.diblasi
-
-
Constructor Summary
Constructors Constructor Description JSTextField()
Creates the object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addActionListener(ActionListener listener)
Clone of javax.swing.JTextField.addActionListener, this listener is triggered whenever the text changesjava.lang.String
getText()
Clone of javax.swing.JSTextField.getTextvoid
setEditable(boolean b)
Clone of javax.swing.JTextField.getTextvoid
setText(java.lang.String text)
Clone of javax.swing.JTextField.setText-
Methods inherited from class javascript.swing.JSComponent
addChildEventListenerByQuery, addEventListener, appendChild, appendChildInTree, appendInBody, appendNodeChild, appendNodeChildInTree, clearChildContentByQuery, clearContent, cssAddClass, cssClassList, cssRemoveClass, cssToggleClass, getAttribute, getChildAttributeByIndex, getChildAttributeByQuery, getChildCount, getChildPropertyByQuery, getChilStyleByIndex, getChilStyleByQuery, getID, getProperty, getStyle, insertBefore, insertBeforeInTree, insertNodeBefore, insertNodeBeforeInTree, invoke, invokeInTree, prependChild, prependChildInTree, prependNodeChild, prependNodeChildInTree, removeAttribute, removeChildAttributeByQuery, removeFromBody, setAttribute, setBackground, setChildAttributeByIndex, setChildAttributeByQuery, setChildPropertyByQuery, setContent, setEnabled, setID, setProperty
-
-
-
-
Method Detail
-
setText
public void setText(java.lang.String text)
Clone of javax.swing.JTextField.setText- Parameters:
text
- The text
-
getText
public java.lang.String getText()
Clone of javax.swing.JSTextField.getText- Returns:
- The text
-
setEditable
public void setEditable(boolean b)
Clone of javax.swing.JTextField.getText- Parameters:
b
- true to make the textfield editable, false otherwise
-
addActionListener
public void addActionListener(ActionListener listener)
Clone of javax.swing.JTextField.addActionListener, this listener is triggered whenever the text changes- Parameters:
listener
- The listener
-
-