org.eclipse.emf.ecoretools.tabbedproperties.sections
Class AbstractColorPropertySection

java.lang.Object
  extended by org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
      extended by org.eclipse.emf.ecoretools.tabbedproperties.sections.AbstractTabbedPropertySection
          extended by org.eclipse.emf.ecoretools.tabbedproperties.sections.AbstractColorPropertySection
All Implemented Interfaces:
org.eclipse.ui.views.properties.tabbed.ISection

public abstract class AbstractColorPropertySection
extends AbstractTabbedPropertySection

An abstract Color section used to select a Color. Creation 29 sept. 06


Field Summary
 
Fields inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
STANDARD_LABEL_WIDTH
 
Constructor Summary
AbstractColorPropertySection()
           
 
Method Summary
protected  void createWidgets(org.eclipse.swt.widgets.Composite composite)
          Section widgets should be created inside this method.
protected abstract  org.eclipse.swt.graphics.RGB getRGBValue()
          Get the new RGB value of the color feature for the section.
protected  void handleColorChanged()
          Called when the selected color changes
protected  void hookListeners()
          Widgets created at AbstractTabbedPropertySection.createWidgets(Composite) may listen platform events.
 void refresh()
           
protected  void setSectionData(org.eclipse.swt.widgets.Composite composite)
          This method should be implemented to set layout data to the widgets created at AbstractTabbedPropertySection.createWidgets(Composite).
 
Methods inherited from class org.eclipse.emf.ecoretools.tabbedproperties.sections.AbstractTabbedPropertySection
aboutToBeHidden, aboutToBeShown, addListener, clearDecorators, createCommand, createControls, getActivePage, getEditingDomain, getEObject, getEObjectList, getFeature, getLabelText, getMainComposite, getMessageManager, getModelListener, getSectionComposite, getStandardLabelWidth, getStatusLineManager, handleModelChanged, isReadOnly, makeContributions, removeListener, setDecorator, setErrorDecorator, setErrorMessage, setInfoDecorator, setInput, setMessage, setWarningDecorator
 
Methods inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
dispose, getMinimumHeight, getPart, getSelection, getWidgetFactory, shouldUseExtraSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractColorPropertySection

public AbstractColorPropertySection()
Method Detail

createWidgets

protected void createWidgets(org.eclipse.swt.widgets.Composite composite)
Description copied from class: AbstractTabbedPropertySection
Section widgets should be created inside this method. To set the layout data please implement the AbstractTabbedPropertySection.setSectionData(Composite) If widgets has listeners implement the AbstractTabbedPropertySection.hookListeners().

Overrides:
createWidgets in class AbstractTabbedPropertySection
Parameters:
composite - the parent Composite
See Also:
AbstractTabbedPropertySection.createWidgets(org.eclipse.swt.widgets.Composite)

setSectionData

protected void setSectionData(org.eclipse.swt.widgets.Composite composite)
Description copied from class: AbstractTabbedPropertySection
This method should be implemented to set layout data to the widgets created at AbstractTabbedPropertySection.createWidgets(Composite). This improves visibility

Overrides:
setSectionData in class AbstractTabbedPropertySection
Parameters:
composite - Sometimes widgets will be set formDatas and position will depend on parent composite.
See Also:
AbstractTabbedPropertySection.setSectionData(org.eclipse.swt.widgets.Composite)

hookListeners

protected void hookListeners()
Description copied from class: AbstractTabbedPropertySection
Widgets created at AbstractTabbedPropertySection.createWidgets(Composite) may listen platform events. Set them here in order to improve visibility

Overrides:
hookListeners in class AbstractTabbedPropertySection
See Also:
AbstractTabbedPropertySection.hookListeners()

handleColorChanged

protected void handleColorChanged()
Called when the selected color changes


refresh

public void refresh()
Specified by:
refresh in interface org.eclipse.ui.views.properties.tabbed.ISection
Overrides:
refresh in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
See Also:
AbstractPropertySection.refresh()

getRGBValue

protected abstract org.eclipse.swt.graphics.RGB getRGBValue()
Get the new RGB value of the color feature for the section.

Returns:
the RGB value of the feature.

Copyright 2007 Anyware Technologies.
All Rights Reserved.