|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectDialogPage
net.refractions.udig.style.sld.editor.StyleEditorPage
net.refractions.udig.style.sld.editor.StyleXMLPage
public class StyleXMLPage
This is the "advanced" page that shows the raw SLD file.
| Field Summary |
|---|
| Fields inherited from class net.refractions.udig.style.sld.editor.StyleEditorPage |
|---|
XPID |
| Constructor Summary | |
|---|---|
StyleXMLPage()
|
|
| Method Summary | |
|---|---|
void |
createPageContent(Composite parent)
Creates the page content. |
void |
dispose()
|
java.lang.String |
getErrorMessage()
Returns an error message, if applicable. |
java.lang.String |
getLabel()
|
void |
gotFocus()
Each subclass must implement this method which is called each time the page obtains focus. |
boolean |
isValid()
Determines if the page contents are valid input. |
boolean |
okToLeave()
Checks whether it is alright to leave this page. |
boolean |
performApply()
Executed immediately before an apply action. |
boolean |
performCancel()
Invoked when the user clicks cancel. |
boolean |
performOk()
Notifies that the OK button of this page's container has been pressed. |
void |
refresh()
|
void |
styleChanged(java.lang.Object source)
Each subclass must implement this method which is called each time the style object is modified on ANY page. |
void |
validateSLD()
|
| Methods inherited from class net.refractions.udig.style.sld.editor.StyleEditorPage |
|---|
applyData, computeSize, createControl, createDescriptionLabel, doComputeSize, getContainer, getEditorPage, getSelectedLayer, getSLD, getStyle, init, setContainer, setSize, setStyle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StyleXMLPage()
| Method Detail |
|---|
public void createPageContent(Composite parent)
StyleEditorPage
createPageContent in class StyleEditorPageparent - composite to put the page content inpublic boolean performCancel()
StyleEditorPage
performCancel in interface IEditorPageperformCancel in class StyleEditorPagefalse to abort the container's cancel
procedure and true to allow the cancel to happenpublic java.lang.String getErrorMessage()
StyleEditorPage
getErrorMessage in class StyleEditorPagepublic void validateSLD()
public boolean isValid()
StyleEditorPage
isValid in interface IEditorPageisValid in class StyleEditorPagetrue if the page is in a valid state,
and false if invalidpublic boolean okToLeave()
IEditorPage
false to abort page flipping and the
have the current page remain visible, and true
to allow the page flippublic boolean performOk()
IEditorPage
false to abort the container's OK
processing and true to allow the OK to happenpublic void gotFocus()
StyleEditorPageYou can use this method to check out the style and update the state of any widgets prior to display. Implementations Hint: The easiest thing to do is call IEditorPage.refresh() - which you have filled in to update the state of the widgets. You can optimize if you like by checking existing widget state and only updating the controls as needed.
gotFocus in class StyleEditorPagepublic void styleChanged(java.lang.Object source)
StyleEditorPageA page implementation will usually just update its contents from scratch; as an optimization you can look at the provided source object and see if you can avoid updating everything.
styleChanged in class StyleEditorPagesource - Source of change (often a FeatureTypeStyle or Rule)public void refresh()
public void dispose()
dispose in class StyleEditorPagepublic java.lang.String getLabel()
getLabel in class StyleEditorPagepublic boolean performApply()
IEditorPage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||