Interface PTWidget
- All Known Implementing Classes:
AbstractPTWidget
,PTWidgetTable
,PTWidgetTree
public interface PTWidget
Classes which implement this interface are widgets that may compose a
PropertyTable (Table for Flat List, TableTree for Category)
-
Method Summary
Modifier and Type Method Description PTWidget
build()
Build the widget (Table or TreeTable)PTWidget
disposeAndBuild(PropertyTable table)
Dispose the previous widget and build a new one (when ones switch from Category View to Flat List view)org.eclipse.swt.widgets.Composite
getWidget()
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)
-
Method Details
-
build
PTWidget build()Build the widget (Table or TreeTable)- Returns:
- the built widget
-
disposeAndBuild
Dispose the previous widget and build a new one (when ones switch from Category View to Flat List view)- Parameters:
table
- the PropertyTable to dispose- Returns:
- the built widget
-
setParentPropertyTable
Inject the parent property table in the widget- Parameters:
table
- table to inject
-
refillData
void refillData()Clear all data and fill the widget -
getWidget
org.eclipse.swt.widgets.Composite getWidget()- Returns:
- the underlying widget (Table or TableTree)
-
updateDescriptionPanel
void updateDescriptionPanel(java.lang.Object selection)Update the description panel (if it exists)- Parameters:
selection
- selected property
-