public final class OptionsDisplayer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ADVANCED
Registration name of Advanced category (aka Miscellaneous).
|
Modifier and Type | Method and Description |
---|---|
static OptionsDisplayer |
getDefault()
Get the default
OptionsDisplayer |
boolean |
open()
Open the options dialog with no guarantee which category is pre-selected.
|
boolean |
open(String path)
Open the options dialog with some panel preselected.
|
public static final String ADVANCED
public static OptionsDisplayer getDefault()
OptionsDisplayer
public boolean open()
public boolean open(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.Built on November 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.