public final class OptionsDisplayer
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
ADVANCED |
Registration name of Advanced category (aka Miscellaneous).
|
static java.lang.String |
EDITOR |
Registration name of Editor category.
|
static java.lang.String |
FONTSANDCOLORS |
Registration name of FontsAndColors category (aka Fonts & Colors).
|
static java.lang.String |
GENERAL |
Registration name of General category.
|
static java.lang.String |
KEYMAPS |
Registration name of Keymaps category (aka Keymap).
|
| Modifier and Type | Method | Description |
|---|---|---|
static OptionsDisplayer |
getDefault() |
Get the default
OptionsDisplayer |
boolean |
open() |
Open the options dialog (in non-modal mode) with no guarantee which category is pre-selected.
|
boolean |
open(boolean isModal) |
Open the options dialog with no guarantee which category is pre-selected.
|
boolean |
open(java.lang.String path) |
Open the options dialog (in non-modal mode) with some panel preselected.
|
boolean |
open(java.lang.String path,
boolean isModal) |
Open the options dialog with some panel preselected.
|
public static final java.lang.String ADVANCED
public static final java.lang.String KEYMAPS
public static final java.lang.String FONTSANDCOLORS
public static final java.lang.String EDITOR
public static final java.lang.String GENERAL
public static OptionsDisplayer getDefault()
OptionsDisplayerpublic boolean open()
public boolean open(java.lang.String path)
OptionsPanelController.TopLevelRegistration.id().
To open a subpanel, pass its OptionsPanelController.SubRegistration.location() followed by /
followed by its OptionsPanelController.SubRegistration.id().
To open a container panel without specifying a particular subpanel, pass its OptionsPanelController.ContainerRegistration.id().
To avoid typos and keep track of dependencies it is recommended to define compile-time
constants for all these IDs, to be used both by the annotations and by calls to this method.path - slash-separated path of category and perhaps subcategories to be selectedOptionsPanelController
to handle such situation.public boolean open(boolean isModal)
isModal - true if the options window should be in modal mode, false otherwisepublic boolean open(java.lang.String path,
boolean isModal)
OptionsPanelController.TopLevelRegistration.id().
To open a subpanel, pass its OptionsPanelController.SubRegistration.location() followed by /
followed by its OptionsPanelController.SubRegistration.id().
To open a container panel without specifying a particular subpanel, pass its OptionsPanelController.ContainerRegistration.id().
To avoid typos and keep track of dependencies it is recommended to define compile-time
constants for all these IDs, to be used both by the annotations and by calls to this method.path - slash-separated path of category and perhaps subcategories to be selectedisModal - true if the options window should be in modal mode, false otherwiseOptionsPanelController
to handle such situation.Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.