public class TableColumnPreferences extends CayennePreference
| Modifier and Type | Field and Description |
|---|---|
static String |
TABLE_COLUMN_PREF_KEY |
CAYENNE_PREFERENCES_PATH, EDITOR, LAST_PROJ_FILES| Constructor and Description |
|---|
TableColumnPreferences(Class className,
String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(JTable table,
Map<Integer,Integer> minSizes,
Map<Integer,Integer> maxSizes,
Map<Integer,Integer> defaultSizes)
Binds this preference object to synchronize its state with a given table component,
allowing to specify an initial offset compared to the stored position.
|
void |
bind(JTable table,
Map<Integer,Integer> minSizes,
Map<Integer,Integer> maxSizes,
Map<Integer,Integer> defaultSizes,
int defaultSortColumn,
boolean defaultSortOrder)
Binds this preference object to synchronize its state with a given table component,
allowing to specify an initial offset compared to the stored position.
|
Preferences |
getPreference() |
void |
setSortColumn(int sortCol) |
void |
setSortOrder(boolean isAscent) |
filePathToPrefereceNodePath, getCayennePreference, getCurrentPreference, getNode, getRootPreference, saveObjectPreference, setCurrentNodeForPreference, setCurrentPreference, setObjectpublic static final String TABLE_COLUMN_PREF_KEY
public Preferences getPreference()
public void bind(JTable table, Map<Integer,Integer> minSizes, Map<Integer,Integer> maxSizes, Map<Integer,Integer> defaultSizes, int defaultSortColumn, boolean defaultSortOrder)
table - minSizes - maxSizes - defaultSizes - defaultSortColumn - defaultSortOrder - public void bind(JTable table, Map<Integer,Integer> minSizes, Map<Integer,Integer> maxSizes, Map<Integer,Integer> defaultSizes)
table - minSizes - maxSizes - defaultSizes - public void setSortOrder(boolean isAscent)
public void setSortColumn(int sortCol)
Copyright © 2001–2015 Apache Cayenne. All rights reserved.