public class ColumnOverrideLabelAccumulator extends AbstractOverrider implements IPersistable
ICellEditor, ICellPainter, IStyle can then be
registered in the IConfigRegistry against these labels.
Also @see RowOverrideLabelAccumulator| Modifier and Type | Field and Description |
|---|---|
static String |
ALL_COLUMN_KEY
This key is used to register overrides for all columns.
|
static String |
PERSISTENCE_KEY |
DOT, VALUE_SEPARATOR| Constructor and Description |
|---|
ColumnOverrideLabelAccumulator(ILayer layer) |
| Modifier and Type | Method and Description |
|---|---|
void |
accumulateConfigLabels(LabelStack configLabels,
int columnPosition,
int rowPosition)
Add labels applicable to this cell position
|
void |
loadState(String prefix,
Properties properties)
Load the overrides state from the given properties file.
|
void |
registerColumnOverrides(int columnIndex,
List<String> configLabels)
Register labels to be contributed a column.
|
void |
registerColumnOverrides(int columnIndex,
String... configLabels)
Register labels to be contributed a column.
|
void |
registerColumnOverridesOnTop(int columnIndex,
List<String> configLabels)
Register labels to be contributed a column.
|
void |
registerColumnOverridesOnTop(int columnIndex,
String... configLabels)
Register labels to be contributed a column.
|
void |
registerOverrides(List<String> configLabels)
Register labels to be contributed to all columns.
|
void |
registerOverrides(String configLabel)
Register a label to be contributed to all columns.
|
void |
registerOverridesOnTop(List<String> configLabels)
Register labels to be contributed to all columns.
|
void |
registerOverridesOnTop(String configLabel)
Register a label to be contributed to all columns.
|
void |
saveState(String prefix,
Properties properties)
Save the overrides to a properties file.
|
void |
unregisterOverrides(int columnIndex,
String... configLabels)
Unregister labels that were contributed for a column.
|
void |
unregisterOverrides(int columnIndex,
String configLabel)
Unregister a label that was contributed for a column.
|
void |
unregisterOverrides(List<String> configLabels)
Unregister labels that were contributed for all columns.
|
void |
unregisterOverrides(String configLabel)
Unregister a label that was contributed for all columns.
|
addOverrides, getOverrides, getOverrides, getProvidedLabels, registerOverrides, registerOverrides, registerOverridesOnTop, registerOverridesOnTop, removeOverridepublic static final String PERSISTENCE_KEY
public static final String ALL_COLUMN_KEY
public ColumnOverrideLabelAccumulator(ILayer layer)
public void accumulateConfigLabels(LabelStack configLabels, int columnPosition, int rowPosition)
accumulateConfigLabels in interface IConfigLabelAccumulatorconfigLabels - the labels currently applied to the cell. The labels
contributed by this provider must be added to this
stackcolumnPosition - of the cell for which labels are being gatheredrowPosition - of the cell for which labels are being gatheredpublic void registerColumnOverrides(int columnIndex,
String... configLabels)
columnIndex - The column index of the column to which the config label
should be contributed.configLabels - The config labels to add.public void registerColumnOverrides(int columnIndex,
List<String> configLabels)
columnIndex - The column index of the column to which the config label
should be contributed.configLabels - The config labels to add.public void registerColumnOverridesOnTop(int columnIndex,
String... configLabels)
columnIndex - The column index of the column to which the config label
should be contributed.configLabels - The config labels to add.public void registerColumnOverridesOnTop(int columnIndex,
List<String> configLabels)
columnIndex - The column index of the column to which the config label
should be contributed.configLabels - The config labels to add.public void unregisterOverrides(int columnIndex,
String configLabel)
columnIndex - The column index of the column to which a config label was
contributed.configLabel - The config label to remove.public void unregisterOverrides(int columnIndex,
String... configLabels)
columnIndex - The column index of the column to which a config label was
contributed.configLabels - The config labels to remove.public void registerOverrides(String configLabel)
configLabel - The config label that should be added to all cells.public void registerOverrides(List<String> configLabels)
configLabels - The config labels that should be added to all cells.public void registerOverridesOnTop(String configLabel)
configLabel - The config label that should be added to all cells.public void registerOverridesOnTop(List<String> configLabels)
configLabels - The config labels that should be added to all cells.public void unregisterOverrides(String configLabel)
configLabel - The config label to remove.public void unregisterOverrides(List<String> configLabels)
configLabels - The config labels to remove.public void saveState(String prefix, Properties properties)
saveState in interface IPersistableprefix - The prefix to use for the state keys. Is also used as the
state configuration name.properties - The Properties instance to save the state to.public void loadState(String prefix, Properties properties)
loadState in interface IPersistableprefix - The prefix to use for the state keys. Is also used as the
state configuration name.properties - The Properties instance to load the state from.saveState(String, Properties)Copyright © 2019. All rights reserved.