|
|||||||||
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 |
java.lang.String[] |
appendLists(java.lang.String[] list1,
java.lang.String[] list2)
|
void |
ensureIntegrety(java.lang.Class dataSourceType,
java.lang.String sTableID)
|
void |
generateDiagnostics(IndentWriter writer)
|
TableColumnCore[] |
getAllTableColumnCoreAsArray(java.lang.Class forDataSourceType,
java.lang.String tableID)
|
java.util.List |
getAutoHideOrder(java.lang.String sTableID)
|
java.lang.Object |
getColumnData(java.lang.String columnID,
java.lang.String key)
|
TableColumnInfo |
getColumnInfo(java.lang.Class forDataSourceType,
java.lang.String forTableID,
java.lang.String columnID)
|
TableColumnInfo |
getColumnInfo(TableColumnCore column)
|
java.lang.String[] |
getDefaultColumnNames(java.lang.String tableID)
|
java.lang.String |
getDefaultSortColumnName(java.lang.String tableID)
|
static TableColumnManager |
getInstance()
Retrieve the static TableColumnManager instance |
TableColumnCore |
getTableColumnCore(java.lang.String sTableID,
java.lang.String sColumnName)
|
int |
getTableColumnCount(java.lang.String sTableID)
|
static java.util.Comparator<TableColumn> |
getTableColumnOrderComparator()
|
java.util.Map<java.lang.String,TableColumnCore> |
getTableColumnsAsMap(java.lang.Class forDataSourceType,
java.lang.String sTableID)
Retrieves TableColumnCore objects of a particular type. |
java.util.Map |
getTableConfigMap(java.lang.String sTableID)
|
java.lang.String[] |
getTableIDs()
|
boolean |
loadTableColumnSettings(java.lang.Class forDataSourceType,
java.lang.String sTableID)
|
void |
registerColumn(java.lang.Class forDataSourceType,
java.lang.String columnID,
TableColumnCreationListener listener)
|
void |
removeColumnData(java.lang.String columnID,
java.lang.String key)
|
void |
removeColumns(TableColumnCore[] itemsToRemove)
Adds a column definition to the list |
void |
resetColumns(java.lang.Class dataSourceType,
java.lang.String tableID)
|
void |
saveTableColumns(java.lang.Class forDataSourceType,
java.lang.String sTableID)
Saves all the user configurable Table Column settings at once, complete with a COConfigurationManager.save(). |
void |
setAutoHideOrder(java.lang.String sTableID,
java.lang.String[] autoHideOrderColumnIDs)
|
void |
setColumnData(java.lang.String columnID,
java.lang.String key,
java.lang.Object value)
|
void |
setDefaultColumnNames(java.lang.String tableID,
java.lang.String[] columnNames)
|
void |
setDefaultColumnNames(java.lang.String tableID,
TableColumn[] columns)
|
void |
setDefaultSortColumnName(java.lang.String tableID,
java.lang.String columnName)
|
void |
setDefaultSortColumnName(java.lang.String tableID,
java.lang.String columnName,
boolean force)
|
void |
unregisterColumn(java.lang.Class forDataSourceType,
java.lang.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 java.util.Map<java.lang.String,TableColumnCore> getTableColumnsAsMap(java.lang.Class forDataSourceType, java.lang.String sTableID)
sTableID
- TABLE_* constant. See TableColumn
for list
of constantsforDataSourceType
-
public int getTableColumnCount(java.lang.String sTableID)
public TableColumnCore[] getAllTableColumnCoreAsArray(java.lang.Class forDataSourceType, java.lang.String tableID)
public java.lang.String[] getDefaultColumnNames(java.lang.String tableID)
public void setDefaultColumnNames(java.lang.String tableID, TableColumn[] columns)
public void setDefaultColumnNames(java.lang.String tableID, java.lang.String[] columnNames)
public java.lang.String[] getTableIDs()
public java.lang.String[] appendLists(java.lang.String[] list1, java.lang.String[] list2)
public TableColumnCore getTableColumnCore(java.lang.String sTableID, java.lang.String sColumnName)
public void ensureIntegrety(java.lang.Class dataSourceType, java.lang.String sTableID)
public java.lang.String getDefaultSortColumnName(java.lang.String tableID)
public void setDefaultSortColumnName(java.lang.String tableID, java.lang.String columnName)
public void setDefaultSortColumnName(java.lang.String tableID, java.lang.String columnName, boolean force)
public void saveTableColumns(java.lang.Class forDataSourceType, java.lang.String sTableID)
sTableID
- Table to save settings forpublic boolean loadTableColumnSettings(java.lang.Class forDataSourceType, java.lang.String sTableID)
public java.util.Map getTableConfigMap(java.lang.String sTableID)
public void setAutoHideOrder(java.lang.String sTableID, java.lang.String[] autoHideOrderColumnIDs)
public java.util.List getAutoHideOrder(java.lang.String sTableID)
public void generateDiagnostics(IndentWriter writer)
writer
- public static java.util.Comparator<TableColumn> getTableColumnOrderComparator()
public void registerColumn(java.lang.Class forDataSourceType, java.lang.String columnID, TableColumnCreationListener listener)
forDataSourceType
- columnID
- listener
- public void unregisterColumn(java.lang.Class forDataSourceType, java.lang.String columnID, TableColumnCreationListener listener)
public TableColumnInfo getColumnInfo(java.lang.Class forDataSourceType, java.lang.String forTableID, java.lang.String columnID)
public TableColumnInfo getColumnInfo(TableColumnCore column)
public java.lang.Object getColumnData(java.lang.String columnID, java.lang.String key)
public void setColumnData(java.lang.String columnID, java.lang.String key, java.lang.Object value)
public void removeColumnData(java.lang.String columnID, java.lang.String key)
public void resetColumns(java.lang.Class dataSourceType, java.lang.String tableID)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |