Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.style.dialog
Class FeatureStyleDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by org.eclipse.jface.dialogs.TrayDialog
              extended by eu.esdihumboldt.hale.ui.util.dialog.MultiPageDialog<FeatureStylePage>
                  extended by eu.esdihumboldt.hale.ui.style.dialog.FeatureStyleDialog
All Implemented Interfaces:
org.eclipse.jface.dialogs.IPageChangeProvider, org.eclipse.jface.window.IShellProvider

public class FeatureStyleDialog
extends MultiPageDialog<FeatureStylePage>

Dialog for editing feature type styles.

Author:
Simon Templer
Partner:
01 / Fraunhofer Institute for Computer Graphics Research

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
FeatureStyleDialog(TypeDefinition type, DataSet dataSet)
          Creates a dialog for editing a feature type style
 
Method Summary
protected  boolean allowPageChange(FeatureStylePage oldPage, FeatureStylePage newPage)
          Called before the page changes
protected  void applyPressed()
          Called when the apply button was pressed
protected  void buttonPressed(int buttonId)
           
protected  void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
           
protected  void createPages()
          Create the dialog pages and add them using the MultiPageDialog.addPage(IDialogPage) method
 DataSet getDataSet()
          Get the type data set.
 org.geotools.styling.Style getStyle()
          Get the style
 TypeDefinition getType()
           
protected  void okPressed()
           
protected  void onPageChange(FeatureStylePage oldPage, FeatureStylePage newPage)
          Called after the page has changed
 void setStyle(org.geotools.styling.Style style)
          Set the feature type style
 
Methods inherited from class eu.esdihumboldt.hale.ui.util.dialog.MultiPageDialog
addPage, addPageChangedListener, configureShell, createContents, firePageChange, getCurrentPage, getImage, getInitialSize, getSelectedPage, getTitle, removePageChangedListener, setImage, setTitle
 
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog
close, closeTray, createButtonBar, createHelpControl, getLayout, getTray, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createDialogArea, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureStyleDialog

public FeatureStyleDialog(TypeDefinition type,
                          DataSet dataSet)
Creates a dialog for editing a feature type style

Parameters:
type - the type definition
dataSet - the type data set
Method Detail

getDataSet

public DataSet getDataSet()
Get the type data set.

Returns:
the data set

allowPageChange

protected boolean allowPageChange(FeatureStylePage oldPage,
                                  FeatureStylePage newPage)
Description copied from class: MultiPageDialog
Called before the page changes

Specified by:
allowPageChange in class MultiPageDialog<FeatureStylePage>
Parameters:
oldPage - the old page
newPage - the new page
Returns:
if the page change is allowed
See Also:
MultiPageDialog.allowPageChange(IDialogPage, IDialogPage)

createButtonsForButtonBar

protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
Overrides:
createButtonsForButtonBar in class org.eclipse.jface.dialogs.Dialog
See Also:
Dialog.createButtonsForButtonBar(org.eclipse.swt.widgets.Composite)

buttonPressed

protected void buttonPressed(int buttonId)
Overrides:
buttonPressed in class org.eclipse.jface.dialogs.Dialog
See Also:
Dialog.buttonPressed(int)

onPageChange

protected void onPageChange(FeatureStylePage oldPage,
                            FeatureStylePage newPage)
Description copied from class: MultiPageDialog
Called after the page has changed

Specified by:
onPageChange in class MultiPageDialog<FeatureStylePage>
Parameters:
oldPage - the old page
newPage - the new page
See Also:
MultiPageDialog.onPageChange(IDialogPage, IDialogPage)

okPressed

protected void okPressed()
Overrides:
okPressed in class org.eclipse.jface.dialogs.Dialog
See Also:
Dialog.okPressed()

applyPressed

protected void applyPressed()
Called when the apply button was pressed


getStyle

public org.geotools.styling.Style getStyle()
Get the style

Returns:
the style for the feature type

setStyle

public void setStyle(org.geotools.styling.Style style)
Set the feature type style

Parameters:
style - the style

createPages

protected void createPages()
Description copied from class: MultiPageDialog
Create the dialog pages and add them using the MultiPageDialog.addPage(IDialogPage) method

Specified by:
createPages in class MultiPageDialog<FeatureStylePage>
See Also:
MultiPageDialog.createPages()

getType

public TypeDefinition getType()
Returns:
the type

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d