Package loci.plugins.prefs
Class OptionsDialog
java.lang.Object
loci.plugins.prefs.OptionsDialog
- Direct Known Subclasses:
ImporterDialog
Base class for options dialogs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final booleanFlag indicating whether to invoke workaround for AWT refresh bug.protected OptionsListOptions list associated with the dialog.static final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionOptionsDialog(OptionsList optionsList) Creates a new options dialog with the given associated options. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCheckbox(ij.gui.GenericDialog gd, String key) Adds a checkbox to the given dialog object corresponding to the boolean option identified by the specified key.protected voidAdds a choice to the given dialog object corresponding to the string option identified by the specified key.abstract intDisplays the options dialog, returning the status of the operation.protected voidsleep(long ms) Blocks the current thread for the specified number of milliseconds.
-
Field Details
-
STATUS_OK
public static final int STATUS_OK- See Also:
-
STATUS_CANCELED
public static final int STATUS_CANCELED- See Also:
-
STATUS_FINISHED
public static final int STATUS_FINISHED- See Also:
-
IS_GLITCHED
protected static final boolean IS_GLITCHEDFlag indicating whether to invoke workaround for AWT refresh bug. -
optionsList
Options list associated with the dialog.
-
-
Constructor Details
-
OptionsDialog
Creates a new options dialog with the given associated options.
-
-
Method Details
-
showDialog
public abstract int showDialog()Displays the options dialog, returning the status of the operation. -
addChoice
Adds a choice to the given dialog object corresponding to the string option identified by the specified key. -
addCheckbox
Adds a checkbox to the given dialog object corresponding to the boolean option identified by the specified key. -
sleep
protected void sleep(long ms) Blocks the current thread for the specified number of milliseconds.
-