addActionListener
addActionListener: (IconTextField, any) -> ()The text field's.
IconTextField.new()| Method | Returns | Description |
|---|---|---|
addActionListener(any) | () | The text field's. |
addClearListener(any) | () | Runs r (a function, or a table with run) when the clear button empties it. |
addKeyListener(any) | () | The text field's. |
removeKeyListener(any) | () | The text field's. |
getText() | string | The text field's text. |
setText(string?) | () | The text field's text. |
requestFocusInWindow() | boolean | Focuses the text field. |
setBackground(Color?) | () | The background. |
setEditable(boolean) | () | Whether the text can be edited. |
setHoverBackgroundColor(Color?) | () | The background under the pointer. |
setIcon(any) | () | An IconTextField.Icon (or an ImageIcon) on the left. |
new() | IconTextField | IconTextField.new(). |
| Field | Type | Description |
|---|---|---|
Icon | IconTextFieldIconClass | IconTextField.Icon: the nested class's table. |
| Method | Returns | Description |
|---|---|---|
IconTextFieldClass.new | IconTextField | IconTextField.new(). |
addActionListeneraddActionListener: (IconTextField, any) -> ()The text field's.
addClearListeneraddClearListener: (IconTextField, any) -> ()Runs r (a function, or a table with run) when the clear button empties it.
addKeyListeneraddKeyListener: (IconTextField, any) -> ()The text field's.
removeKeyListenerremoveKeyListener: (IconTextField, any) -> ()The text field's.
getTextgetText: (IconTextField) -> stringThe text field's text.
setTextsetText: (IconTextField, string?) -> ()The text field's text.
requestFocusInWindowrequestFocusInWindow: (IconTextField) -> booleanFocuses the text field.
setBackgroundsetBackground: (IconTextField, Color?) -> ()The background.
setEditablesetEditable: (IconTextField, boolean) -> ()Whether the text can be edited.
setHoverBackgroundColorsetHoverBackgroundColor: (IconTextField, Color?) -> ()The background under the pointer.
setIconsetIcon: (IconTextField, any) -> ()An IconTextField.Icon (or an ImageIcon) on the left.
newnew: () -> IconTextFieldIconTextField.new().