|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.bus.bean.Bean
net.sf.doolin.gui.field.AbstractFieldDescriptor<V>
net.sf.doolin.gui.field.AbstractPropertyFieldDescriptor<V>
net.sf.doolin.gui.field.AbstractFieldText<V,J>
V - Type of object for the viewpublic abstract class AbstractFieldText<V,J extends JTextComponent>
JTextField field descriptor.
| Constructor Summary | |
|---|---|
AbstractFieldText()
|
|
| Method Summary | |
|---|---|
Field<V> |
createField(GUIView<V> view)
Creates a field. |
protected abstract J |
createTextComponent()
|
protected JComponent |
decorateComponent(J text)
Decorates the text field before it is actually set as the field component |
int |
getColumns()
Gets the columns. |
boolean |
isCommitOnFocusLost()
Checks if is commit on focus lost. |
void |
setColumns(int columns)
Sets the columns. |
void |
setCommitOnFocusLost(boolean commitOnFocusLost)
Sets the commit on focus lost. |
void |
setDisplayState(Field<V> field,
JComponent component,
DisplayState displayState)
Sets the display state of the field |
| Methods inherited from class net.sf.doolin.gui.field.AbstractPropertyFieldDescriptor |
|---|
getAdapter, getProperty, getPropertyPath, setAdapter, setProperty, setPropertyPath, subscribe, subscribe |
| Methods inherited from class net.sf.doolin.gui.field.AbstractFieldDescriptor |
|---|
getActionFactory, getConstraint, getDisplayStateHandler, getIconService, getName, getStyle, getTransferHandler, onInit, onShow, setActionFactory, setConstraint, setDisplayStateHandler, setIconService, setName, setStyle, setTransferHandler |
| Methods inherited from class net.sf.doolin.bus.bean.Bean |
|---|
getBeanNotificationSupport, getParentBean, notify, setParentBean |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractFieldText()
| Method Detail |
|---|
public Field<V> createField(GUIView<V> view)
view - the view
protected abstract J createTextComponent()
protected JComponent decorateComponent(J text)
text - Text component
public int getColumns()
public boolean isCommitOnFocusLost()
public void setColumns(int columns)
columns - the new columnspublic void setCommitOnFocusLost(boolean commitOnFocusLost)
commitOnFocusLost - the new commit on focus lost
public void setDisplayState(Field<V> field,
JComponent component,
DisplayState displayState)
setDisplayState in interface FieldDescriptor<V>setDisplayState in class AbstractFieldDescriptor<V>field - Fieldcomponent - Decorated field component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||