Interface IGUIConfigurationContainer
-
- All Known Implementing Classes:
AttributeValuesPage.AttributeTableEditor,ConfigurationTableEditor,ConfigurationTableEditorFactory.ConfigTableEditor
interface IGUIConfigurationContainerInterface for a viewer holding the GUIConfiguration. Adds methods for:- get
GUIConfiguration - specify filters for filtering elements of the
GUIConfiguration
- Author:
- El-Sharkawy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddFilter(org.eclipse.jface.viewers.ViewerFilter filter)Adds the given filter to the viewer, and triggers refiltering and resorting of the elements.ConfigurationgetConfig()Returns the configuration instance.GUIConfigurationgetGuiConfig()Returns the GUI configuration instance.voidremoveFilter(org.eclipse.jface.viewers.ViewerFilter filter)Removes the given filter from the viewer, and triggers refiltering and resorting of the elements if required.voidsetFilters(org.eclipse.jface.viewers.ViewerFilter[] filters)Sets the filters, replacing any previous filters, and triggers refiltering and resorting of the elements.voidupdateItem(GUIVariable variable)Informs the container that a single item has changed (not added/deleted).
-
-
-
Method Detail
-
getGuiConfig
GUIConfiguration getGuiConfig()
Returns the GUI configuration instance.- Returns:
- the GUI configuration instance
-
addFilter
void addFilter(org.eclipse.jface.viewers.ViewerFilter filter)
Adds the given filter to the viewer, and triggers refiltering and resorting of the elements. If you want to add more than one filter consider usingsetFilters(ViewerFilter[]).- Parameters:
filter- a viewer filter
-
setFilters
void setFilters(org.eclipse.jface.viewers.ViewerFilter[] filters)
Sets the filters, replacing any previous filters, and triggers refiltering and resorting of the elements.- Parameters:
filters- An array of viewer filters, must not be null
-
removeFilter
void removeFilter(org.eclipse.jface.viewers.ViewerFilter filter)
Removes the given filter from the viewer, and triggers refiltering and resorting of the elements if required. Has no effect if the identical filter is not registered. If you want to remove more than one filter consider usingsetFilters(ViewerFilter[]).- Parameters:
filter- A viewer filter- See Also:
setFilters(ViewerFilter[])
-
getConfig
Configuration getConfig()
Returns the configuration instance.- Returns:
- the configuration instance
-
updateItem
void updateItem(GUIVariable variable)
Informs the container that a single item has changed (not added/deleted). This is much more efficient than to refresh the whole container and in case of an editor, does not force to collapse open items.- Parameters:
variable- The item which has been modified (not added or deleted).
-
-