de.cau.cs.kieler.sim.kiem.config.preferences
Class SchedulePreferencePage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.preference.PreferencePage
          extended by de.cau.cs.kieler.sim.kiem.config.preferences.SchedulePreferencePage
All Implemented Interfaces:
IKiemConfigEventListener, EventListener, IDialogPage, IMessageProvider, IPreferencePage, IBaseLabelProvider, ILabelProvider, FocusListener, SelectionListener, org.eclipse.swt.internal.SWTEventListener, IWorkbenchPreferencePage

public class SchedulePreferencePage
extends PreferencePage
implements IWorkbenchPreferencePage, ILabelProvider, IKiemConfigEventListener, FocusListener, SelectionListener

Preference page for the scheduling preferences in KIEM.

Modified version of the LayoutPreferencePage in de.cau.cs.kieler.kiml.ui by msp.

Rating proposed yellow
(2010-01-27)

Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
SchedulePreferencePage()
          Creates the schedule preference page.
 
Method Summary
 void addListener(ILabelProviderListener listener)
          
protected  Control createContents(Composite parentComponent)
          
 void eventDispatched(KiemConfigEvent event)
          Act on an event dispatched by the manager.
 void focusGained(FocusEvent e)
          
 void focusLost(FocusEvent e)
          
 Image getImage(Object element)
          
 String getText(Object element)
          
 void init(IWorkbench workbench)
          
 boolean isLabelProperty(Object element, String property)
          
 void performApply()
          
protected  void performDefaults()
          
 boolean performOk()
          
 void removeListener(ILabelProviderListener listener)
          
 void widgetDefaultSelected(SelectionEvent e)
          
 void widgetSelected(SelectionEvent e)
          
 
Methods inherited from class org.eclipse.jface.preference.PreferencePage
applyData, applyDialogFont, computeSize, contributeButtons, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, okToLeave, performCancel, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.preference.IPreferencePage
computeSize, isValid, okToLeave, performCancel, setContainer, setSize
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible
 
Methods inherited from interface org.eclipse.jface.viewers.IBaseLabelProvider
dispose
 

Constructor Detail

SchedulePreferencePage

public SchedulePreferencePage()
Creates the schedule preference page.

Method Detail

createContents

protected Control createContents(Composite parentComponent)

Specified by:
createContents in class PreferencePage

init

public void init(IWorkbench workbench)

Specified by:
init in interface IWorkbenchPreferencePage

performDefaults

protected void performDefaults()

Overrides:
performDefaults in class PreferencePage

performOk

public boolean performOk()

Specified by:
performOk in interface IPreferencePage
Overrides:
performOk in class PreferencePage

performApply

public void performApply()

Overrides:
performApply in class PreferencePage

focusGained

public void focusGained(FocusEvent e)

Specified by:
focusGained in interface FocusListener

focusLost

public void focusLost(FocusEvent e)

Specified by:
focusLost in interface FocusListener

widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent e)

Specified by:
widgetDefaultSelected in interface SelectionListener

widgetSelected

public void widgetSelected(SelectionEvent e)

Specified by:
widgetSelected in interface SelectionListener

getImage

public Image getImage(Object element)

Specified by:
getImage in interface ILabelProvider

getText

public String getText(Object element)

Specified by:
getText in interface ILabelProvider

addListener

public void addListener(ILabelProviderListener listener)

Specified by:
addListener in interface IBaseLabelProvider

isLabelProperty

public boolean isLabelProperty(Object element,
                               String property)

Specified by:
isLabelProperty in interface IBaseLabelProvider

removeListener

public void removeListener(ILabelProviderListener listener)

Specified by:
removeListener in interface IBaseLabelProvider

eventDispatched

public void eventDispatched(KiemConfigEvent event)
Act on an event dispatched by the manager.

Specified by:
eventDispatched in interface IKiemConfigEventListener
Parameters:
event - the dispatched event.