|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swing.control.attributeeditor.SwingAttributeEditorUtil.InitTextFieldRunnable
Runnable to use with SwingUtilities.invokeLater() to
prepare a text cell for editing. The textfield will get the focus
and all text is selected (depending on the configuration).
| Constructor Summary | |
SwingAttributeEditorUtil.InitTextFieldRunnable(javax.swing.text.JTextComponent txtComp,
boolean selectAll,
boolean getFocus)
Constructor |
|
| Method Summary | |
void |
run()
Will be executed by the event that is placed in the event queue by calling SwingUtilities.invokeLater().
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SwingAttributeEditorUtil.InitTextFieldRunnable(javax.swing.text.JTextComponent txtComp,
boolean selectAll,
boolean getFocus)
txtComp - The component to set the selection forselectAll - True to select all text of the textfield on executiongetFocus - True to set the focus to the textfield on execution| Method Detail |
public void run()
SwingUtilities.invokeLater().
Depending on the configuration (see constructor!) it will select the
text in the textfield and sets the focus.
Remark: The text will only be selected here if it didn't change in the
meantime (the time between construction and execution of
this class). This prevents a misbehavior when the cell editing
is started by typing. In this case the typed character will be
added to the text before executing this and so the added character
would be selected as well and the next typed character would erase
the whole text. Therefore the text is selected at construction
time and not afterwards.
run in interface java.lang.RunnableRunnable.run()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||