|
||||||||||
| 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.FieldButton<V>
V - Type of object for the viewpublic class FieldButton<V>
JButton field descriptor.
| Constructor Summary | |
|---|---|
FieldButton()
|
|
| Method Summary | |
|---|---|
Field<V> |
createField(GUIView<V> view)
Creates the field. |
GUIAction |
getAction()
Gets the action. |
protected IconSize |
getActualIconSize(GUIView<V> view)
|
DisplayStateHandler |
getDisplayStateHandler()
Uses a conjunction between the action's handler and the button's handler. |
IconSize |
getIconSize()
|
String |
getTextExpression()
Returns the expression for an alternative text |
boolean |
isDefaultButton()
Checks if is default button. |
void |
onShow(Field<V> field)
Does nothing. |
void |
setAction(GUIAction action)
Associated action to execute |
void |
setDefaultButton(boolean defaultButton)
Sets to true if this is the default button. |
void |
setIconSize(IconSize iconSize)
|
void |
setTextExpression(String textExpression)
Sets the the expression for an alternative text |
| Methods inherited from class net.sf.doolin.gui.field.AbstractFieldDescriptor |
|---|
getActionFactory, getConstraint, getIconService, getName, getStyle, getTransferHandler, onInit, setActionFactory, setConstraint, setDisplayState, 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 FieldButton()
| Method Detail |
|---|
public Field<V> createField(GUIView<V> view)
view - the view
ActionFactory.createAction(ActionContext,
GUIAction, IconSize)public GUIAction getAction()
protected IconSize getActualIconSize(GUIView<V> view)
public DisplayStateHandler getDisplayStateHandler()
getDisplayStateHandler in interface FieldDescriptor<V>getDisplayStateHandler in class AbstractFieldDescriptor<V>AndDisplayStateHandlerpublic IconSize getIconSize()
public String getTextExpression()
public boolean isDefaultButton()
public void onShow(Field<V> field)
AbstractFieldDescriptor
onShow in interface FieldDescriptor<V>onShow in class AbstractFieldDescriptor<V>field - Field that is shownpublic void setAction(GUIAction action)
action - the new actionpublic void setDefaultButton(boolean defaultButton)
true if this is the default button.
defaultButton - true if this is the default buttonpublic void setIconSize(IconSize iconSize)
public void setTextExpression(String textExpression)
textExpression - Expression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||