public abstract class EditorTextFieldControl<T extends javax.swing.JComponent> extends BaseModifiableControl<T,java.lang.String>
Disposable.Parent
ERROR_BACKGROUND, ERROR_FOREGROUND, WARNING_BACKGROUND
Modifier | Constructor and Description |
---|---|
protected |
EditorTextFieldControl(DomWrapper<java.lang.String> domWrapper) |
protected |
EditorTextFieldControl(DomWrapper<java.lang.String> domWrapper,
boolean commitOnEveryChange) |
Modifier and Type | Method and Description |
---|---|
boolean |
canNavigate(DomElement element) |
protected T |
createMainComponent(T boundedComponent) |
protected abstract T |
createMainComponent(T boundedComponent,
Project project) |
protected void |
doReset() |
protected javax.swing.JComponent |
getComponentToListenFocusLost(T component) |
protected abstract EditorTextField |
getEditorTextField(T component) |
protected javax.swing.JComponent |
getHighlightedComponent(T component) |
protected java.lang.String |
getValue() |
void |
navigate(DomElement element) |
protected void |
setValue(java.lang.String value) |
protected void |
updateComponent() |
doCommit, isCommitted, setModified
addCommitListener, bind, commit, dispose, getComponent, getDefaultBackground, getDefaultForeground, getDomElement, getDomWrapper, getErrorBackground, getErrorForeground, getProject, getWarningBackground, isValid, removeCommitListener, reset, updateHighlighting
addDependency
protected EditorTextFieldControl(DomWrapper<java.lang.String> domWrapper, boolean commitOnEveryChange)
protected EditorTextFieldControl(DomWrapper<java.lang.String> domWrapper)
protected abstract EditorTextField getEditorTextField(T component)
protected void doReset()
doReset
in class BaseControl<T extends javax.swing.JComponent,java.lang.String>
protected javax.swing.JComponent getComponentToListenFocusLost(T component)
getComponentToListenFocusLost
in class BaseControl<T extends javax.swing.JComponent,java.lang.String>
protected javax.swing.JComponent getHighlightedComponent(T component)
getHighlightedComponent
in class BaseControl<T extends javax.swing.JComponent,java.lang.String>
protected T createMainComponent(T boundedComponent)
createMainComponent
in class BaseControl<T extends javax.swing.JComponent,java.lang.String>
protected java.lang.String getValue()
getValue
in class BaseControl<T extends javax.swing.JComponent,java.lang.String>
protected void setValue(java.lang.String value)
setValue
in class BaseControl<T extends javax.swing.JComponent,java.lang.String>
protected void updateComponent()
updateComponent
in class BaseControl<T extends javax.swing.JComponent,java.lang.String>
public boolean canNavigate(DomElement element)
canNavigate
in class BaseControl<T extends javax.swing.JComponent,java.lang.String>
public void navigate(DomElement element)
navigate
in class BaseControl<T extends javax.swing.JComponent,java.lang.String>