|
||||||||||
| 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.list.AbstractListPropertyFieldDescriptor<V,E>
net.sf.doolin.gui.field.list.FieldRadioGroup<V,E>
V - Type of object for the viewE - Type of object in the item listpublic class FieldRadioGroup<V,E>
Field descriptor for a group of radio buttons.
| Field Summary | |
|---|---|
static String |
BUTTON_GROUP
Field property for the button group |
| Constructor Summary | |
|---|---|
FieldRadioGroup()
|
|
| Method Summary | |
|---|---|
protected JRadioButton |
buildRadio(GUIView<V> view,
SimpleField<V> field,
E item)
Creates a radio button for a given value. |
protected void |
buildRadioList(GUIView<V> view,
SimpleField<V> field,
JPanel container)
Creates the radio button list |
Field<V> |
createField(GUIView<V> view)
Creates a field. |
int |
getOrientation()
|
String |
getSpace()
Gets the layout space between the buttons. |
void |
setDisplayState(Field<V> field,
JComponent component,
DisplayState displayState)
Sets the display state of the field |
void |
setOrientation(int orientation)
Sets the orientation of the buttons in the group. |
void |
setSpace(String space)
Sets the layout space between the buttons. |
| Methods inherited from class net.sf.doolin.gui.field.list.AbstractListPropertyFieldDescriptor |
|---|
createListWithNull, getActualCellRenderer, getInitialListValueModel, getItemListFactory, getLabelInfoProvider, getListModel, getRenderer, isItemListAddNull, setItemListAddNull, setItemListFactory, setLabelInfoProvider, setRenderer |
| 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 |
| Field Detail |
|---|
public static final String BUTTON_GROUP
PropertyContainer.getProperty(Object),
Constant Field Values| Constructor Detail |
|---|
public FieldRadioGroup()
| Method Detail |
|---|
protected JRadioButton buildRadio(GUIView<V> view,
SimpleField<V> field,
E item)
view - Hosting viewfield - Field for the groupitem - Item to associate the radio button with
protected void buildRadioList(GUIView<V> view,
SimpleField<V> field,
JPanel container)
view - Hosting viewfield - Field for the groupcontainer - Panel that must contain the radio buttonspublic Field<V> createField(GUIView<V> view)
view - Owning view
public int getOrientation()
public String getSpace()
public void setDisplayState(Field<V> field,
JComponent component,
DisplayState displayState)
FieldDescriptor
setDisplayState in interface FieldDescriptor<V>setDisplayState in class AbstractFieldDescriptor<V>field - Fieldcomponent - Decorated field componentpublic void setOrientation(int orientation)
SwingConstants.VERTICAL (the default) or
SwingConstants.HORIZONTAL.
public void setSpace(String space)
space - Layout space
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||