public abstract class AbstractPickerController<T> extends java.lang.Object implements PickerController<T>
Modifier and Type | Field and Description |
---|---|
protected ChangeListenerHelper |
changeListenerHelper |
protected static Logger |
LOG |
Constructor and Description |
---|
AbstractPickerController() |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener listener) |
protected java.lang.Object |
coerce(int type,
java.lang.Object value,
java.lang.Object defaultValue) |
protected boolean |
existsIcon(java.lang.String name) |
protected void |
fireChangeEvent() |
protected void |
fireChangeEvent(javax.swing.event.ChangeEvent event) |
javax.swing.event.ChangeListener[] |
getChangeListeners() |
protected javax.swing.ImageIcon |
getIcon(java.lang.String name) |
boolean |
hasChangeListeners() |
protected void |
initButton(javax.swing.JButton button,
java.lang.String iconName,
java.awt.event.ActionListener listener) |
protected void |
initText(javax.swing.text.JTextComponent text,
java.awt.event.ActionListener clearListener) |
boolean |
isEditable() |
boolean |
isEmpty() |
boolean |
isValid() |
void |
removeAllChangeListener() |
void |
removeChangeListener(javax.swing.event.ChangeListener listener) |
void |
setEditable(boolean editable) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
coerceAndSet, get, isEnabled, set, setEnabled
protected static final Logger LOG
protected ChangeListenerHelper changeListenerHelper
public void addChangeListener(javax.swing.event.ChangeListener listener)
addChangeListener
in interface ChangeListenerSupport
public javax.swing.event.ChangeListener[] getChangeListeners()
getChangeListeners
in interface ChangeListenerSupport
public void removeChangeListener(javax.swing.event.ChangeListener listener)
removeChangeListener
in interface ChangeListenerSupport
public void removeAllChangeListener()
removeAllChangeListener
in interface ChangeListenerSupport
public boolean hasChangeListeners()
hasChangeListeners
in interface ChangeListenerSupport
protected void fireChangeEvent()
protected void fireChangeEvent(javax.swing.event.ChangeEvent event)
protected java.lang.Object coerce(int type, java.lang.Object value, java.lang.Object defaultValue)
public void setEditable(boolean editable)
setEditable
in interface PickerController<T>
public boolean isEditable()
isEditable
in interface PickerController<T>
public boolean isValid()
isValid
in interface PickerController<T>
public boolean isEmpty()
isEmpty
in interface PickerController<T>
protected boolean existsIcon(java.lang.String name)
protected javax.swing.ImageIcon getIcon(java.lang.String name)
protected void initButton(javax.swing.JButton button, java.lang.String iconName, java.awt.event.ActionListener listener)
protected void initText(javax.swing.text.JTextComponent text, java.awt.event.ActionListener clearListener)