public class RenameColumnHelper extends Object implements IPersistable
Modifier and Type | Field and Description |
---|---|
static String |
PERSISTENCE_KEY_RENAMED_COLUMN_HEADERS |
protected Map<Integer,String> |
renamedColumnsLabelsByIndex
Tracks the renamed labels provided by the users
|
DOT, VALUE_SEPARATOR
Constructor and Description |
---|
RenameColumnHelper(ColumnHeaderLayer columnHeaderLayer) |
Modifier and Type | Method and Description |
---|---|
String |
getRenamedColumnLabel(int columnIndex) |
boolean |
isAnyColumnRenamed() |
boolean |
isColumnRenamed(int columnIndex) |
void |
loadState(String prefix,
Properties properties)
Restore the state out of the given Properties identified by the specified prefix.
|
boolean |
renameColumnIndex(int index,
String customColumnName) |
boolean |
renameColumnPosition(int columnPosition,
String customColumnName)
Rename the column at the given position.
|
void |
saveState(String prefix,
Properties properties)
Saves the state to the given Properties using the specified prefix.
|
public static final String PERSISTENCE_KEY_RENAMED_COLUMN_HEADERS
public RenameColumnHelper(ColumnHeaderLayer columnHeaderLayer)
public boolean renameColumnPosition(int columnPosition, String customColumnName)
public boolean renameColumnIndex(int index, String customColumnName)
public String getRenamedColumnLabel(int columnIndex)
public boolean isColumnRenamed(int columnIndex)
public boolean isAnyColumnRenamed()
public void loadState(String prefix, Properties properties)
IPersistable
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.public void saveState(String prefix, Properties properties)
IPersistable
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.Copyright © 2013. All Rights Reserved.