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 |
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,
String... configLabels)
Register labels to be contributed a column.
|
void |
registerColumnOverridesOnTop(int columnIndex,
String... configLabels)
Register labels to be contributed a column.
|
void |
saveState(String prefix,
Properties properties)
Save the overrides to a properties file.
|
addOverrides, getOverrides, getOverrides, registerOverrides, registerOverrides, registerOverridesOnTop, removeOverride
public static final String PERSISTENCE_KEY
public ColumnOverrideLabelAccumulator(ILayer layer)
public void accumulateConfigLabels(LabelStack configLabels, int columnPosition, int rowPosition)
accumulateConfigLabels
in interface IConfigLabelAccumulator
configLabels
- 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)
public void registerColumnOverridesOnTop(int columnIndex, String... configLabels)
public void saveState(String prefix, Properties properties)
saveState
in interface IPersistable
prefix
- 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 IPersistable
prefix
- 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 © 2013. All Rights Reserved.