Klasse ComponentFilterTable
java.lang.Object
org.deidentifier.arx.gui.view.impl.common.ComponentFilterTable
This class implements a table, in which properties can be filtered.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungComponentFilterTable(org.eclipse.swt.widgets.Composite parent, Controller controller) Creates a new instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddSelectionListener(org.eclipse.swt.events.SelectionListener listener) Adds a selection listener.voidclear()Clears the table.intgetIndexOfEntry(String entry) Returns the entries.Returns the properties.Returns the currently selected entry.Returns the currently selected property.booleanisSelected(String entry, String property) Returns whether the given property is selected for the given entry.voidsetEnabled(boolean enabled) Enable/disable.voidsetLayoutData(Object layoutData) Sets layout data.voidSpecifies the properties permitted per entryvoidsetProperties(List<String> properties) Sets new properties.voidsetSelected(String entry, String property, boolean selected) Sets the given property selected for the given entry.
-
Konstruktordetails
-
ComponentFilterTable
Creates a new instance.- Parameter:
parent-controller-properties-entries-
-
-
Methodendetails
-
addSelectionListener
public void addSelectionListener(org.eclipse.swt.events.SelectionListener listener) Adds a selection listener.- Parameter:
listener-
-
clear
public void clear()Clears the table. -
getIndexOfEntry
Returns the entries.- Parameter:
entry-- Gibt zurück:
-
getProperties
Returns the properties.- Gibt zurück:
-
getSelectedEntry
Returns the currently selected entry.- Gibt zurück:
-
getSelectedProperty
Returns the currently selected property.- Gibt zurück:
-
isSelected
Returns whether the given property is selected for the given entry.- Parameter:
entry-property-- Gibt zurück:
-
setEnabled
public void setEnabled(boolean enabled) Enable/disable.- Parameter:
enabled-
-
setLayoutData
Sets layout data.- Parameter:
layoutData-
-
setPermitted
Specifies the properties permitted per entry- Parameter:
entries-permitted-
-
setProperties
Sets new properties. Clears the table- Parameter:
properties-
-
setSelected
Sets the given property selected for the given entry.- Parameter:
entry-property-selected-
-