public static enum ExpertPrefsDlg.OptionWidgets extends java.lang.Enum<ExpertPrefsDlg.OptionWidgets>
OptionWidgets is essentially used to access the check boxes with a
meaningful name.| Enum Constant and Description |
|---|
DYNAMIC_DISCARD_LEVEL |
MAX_INPUT_RATE |
MAX_NUM_OF_LOGS |
MAX_OUTPUT_RATE |
TIME_FRAME |
| Modifier and Type | Field and Description |
|---|---|
javax.swing.JCheckBox |
enableCB
The check box for this option
|
| Modifier and Type | Method and Description |
|---|---|
static ExpertPrefsDlg.OptionWidgets |
fromCheckBox(javax.swing.JCheckBox cb)
Return the
OptionWidgets whose JCheckBox
is equal to the passed parameter. |
boolean |
isOptionEnabled() |
static ExpertPrefsDlg.OptionWidgets |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ExpertPrefsDlg.OptionWidgets[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExpertPrefsDlg.OptionWidgets MAX_NUM_OF_LOGS
public static final ExpertPrefsDlg.OptionWidgets TIME_FRAME
public static final ExpertPrefsDlg.OptionWidgets MAX_INPUT_RATE
public static final ExpertPrefsDlg.OptionWidgets MAX_OUTPUT_RATE
public static final ExpertPrefsDlg.OptionWidgets DYNAMIC_DISCARD_LEVEL
public final javax.swing.JCheckBox enableCB
The check box is used to enable, disable an option
public static ExpertPrefsDlg.OptionWidgets[] values()
for (ExpertPrefsDlg.OptionWidgets c : ExpertPrefsDlg.OptionWidgets.values()) System.out.println(c);
public static ExpertPrefsDlg.OptionWidgets valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isOptionEnabled()
true if this option is enabledpublic static ExpertPrefsDlg.OptionWidgets fromCheckBox(javax.swing.JCheckBox cb)
OptionWidgets whose JCheckBox
is equal to the passed parameter.
Otherwise throws an IllegalArgumentExceptioncb - The JCheckBox to get the option fromOptionWidgets whose JCheckBox
is equal to the passed parameter.
Otherwise throws an IllegalArgumentException