|
|||||||||
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
Prefence dialog for the workbench including the ability to load/save preferences.
Field Summary | |
---|---|
static int |
APPLY_ID
|
static int |
CLOSE_ID
|
static int |
EXPORT_ID
|
static int |
IMPORT_ID
|
static int |
REVERT_ID
|
Constructor Summary | |
---|---|
StyleEditorDialog(Shell parentShell,
EditorPageManager manager)
Creates a new dialog under the control of the given manager manager. |
Method Summary | |
---|---|
void |
addListener(GTListener listener)
|
boolean |
close()
|
protected Button |
createButton(Composite parent,
int id,
java.lang.String label,
boolean defaultButton)
|
protected Control |
createButtonBar(Composite parent)
|
protected void |
createButtonsForButtonBar(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()
Action for applying the current changes. |
ProgressListener |
getProgressListener()
|
StyleLayer |
getSelectedLayer()
|
StyledLayerDescriptor |
getSLD()
|
Style |
getStyle()
|
void |
removeListener(GTListener listener)
|
void |
setCancelMode(boolean showCancel)
|
void |
setExitButtonState(boolean dirty)
|
void |
setSelectedLayer(Layer layer)
|
void |
setStyle(Style newStyle)
|
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 CLOSE_ID
Constructor Detail |
---|
public StyleEditorDialog(Shell parentShell, EditorPageManager manager)
parentShell
- the parent shellmanager
- the preference managerMethod Detail |
---|
public ProgressListener getProgressListener()
public void setCancelMode(boolean showCancel)
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
.
public boolean close()
public void setSelectedLayer(Layer layer)
public StyleLayer getSelectedLayer()
getSelectedLayer
in interface IStyleEditorPageContainer
public Style getStyle()
getStyle
in interface IStyleEditorPageContainer
public void setStyle(Style newStyle)
setStyle
in interface IStyleEditorPageContainer
public StyledLayerDescriptor getSLD()
getSLD
in interface IStyleEditorPageContainer
public boolean showPage(IEditorNode node)
protected Button createButton(Composite parent, int id, java.lang.String label, boolean defaultButton)
protected Control createButtonBar(Composite parent)
protected void createButtonsForButtonBar(Composite parent)
public void updateButtons()
IEditorPageContainer
This 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 IEditorPageContainer
public void setExitButtonState(boolean dirty)
setExitButtonState
in interface IStyleEditorPageContainer
public IAction getApplyAction()
IStyleEditorPageContainer
getApplyAction
in interface IStyleEditorPageContainer
public void addListener(GTListener listener)
public void removeListener(GTListener listener)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |