Class AbstractPTWidget
java.lang.Object
org.eclipse.nebula.widgets.opal.propertytable.AbstractPTWidget
- All Implemented Interfaces:
PTWidget
- Direct Known Subclasses:
PTWidgetTable
,PTWidgetTree
public abstract class AbstractPTWidget extends java.lang.Object implements PTWidget
This abstract class contains all common methods for widgets that are part of
a property table
-
Field Summary
Fields Modifier and Type Field Description protected org.eclipse.swt.custom.StyledText
descriptionLabel
-
Constructor Summary
Constructors Constructor Description AbstractPTWidget()
-
Method Summary
Modifier and Type Method Description PTWidget
build()
Build the widget (Table or TreeTable)protected abstract void
buildWidget(org.eclipse.swt.widgets.Composite parent)
Build the widget itselfPTWidget
disposeAndBuild(PropertyTable table)
Dispose the previous widget and build a new one (when ones switch from Category View to Flat List view)protected PropertyTable
getParentPropertyTable()
abstract void
refillData()
Clear all data and fill the widgetvoid
setParentPropertyTable(PropertyTable table)
Inject the parent property table in the widgetvoid
updateDescriptionPanel(java.lang.Object selection)
Update the description panel (if it exists)
-
Field Details
-
descriptionLabel
protected org.eclipse.swt.custom.StyledText descriptionLabel
-
-
Constructor Details
-
AbstractPTWidget
public AbstractPTWidget()
-
-
Method Details
-
refillData
public abstract void refillData()Description copied from interface:PTWidget
Clear all data and fill the widget- Specified by:
refillData
in interfacePTWidget
- See Also:
PTWidget.refillData()
-
buildWidget
protected abstract void buildWidget(org.eclipse.swt.widgets.Composite parent)Build the widget itself- Parameters:
parent
-
-
build
Description copied from interface:PTWidget
Build the widget (Table or TreeTable)- Specified by:
build
in interfacePTWidget
- Returns:
- the built widget
- See Also:
PTWidget.build()
-
disposeAndBuild
Description copied from interface:PTWidget
Dispose the previous widget and build a new one (when ones switch from Category View to Flat List view)- Specified by:
disposeAndBuild
in interfacePTWidget
- Parameters:
table
- the PropertyTable to dispose- Returns:
- the built widget
- See Also:
PTWidget.disposeAndBuild(org.eclipse.nebula.widgets.opal.propertytable.PropertyTable)
-
getParentPropertyTable
- Returns:
- the parent PropertyTable
-
setParentPropertyTable
Description copied from interface:PTWidget
Inject the parent property table in the widget- Specified by:
setParentPropertyTable
in interfacePTWidget
- Parameters:
parentPropertyTable
- the parent PropertyTable to set
-
updateDescriptionPanel
public void updateDescriptionPanel(java.lang.Object selection)Description copied from interface:PTWidget
Update the description panel (if it exists)- Specified by:
updateDescriptionPanel
in interfacePTWidget
- Parameters:
selection
- selected property- See Also:
PTWidget.updateDescriptionPanel(java.lang.Object)
-