| |
|
| java.lang.Object jimm.datavision.gui.FieldWidget jimm.datavision.gui.TextFieldWidget
TextFieldWidget | public class TextFieldWidget extends FieldWidget (Code) | | A text field widget is a field widget that is editable.
author: Jim Menard, jimm@io.com |
Method Summary | |
public void | actionPerformed(ActionEvent e) Performs some action based on the action command string (the menu
item text). | protected void | addCustomPopupItems() | protected void | cursorForPosition(MouseEvent e) If this field is being edited, show text cursor. | protected void | doSelect(boolean makeSelected) Perform selection; if becoming deselected, ends editing. | protected void | endEditing() Stores new value and bounds from self into field and makes text
non-editable. | protected String | getPopupNameText() | public void | keyTyped(KeyEvent e) Handles return key by expanding height of editor and backspace and
delete by shrinking height if newline is deleted. | public void | mouseClicked(MouseEvent e) if this is a double-click, start editing; else handle the mouse event
like a normal field widget. | public void | startEditing() Makes our text editable and starts editing. |
changingEditState | protected boolean changingEditState(Code) | | |
lineHeight | protected int lineHeight(Code) | | |
origHeight | protected int origHeight(Code) | | |
TextFieldWidget | public TextFieldWidget(SectionWidget sw, Field field)(Code) | | Constructor.
Parameters: sw - section widget in which the field's new widget will reside Parameters: field - a report field |
actionPerformed | public void actionPerformed(ActionEvent e)(Code) | | Performs some action based on the action command string (the menu
item text).
|
addCustomPopupItems | protected void addCustomPopupItems()(Code) | | |
cursorForPosition | protected void cursorForPosition(MouseEvent e)(Code) | | If this field is being edited, show text cursor. Else call superclass
method.
Parameters: e - a mouse event |
doSelect | protected void doSelect(boolean makeSelected)(Code) | | Perform selection; if becoming deselected, ends editing.
Parameters: makeSelected - new selection state |
endEditing | protected void endEditing()(Code) | | Stores new value and bounds from self into field and makes text
non-editable.
|
keyTyped | public void keyTyped(KeyEvent e)(Code) | | Handles return key by expanding height of editor and backspace and
delete by shrinking height if newline is deleted.
Parameters: e - key event |
mouseClicked | public void mouseClicked(MouseEvent e)(Code) | | if this is a double-click, start editing; else handle the mouse event
like a normal field widget.
Parameters: e - mouse event |
startEditing | public void startEditing()(Code) | | Makes our text editable and starts editing.
|
|
|
|