Class AbstractOverrider
java.lang.Object
org.eclipse.nebula.widgets.nattable.layer.cell.AbstractOverrider
- All Implemented Interfaces:
IConfigLabelAccumulator,IConfigLabelProvider
- Direct Known Subclasses:
CellOverrideLabelAccumulator,ColumnOverrideLabelAccumulator,RowOverrideLabelAccumulator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOverrides(Map<Serializable, List<String>> overrides) Adds the given map of key-label overrides to the override map of this overrider.getOverrides(Serializable key) Return the labels that are registered for the given key.Returns the labels that are provided by thisIConfigLabelAccumulator.voidregisterOverrides(Serializable key, String... configLabels) Add the given labels to the label collection for the given key.voidregisterOverrides(Serializable key, List<String> configLabels) Add the given labels to the label collection for the given key.voidregisterOverridesOnTop(Serializable key, String... configLabels) Add the given labels on top of the label collection for the given key.voidregisterOverridesOnTop(Serializable key, List<String> configLabels) Add the given labels on top of the label collection for the given key.voidRemove all registered labels from the key-label overrides for the given key.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.nebula.widgets.nattable.layer.cell.IConfigLabelAccumulator
accumulateConfigLabels
-
Constructor Details
-
AbstractOverrider
public AbstractOverrider()
-
-
Method Details
-
removeOverride
Remove all registered labels from the key-label overrides for the given key.- Parameters:
key- The key for which all labels should be removed.
-
registerOverrides
Add the given labels to the label collection for the given key.- Parameters:
key- The key for which the labels should be added.configLabels- The labels to add.
-
registerOverrides
Add the given labels to the label collection for the given key.- Parameters:
key- The key for which the labels should be added.configLabels- The labels to add.
-
registerOverridesOnTop
Add the given labels on top of the label collection for the given key.- Parameters:
key- The key for which the labels should be added.configLabels- The labels to add.
-
registerOverridesOnTop
Add the given labels on top of the label collection for the given key.- Parameters:
key- The key for which the labels should be added.configLabels- The labels to add.
-
getOverrides
- Returns:
- The map of registered key-label overrides.
-
getOverrides
Return the labels that are registered for the given key.- Parameters:
key- The key for which the labels are requested.- Returns:
- The labels that are registered for the given key.
-
addOverrides
Adds the given map of key-label overrides to the override map of this overrider.- Parameters:
overrides- The key-label overrides to add.
-
getProvidedLabels
Returns the labels that are provided by thisIConfigLabelAccumulator. It needs to return all labels that might be applied to support the usage of corresponding selectors in NatTable CSS styling.- Specified by:
getProvidedLabelsin interfaceIConfigLabelProvider- Returns:
- The labels that are provided by this
IConfigLabelAccumulator. - Since:
- 1.4
-