eu.esdihumboldt.hale.ui.views.properties
Class AbstractSimpleSection<T extends org.eclipse.swt.widgets.Control>
java.lang.Object
org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
eu.esdihumboldt.hale.ui.views.properties.AbstractSingleObjectSection
eu.esdihumboldt.hale.ui.views.properties.AbstractSimpleSection<T>
- Type Parameters:
T
- the control type
- All Implemented Interfaces:
- org.eclipse.ui.views.properties.tabbed.ISection
- Direct Known Subclasses:
- AbstractSimpleTextSection
public abstract class AbstractSimpleSection<T extends org.eclipse.swt.widgets.Control>
- extends AbstractSingleObjectSection
Simple property section featuring one label and a control.
- Author:
- Simon Templer
Fields inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection |
STANDARD_LABEL_WIDTH |
Method Summary |
protected abstract T |
createControl(org.eclipse.swt.widgets.Composite parent,
org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory widgetFactory)
Create and configure the control that should display the property. |
void |
createControls(org.eclipse.swt.widgets.Composite parent,
org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage aTabbedPropertySheetPage)
|
protected abstract String |
getPropertyName()
Get the property name to display in the section label. |
protected void |
setInput(Object input)
Set the input object. |
protected abstract void |
updateControl(Object input,
T control)
Update the control with the new object. |
Methods inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection |
aboutToBeHidden, aboutToBeShown, dispose, getMinimumHeight, getPart, getSelection, getWidgetFactory, refresh, shouldUseExtraSpace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSimpleSection
public AbstractSimpleSection()
setInput
protected void setInput(Object input)
- Description copied from class:
AbstractSingleObjectSection
- Set the input object.
- Specified by:
setInput
in class AbstractSingleObjectSection
- Parameters:
input
- the object to display properties on- See Also:
AbstractSingleObjectSection.setInput(java.lang.Object)
updateControl
protected abstract void updateControl(Object input,
T control)
- Update the control with the new object.
- Parameters:
input
- the object to display properties oncontrol
- the control
createControl
protected abstract T createControl(org.eclipse.swt.widgets.Composite parent,
org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory widgetFactory)
- Create and configure the control that should display the property.
- Parameters:
parent
- the parent compositewidgetFactory
- the widget factory to use for creating the control
- Returns:
- the control
getPropertyName
protected abstract String getPropertyName()
- Get the property name to display in the section label.
- Returns:
- the name of the property displayed in the section
createControls
public void createControls(org.eclipse.swt.widgets.Composite parent,
org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage aTabbedPropertySheetPage)
- Specified by:
createControls
in interface org.eclipse.ui.views.properties.tabbed.ISection
- Overrides:
createControls
in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d