net.refractions.udig.style.sld.editor
Class PointEditorPage

java.lang.Object
  extended by DialogPage
      extended by net.refractions.udig.style.sld.editor.StyleEditorPage
          extended by net.refractions.udig.style.sld.editor.PointEditorPage
All Implemented Interfaces:
IEditorPage, IStyleEditorPage

public class PointEditorPage
extends StyleEditorPage


Field Summary
 
Fields inherited from class net.refractions.udig.style.sld.editor.StyleEditorPage
XPID
 
Constructor Summary
PointEditorPage()
           
 
Method Summary
 void createPageContent(Composite parent)
          Creates the page content.
 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 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.
 
Methods inherited from class net.refractions.udig.style.sld.editor.StyleEditorPage
applyData, computeSize, createControl, createDescriptionLabel, dispose, doComputeSize, getContainer, getEditorPage, getSelectedLayer, getSLD, getStyle, init, isValid, setContainer, setSize, setStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointEditorPage

public PointEditorPage()
Method Detail

createPageContent

public void createPageContent(Composite parent)
Description copied from class: StyleEditorPage
Creates the page content. Subclasses must define this method and create their child controls here.

Specified by:
createPageContent in class StyleEditorPage
Parameters:
parent - composite to put the page content in

getErrorMessage

public java.lang.String getErrorMessage()
Description copied from class: StyleEditorPage
Returns an error message, if applicable. The dialog automagically calls this method and displays it with an error icon if it returns a non-null string. Subclasses should determine the state of their respective pages in this method and return null if everything is okay.

Specified by:
getErrorMessage in class StyleEditorPage

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in class StyleEditorPage

gotFocus

public void gotFocus()
Description copied from class: StyleEditorPage
Each subclass must implement this method which is called each time the page obtains focus.

You 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.

Specified by:
gotFocus in class StyleEditorPage

performCancel

public boolean performCancel()
Description copied from class: StyleEditorPage
Invoked when the user clicks cancel.

Specified by:
performCancel in interface IEditorPage
Specified by:
performCancel in class StyleEditorPage
Returns:
false to abort the container's cancel procedure and true to allow the cancel to happen

styleChanged

public void styleChanged(java.lang.Object source)
Description copied from class: StyleEditorPage
Each subclass must implement this method which is called each time the style object is modified on ANY page.

A 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.

Specified by:
styleChanged in class StyleEditorPage
Parameters:
source - Source of change (often a FeatureTypeStyle or Rule)

okToLeave

public boolean okToLeave()
Description copied from interface: IEditorPage
Checks whether it is alright to leave this page.

Returns:
false to abort page flipping and the have the current page remain visible, and true to allow the page flip

performApply

public boolean performApply()
Description copied from interface: IEditorPage
Executed immediately before an apply action.


performOk

public boolean performOk()
Description copied from interface: IEditorPage
Notifies that the OK button of this page's container has been pressed.

Returns:
false to abort the container's OK processing and true to allow the OK to happen

refresh

public void refresh()