Interface PTWidget
-
- All Known Implementing Classes:
AbstractPTWidget,PTWidgetTable,PTWidgetTree
public interface PTWidgetClasses which implement this interface are widgets that may compose a PropertyTable (Table for Flat List, TableTree for Category)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PTWidgetbuild()Build the widget (Table or TreeTable)PTWidgetdisposeAndBuild(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.CompositegetWidget()voidrefillData()Clear all data and fill the widgetvoidsetParentPropertyTable(PropertyTable table)Inject the parent property table in the widgetvoidupdateDescriptionPanel(java.lang.Object selection)Update the description panel (if it exists)
-
-
-
Method Detail
-
build
PTWidget build()
Build the widget (Table or TreeTable)- Returns:
- the built widget
-
disposeAndBuild
PTWidget disposeAndBuild(PropertyTable table)
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
void setParentPropertyTable(PropertyTable table)
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
-
-