List of all members.
Detailed Description
Builds an option group.
- Attributes
-
- Contents
The different possibilities as String.
- Result
A component containing a JRadioButton for each possibility.
- Actions
- "validate"
- Author:
- kma
Constructor & Destructor Documentation
Member Function Documentation
void metadone.client.grasyla2.swing.JOptionGroupEngine.disposeInternal |
( |
| ) |
[protected] |
Component<? extends JComponent> metadone.client.grasyla2.swing.JOptionGroupEngine.evaluateComponent |
( |
BootstrapGrasyla |
grasyla | ) |
throws BadPreCondition [protected] |
void metadone.client.grasyla2.swing.JOptionGroupEngine.notifyChildChanged |
( |
Engine |
child, |
|
|
ChildComponent |
comp |
|
) |
| [protected] |
Component<? extends JComponent> metadone.client.grasyla2.swing.JOptionGroupEngine.rebuild |
( |
| ) |
throws BadPreCondition [private] |
void metadone.client.grasyla2.swing.JOptionGroupEngine.reselect |
( |
String |
value | ) |
[protected] |
Member Data Documentation
Initial value: new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
if (isBuilding() || e == null) {
return;
} else {
final String value = e.getActionCommand();
final UserValueChangeEvent<?> event = new UserValueChangeEvent<String>(JOptionGroupEngine.this, e, value, "validate");
event.trigger(true);
for (final GrasylaEngine ch : getChildren()) {
final ChildComponent cc = getChildComponent(ch);
if (cc != null && "selected".equals(cc.getAttribute())) {
building(true);
try {
final String selected = cc.getComponent(String.class).reduceComponent();
reselect(selected);
} catch (final IrreductibleException ex) {
logger.error("Failed to reduce the build component for selected", ex);
} finally {
building(false);
}
break;
}
}
}
}
}
The documentation for this class was generated from the following file: