|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectFilteredEditorDialog
net.refractions.udig.style.sld.editor.StyleEditorDialog
public class StyleEditorDialog
Preference dialog for the workbench including the ability to load/save preferences.
| Field Summary | |
|---|---|
static int |
APPLY_ID
|
static int |
CANCEL_ID
|
static int |
DEFAULTS_ID
|
static int |
EXPORT_ID
|
static int |
IMPORT_ID
|
static int |
OK_ID
|
static int |
REVERT_ID
|
| Constructor Summary | |
|---|---|
protected |
StyleEditorDialog(Shell parentShell,
EditorPageManager manager)
Creates a new dialog under the control of the given manager manager. |
| Method Summary | |
|---|---|
protected Control |
createButtonBar(Composite parent)
|
static StyleEditorDialog |
createDialogOn(Shell shell,
java.lang.String pageId,
Layer selectedLayer,
EditorPageManager manager)
Creates an style editor dialog open to a particular page. |
IAction |
getApplyAction()
Get the action used to apply changes. |
ProgressListener |
getProgressListener()
|
StyleLayer |
getSelectedLayer()
StyleLayer wraps around the origional layer and has a copy of the StyleBlackboard for you to work on. |
StyledLayerDescriptor |
getSLD()
Retrieve the root StyleLayerDescriptor for editing. |
Style |
getStyle()
Retrieve the Style being worked on. |
void |
setExitButtonState()
Used to enable the Apply button. |
void |
setSelectedLayer(Layer layer)
|
protected void |
setShellStyle(int newShellStyle)
|
void |
setStyle(Style newStyle)
Replace the style being worked on, this can be called by a StylePage that is *completely* generating its own thing. |
boolean |
showPage(IEditorNode node)
|
void |
updateButtons()
Adjusts the enable state of the OK button to reflect the state of the currently active page in this container. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.refractions.udig.style.sld.IEditorPageContainer |
|---|
updateMessage, updateTitle |
| Field Detail |
|---|
public static final int IMPORT_ID
public static final int EXPORT_ID
public static final int APPLY_ID
public static final int REVERT_ID
public static final int DEFAULTS_ID
public static final int OK_ID
public static final int CANCEL_ID
| Constructor Detail |
|---|
protected StyleEditorDialog(Shell parentShell,
EditorPageManager manager)
parentShell - the parent shellmanager - the preference manager| Method Detail |
|---|
public ProgressListener getProgressListener()
public static final StyleEditorDialog createDialogOn(Shell shell,
java.lang.String pageId,
Layer selectedLayer,
EditorPageManager manager)
open(). The call to open() will not return
until the dialog closes, so this is the last chance to manipulate the dialog.
shell - The Shell to parent the dialog off of if it is not already created. May be
null in which case the active workbench window will be used if
available.pageId - The identifier of the page to open; may be null.
protected void setShellStyle(int newShellStyle)
public void setSelectedLayer(Layer layer)
public StyleLayer getSelectedLayer()
IStyleEditorPageContainerStyleLayer has apply and revert actions for interacting with the actual Map.
getSelectedLayer in interface IStyleEditorPageContainerpublic Style getStyle()
IStyleEditorPageContainerIn general a StylePage will modify the style in place.
getStyle in interface IStyleEditorPageContainerpublic void setStyle(Style newStyle)
IStyleEditorPageContainer
setStyle in interface IStyleEditorPageContainerpublic StyledLayerDescriptor getSLD()
IStyleEditorPageContainer
getSLD in interface IStyleEditorPageContainerpublic boolean showPage(IEditorNode node)
protected Control createButtonBar(Composite parent)
public void updateButtons()
IEditorPageContainerThis method is called by the container itself when its preference page changes and may be called by the page at other times to force a button state update.
updateButtons in interface IEditorPageContainerpublic void setExitButtonState()
setExitButtonState in interface IStyleEditorPageContainerpublic IAction getApplyAction()
getApplyAction in interface IStyleEditorPageContainer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||