|
jET |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.jet.PropertiesDialog.DialogControl
This class is a control entity within dialog box. This is because there are many components in dialog box and this makes easier to manage them.
Components are distinguished by names.
| Field Summary | |
javax.swing.JComponent |
control
Component stored in this dialog control. |
java.lang.String |
name
The name of component. |
| Constructor Summary | |
PropertiesDialog.DialogControl(java.lang.String name,
javax.swing.JComponent c)
Constructs a dialog control with given name and component. |
|
PropertiesDialog.DialogControl(java.lang.String name,
javax.swing.JComponent c,
boolean hasLabel)
Constructs a dialog control with given name, component and label. |
|
PropertiesDialog.DialogControl(java.lang.String name,
javax.swing.JComponent c,
boolean hasLabel,
boolean enabled)
Constructs a dialog control. |
|
| Method Summary | |
javax.swing.JLabel |
createLabel()
Extracts label associated with component. |
boolean |
getLabel()
Gets the information about label requesting for this dialog control. |
void |
setEnabled(boolean b)
This method stores in the component information at it is recomended to change enabled or disabled in future. |
void |
setLabel(boolean b)
Sets the information about label requesting. |
java.lang.String |
toString()
Returns text with the name of thid dialog control and class name of component. |
boolean |
wasEnabled()
Retrives information about component with |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public java.lang.String name
public javax.swing.JComponent control
| Constructor Detail |
public PropertiesDialog.DialogControl(java.lang.String name,
javax.swing.JComponent c)
name - Name of a control.c - A component.
public PropertiesDialog.DialogControl(java.lang.String name,
javax.swing.JComponent c,
boolean hasLabel)
name - Name of control.c - A component.hasLabel - If set label is enabled with this control.
public PropertiesDialog.DialogControl(java.lang.String name,
javax.swing.JComponent c,
boolean hasLabel,
boolean enabled)
name - Name of a dialog control.c - A component.hasLabel - If set the dialog control has label associated with
component.enabled - If unset the component won't be enabled or disabled in
future in the dialog.| Method Detail |
public void setEnabled(boolean b)
b - If true the component shouldn't be enabling or disabling in
future use.public boolean wasEnabled()
public void setLabel(boolean b)
b - If true, the component must have an associated label.public boolean getLabel()
true if control has an associated label.public javax.swing.JLabel createLabel()
public java.lang.String toString()
toString in class java.lang.Object
|
jET |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||