public abstract class TextAdapter extends Object
updateModel(String)to
initialize model on text change.| Modifier and Type | Field and Description |
|---|---|
protected Color |
defaultBGColor |
protected String |
defaultToolTip |
protected Color |
errorColor |
protected boolean |
modelUpdateDisabled |
protected JTextComponent |
textComponent |
protected UndoableEditListener |
undoableListener |
| Constructor and Description |
|---|
TextAdapter(JTextComponent textField) |
TextAdapter(JTextComponent textComponent,
boolean checkOnFocusLost,
boolean checkOnTyping) |
TextAdapter(JTextField textField) |
TextAdapter(JTextField textField,
boolean checkOnFocusLost,
boolean checkOnTyping,
boolean checkOnEnter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clear() |
JTextComponent |
getComponent()
Returns internal text component.
|
void |
setText(String text)
Sets the text of the underlying text field.
|
void |
updateModel() |
protected abstract void |
updateModel(String text)
Updates bound model with document text.
|
protected Color defaultBGColor
protected Color errorColor
protected String defaultToolTip
protected boolean modelUpdateDisabled
protected UndoableEditListener undoableListener
protected JTextComponent textComponent
public TextAdapter(JTextField textField)
public TextAdapter(JTextField textField, boolean checkOnFocusLost, boolean checkOnTyping, boolean checkOnEnter)
public TextAdapter(JTextComponent textField)
public TextAdapter(JTextComponent textComponent, boolean checkOnFocusLost, boolean checkOnTyping)
protected abstract void updateModel(String text) throws ValidationException
ValidationExceptionpublic JTextComponent getComponent()
public void setText(String text)
public void updateModel()
protected void clear()
Copyright © 2001–2015 Apache Cayenne. All rights reserved.