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()
PTWidgetrefillData in interface PTWidgetPTWidget.refillData()protected abstract void buildWidget(org.eclipse.swt.widgets.Composite parent)
parent - public PTWidget build()
PTWidgetbuild in interface PTWidgetPTWidget.build()public PTWidget disposeAndBuild(PropertyTable table)
PTWidgetdisposeAndBuild in interface PTWidgettable - the PropertyTable to disposePTWidget.disposeAndBuild(org.eclipse.nebula.widgets.opal.propertytable.PropertyTable)protected PropertyTable getParentPropertyTable()
public void setParentPropertyTable(PropertyTable table)
PTWidgetsetParentPropertyTable in interface PTWidgetparentPropertyTable - the parent PropertyTable to setpublic void updateDescriptionPanel(java.lang.Object selection)
PTWidgetupdateDescriptionPanel in interface PTWidgetselection - selected propertyPTWidget.updateDescriptionPanel(java.lang.Object)