|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aelitis.azureus.ui.common.table.impl.TableColumnManager
public class TableColumnManager
Holds a list of column definitions (TableColumnCore) for all the tables in Azureus. Column definitions are added via PluginInterface.addColumn(TableColumn) See Use javadoc section for more uses.
Method Summary | |
---|---|
void |
addColumns(TableColumnCore[] itemsToAdd)
Adds a column definition to the list |
String[] |
appendLists(String[] list1,
String[] list2)
|
void |
ensureIntegrety(Class dataSourceType,
String sTableID)
|
void |
generateDiagnostics(IndentWriter writer)
|
TableColumnCore[] |
getAllTableColumnCoreAsArray(Class forDataSourceType,
String tableID)
|
List |
getAutoHideOrder(String sTableID)
|
Object |
getColumnData(String columnID,
String key)
|
TableColumnInfo |
getColumnInfo(Class forDataSourceType,
String forTableID,
String columnID)
|
TableColumnInfo |
getColumnInfo(TableColumnCore column)
|
String[] |
getDefaultColumnNames(String tableID)
|
String |
getDefaultSortColumnName(String tableID)
|
static TableColumnManager |
getInstance()
Retrieve the static TableColumnManager instance |
TableColumnCore |
getTableColumnCore(String sTableID,
String sColumnName)
|
int |
getTableColumnCount(String sTableID)
|
static Comparator<TableColumn> |
getTableColumnOrderComparator()
|
Map<String,TableColumnCore> |
getTableColumnsAsMap(Class forDataSourceType,
String sTableID)
Retrieves TableColumnCore objects of a particular type. |
Map |
getTableConfigMap(String sTableID)
|
String[] |
getTableIDs()
|
boolean |
loadTableColumnSettings(Class forDataSourceType,
String sTableID)
|
void |
registerColumn(Class forDataSourceType,
String columnID,
TableColumnCreationListener listener)
|
void |
removeColumnData(String columnID,
String key)
|
void |
removeColumns(TableColumnCore[] itemsToRemove)
Adds a column definition to the list |
void |
resetColumns(Class dataSourceType,
String tableID)
|
void |
saveTableColumns(Class forDataSourceType,
String sTableID)
Saves all the user configurable Table Column settings at once, complete with a COConfigurationManager.save(). |
void |
setAutoHideOrder(String sTableID,
String[] autoHideOrderColumnIDs)
|
void |
setColumnData(String columnID,
String key,
Object value)
|
void |
setDefaultColumnNames(String tableID,
String[] columnNames)
|
void |
setDefaultColumnNames(String tableID,
TableColumn[] columns)
|
void |
setDefaultSortColumnName(String tableID,
String columnName)
|
void |
setDefaultSortColumnName(String tableID,
String columnName,
boolean force)
|
void |
unregisterColumn(Class forDataSourceType,
String columnID,
TableColumnCreationListener listener)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TableColumnManager getInstance()
public void addColumns(TableColumnCore[] itemsToAdd)
item
- The column definition objectpublic void removeColumns(TableColumnCore[] itemsToRemove)
item
- The column definition objectpublic Map<String,TableColumnCore> getTableColumnsAsMap(Class forDataSourceType, String sTableID)
sTableID
- TABLE_* constant. See TableColumn
for list
of constantsforDataSourceType
-
public int getTableColumnCount(String sTableID)
public TableColumnCore[] getAllTableColumnCoreAsArray(Class forDataSourceType, String tableID)
public String[] getDefaultColumnNames(String tableID)
public void setDefaultColumnNames(String tableID, TableColumn[] columns)
public void setDefaultColumnNames(String tableID, String[] columnNames)
public String[] getTableIDs()
public String[] appendLists(String[] list1, String[] list2)
public TableColumnCore getTableColumnCore(String sTableID, String sColumnName)
public void ensureIntegrety(Class dataSourceType, String sTableID)
public String getDefaultSortColumnName(String tableID)
public void setDefaultSortColumnName(String tableID, String columnName)
public void setDefaultSortColumnName(String tableID, String columnName, boolean force)
public void saveTableColumns(Class forDataSourceType, String sTableID)
sTableID
- Table to save settings forpublic boolean loadTableColumnSettings(Class forDataSourceType, String sTableID)
public Map getTableConfigMap(String sTableID)
public void setAutoHideOrder(String sTableID, String[] autoHideOrderColumnIDs)
public List getAutoHideOrder(String sTableID)
public void generateDiagnostics(IndentWriter writer)
writer
- public static Comparator<TableColumn> getTableColumnOrderComparator()
public void registerColumn(Class forDataSourceType, String columnID, TableColumnCreationListener listener)
forDataSourceType
- columnID
- listener
- public void unregisterColumn(Class forDataSourceType, String columnID, TableColumnCreationListener listener)
public TableColumnInfo getColumnInfo(Class forDataSourceType, String forTableID, String columnID)
public TableColumnInfo getColumnInfo(TableColumnCore column)
public Object getColumnData(String columnID, String key)
public void setColumnData(String columnID, String key, Object value)
public void removeColumnData(String columnID, String key)
public void resetColumns(Class dataSourceType, String tableID)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |