Modelers

org.topcased.modeler.editor.properties.sections
Class AbstractBooleanPropertySection

java.lang.Object
  extended by org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
      extended by org.topcased.modeler.editor.properties.sections.AbstractModelerPropertySection
          extended by org.topcased.modeler.editor.properties.sections.AbstractBooleanPropertySection
All Implemented Interfaces:
org.eclipse.ui.views.properties.tabbed.ISection

public abstract class AbstractBooleanPropertySection
extends AbstractModelerPropertySection

An abstract implementation of a section with a check button.


Field Summary
protected  org.eclipse.swt.widgets.Button checkButton
          The checkButton control for the section.
 
Fields inherited from class org.topcased.modeler.editor.properties.sections.AbstractModelerPropertySection
eObject, eObjectList, propertySheetPage, selectedEditPart
 
Fields inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
STANDARD_LABEL_WIDTH
 
Constructor Summary
AbstractBooleanPropertySection()
           
 
Method Summary
 void createControls(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage tabbedPropertySheetPage)
           
protected abstract  java.lang.String getCheckButtonText()
          Get the label for the button for the section.
protected abstract  EAttribute getFeature()
          Get the feature for the text field for the section.
protected abstract  boolean getFeatureValue()
          Get the new value of the feature for the text field for the section.
protected  void handleCheckButtonModified()
          Handle the checkbutton modified event.
 void refresh()
           
 
Methods inherited from class org.topcased.modeler.editor.properties.sections.AbstractModelerPropertySection
getChoices, getStandardLabelWidth, setInput
 
Methods inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
aboutToBeHidden, aboutToBeShown, dispose, getMinimumHeight, getPart, getSelection, getWidgetFactory, shouldUseExtraSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

checkButton

protected org.eclipse.swt.widgets.Button checkButton
The checkButton control for the section.

Constructor Detail

AbstractBooleanPropertySection

public AbstractBooleanPropertySection()
Method Detail

createControls

public void createControls(org.eclipse.swt.widgets.Composite parent,
                           org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage tabbedPropertySheetPage)
Specified by:
createControls in interface org.eclipse.ui.views.properties.tabbed.ISection
Overrides:
createControls in class AbstractModelerPropertySection
See Also:
AbstractModelerPropertySection.createControls(org.eclipse.swt.widgets.Composite, org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage)

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()

handleCheckButtonModified

protected void handleCheckButtonModified()
Handle the checkbutton modified event.


getFeature

protected abstract EAttribute getFeature()
Get the feature for the text field for the section.

Returns:
the feature for the text.

getFeatureValue

protected abstract boolean getFeatureValue()
Get the new value of the feature for the text field for the section.

Returns:
the boolean value of the feature.

getCheckButtonText

protected abstract java.lang.String getCheckButtonText()
Get the label for the button for the section.

Returns:
the label for the button.

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.