All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----com.sgi.sysadm.ui.taskData.TaskDataBinder
|
+----com.sgi.sysadm.ui.taskData.AttributeAbstractButtonBinder
To use AttributeAbstractButtonBinder, the caller adds the buttons to be bound to a button group, and then creates an AttributeAbstractButtonBinder, and passes the attribute name and that AttributeAbstractButtonBinder to TaskData.addTaskDataBinder. Each button must be bound separately. For example:
JRadioButton roButton = new RRadioButton("Read Only");
JRadioButton rwButton = new RRadioButton("Read/Write");
ButtonGroup group = new ButtonGroup();
group.add(roButton);
group.add(rwButton);
_taskData.addTaskDataBinder(AbstractRhinoExampleTask.WRITABLE,
new AttributeAbstractButtonBinder(roButton,
new Attribute(AbstractRhinoExampleTask.WRITABLE, false)));
_taskData.addTaskDataBinder(AbstractRhinoExampleTask.WRITABLE,
new AttributeAbstractButtonBinder(rwButton,
new Attribute(AbstractRhinoExampleTask.WRITABLE, true)));
public AttributeAbstractButtonBinder(AbstractButton button,
Attribute attr)
public static void bind(TaskData taskData,
String name,
AbstractButton button,
Attribute attr)
taskData.addTaskDataBinder(name,
new AttributeAbstractButtonBinder(button, attr))
public void taskDataChanged(TaskDataEvent event)
public void stateChanged(ChangeEvent event)
All Packages Class Hierarchy This Package Previous Next Index