public abstract class AbstractPTWidget extends java.lang.Object implements PTWidget
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.swt.custom.StyledText |
descriptionLabel |
Constructor and Description |
---|
AbstractPTWidget() |
Modifier and Type | Method and Description |
---|---|
PTWidget |
build()
Build the widget (Table or TreeTable)
|
protected abstract void |
buildWidget(org.eclipse.swt.widgets.Composite parent)
Build the widget itself
|
PTWidget |
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 widget
|
void |
setParentPropertyTable(PropertyTable table)
Inject the parent property table in the widget
|
void |
updateDescriptionPanel(java.lang.Object selection)
Update the description panel (if it exists)
|
public abstract void refillData()
PTWidget
refillData
in interface PTWidget
PTWidget.refillData()
protected abstract void buildWidget(org.eclipse.swt.widgets.Composite parent)
parent
- public PTWidget build()
PTWidget
build
in interface PTWidget
PTWidget.build()
public PTWidget disposeAndBuild(PropertyTable table)
PTWidget
disposeAndBuild
in interface PTWidget
table
- the PropertyTable to disposePTWidget.disposeAndBuild(org.eclipse.nebula.widgets.opal.propertytable.PropertyTable)
protected PropertyTable getParentPropertyTable()
public void setParentPropertyTable(PropertyTable table)
PTWidget
setParentPropertyTable
in interface PTWidget
parentPropertyTable
- the parent PropertyTable to setpublic void updateDescriptionPanel(java.lang.Object selection)
PTWidget
updateDescriptionPanel
in interface PTWidget
selection
- selected propertyPTWidget.updateDescriptionPanel(java.lang.Object)