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

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

public class StyleThemePage
extends StyleEditorPage


Field Summary
static int BUTTON_COLORBLIND
           
static int BUTTON_CRT
           
static int BUTTON_LCD
           
static int BUTTON_PHOTOCOPY
           
static int BUTTON_PRINT
           
static int BUTTON_PROJECTOR
           
static int BUTTON_REMOVE
           
static int COMBO_ATTRIBUTES
           
static int COMBO_BREAKTYPE
           
static int COMBO_CLASSES
           
static int COMBO_ELSE
           
static int COMBO_NORMALIZE
           
static int COMBO_OPACITY
           
static int COMBO_PALETTES
           
static int COMPOSITE_BOTTOM
           
static int COMPOSITE_BOTTOM_LEFT
           
static int COMPOSITE_BOTTOM_RIGHT
           
static int COMPOSITE_MIDDLE
           
static int COMPOSITE_PARENT
           
static int COMPOSITE_TOP
           
static int LABEL_ICON_COLORBLIND
           
static int LABEL_ICON_CRT
           
static int LABEL_ICON_LCD
           
static int LABEL_ICON_PHOTOCOPY
           
static int LABEL_ICON_PRINT
           
static int LABEL_ICON_PROJECTOR
           
static int LABEL_PALETTES
           
static int LABEL_SEPARATOR_BOTTOM
           
static int LABEL_STATUSBAR
           
 
Fields inherited from class net.refractions.udig.style.sld.editor.StyleEditorPage
XPID
 
Constructor Summary
StyleThemePage()
           
 
Method Summary
 void createPageContent(Composite parent)
          Creates the page content.
 void dispose()
           
 ColorBrewer getBrewer()
           
 Button getButton(int widgetID)
           
 Combo getCombo(int widgetID)
           
 Composite getComposite(int widgetID)
           
 java.lang.Object getControl(int widgetID)
           
 java.lang.String getErrorMessage()
          Returns an error message, if applicable.
 java.lang.String getLabel()
           
 Label getLabel(int widgetID)
           
 GridData getLayoutData(int widgetID)
           
 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 setStatusText(java.lang.String text)
           
 void styleChanged(GTEvent arg)
          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, 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
 

Field Detail

COMBO_ATTRIBUTES

public static final int COMBO_ATTRIBUTES
See Also:
Constant Field Values

COMBO_CLASSES

public static final int COMBO_CLASSES
See Also:
Constant Field Values

COMBO_BREAKTYPE

public static final int COMBO_BREAKTYPE
See Also:
Constant Field Values

COMBO_NORMALIZE

public static final int COMBO_NORMALIZE
See Also:
Constant Field Values

COMBO_ELSE

public static final int COMBO_ELSE
See Also:
Constant Field Values

COMBO_PALETTES

public static final int COMBO_PALETTES
See Also:
Constant Field Values

COMBO_OPACITY

public static final int COMBO_OPACITY
See Also:
Constant Field Values

LABEL_PALETTES

public static final int LABEL_PALETTES
See Also:
Constant Field Values

LABEL_SEPARATOR_BOTTOM

public static final int LABEL_SEPARATOR_BOTTOM
See Also:
Constant Field Values

LABEL_STATUSBAR

public static final int LABEL_STATUSBAR
See Also:
Constant Field Values

LABEL_ICON_COLORBLIND

public static final int LABEL_ICON_COLORBLIND
See Also:
Constant Field Values

LABEL_ICON_PHOTOCOPY

public static final int LABEL_ICON_PHOTOCOPY
See Also:
Constant Field Values

LABEL_ICON_PROJECTOR

public static final int LABEL_ICON_PROJECTOR
See Also:
Constant Field Values

LABEL_ICON_LCD

public static final int LABEL_ICON_LCD
See Also:
Constant Field Values

LABEL_ICON_CRT

public static final int LABEL_ICON_CRT
See Also:
Constant Field Values

LABEL_ICON_PRINT

public static final int LABEL_ICON_PRINT
See Also:
Constant Field Values

BUTTON_COLORBLIND

public static final int BUTTON_COLORBLIND
See Also:
Constant Field Values

BUTTON_PHOTOCOPY

public static final int BUTTON_PHOTOCOPY
See Also:
Constant Field Values

BUTTON_PROJECTOR

public static final int BUTTON_PROJECTOR
See Also:
Constant Field Values

BUTTON_LCD

public static final int BUTTON_LCD
See Also:
Constant Field Values

BUTTON_CRT

public static final int BUTTON_CRT
See Also:
Constant Field Values

BUTTON_PRINT

public static final int BUTTON_PRINT
See Also:
Constant Field Values

BUTTON_REMOVE

public static final int BUTTON_REMOVE
See Also:
Constant Field Values

COMPOSITE_PARENT

public static final int COMPOSITE_PARENT
See Also:
Constant Field Values

COMPOSITE_TOP

public static final int COMPOSITE_TOP
See Also:
Constant Field Values

COMPOSITE_MIDDLE

public static final int COMPOSITE_MIDDLE
See Also:
Constant Field Values

COMPOSITE_BOTTOM

public static final int COMPOSITE_BOTTOM
See Also:
Constant Field Values

COMPOSITE_BOTTOM_LEFT

public static final int COMPOSITE_BOTTOM_LEFT
See Also:
Constant Field Values

COMPOSITE_BOTTOM_RIGHT

public static final int COMPOSITE_BOTTOM_RIGHT
See Also:
Constant Field Values
Constructor Detail

StyleThemePage

public StyleThemePage()
Method Detail

getButton

public Button getButton(int widgetID)

getCombo

public Combo getCombo(int widgetID)

getComposite

public Composite getComposite(int widgetID)

getLabel

public Label getLabel(int widgetID)

getLayoutData

public GridData getLayoutData(int widgetID)

getControl

public java.lang.Object getControl(int widgetID)

isValid

public boolean isValid()
Description copied from class: StyleEditorPage
Determines if the page contents are valid input. Subclasses should override if invalid input is possible.

Specified by:
isValid in interface IEditorPage
Overrides:
isValid in class StyleEditorPage
Returns:
true if the page is in a valid state, and false if invalid

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

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

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

dispose

public void dispose()
Overrides:
dispose in class StyleEditorPage

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

getBrewer

public ColorBrewer getBrewer()

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

setStatusText

public void setStatusText(java.lang.String text)

getLabel

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

styleChanged

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

Specified by:
styleChanged 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.

Specified by:
gotFocus in class StyleEditorPage

performApply

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


refresh

public void refresh()