|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.gui.table.TablePreferencesHandler
public class TablePreferencesHandler
Takes care of the table preferences.
Nested Class Summary | |
---|---|
protected class |
TablePreferencesHandler.ColumnListener
|
Constructor Summary | |
---|---|
TablePreferencesHandler(TablePreferencesProvider prefs,
java.lang.String table,
ColumnModel model,
javax.swing.table.TableColumnModel tcm)
|
Method Summary | |
---|---|
void |
columnWidthChanged()
Saves the width of all columns. |
Column |
getColumnByKey(java.lang.String key)
|
TablePreferencesProvider |
getPreferencesSupport()
|
java.lang.String |
getTable()
Returns the preferences key. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
|
void |
restore()
Restores the table width and sort order. |
void |
setVisible(java.lang.String[] visibleKeysArray)
|
void |
sortedColumnChanged()
Saves the sorted column. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TablePreferencesHandler(TablePreferencesProvider prefs, java.lang.String table, ColumnModel model, javax.swing.table.TableColumnModel tcm)
Method Detail |
---|
public TablePreferencesProvider getPreferencesSupport()
public Column getColumnByKey(java.lang.String key)
public java.lang.String getTable()
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
public void restore()
public void setVisible(java.lang.String[] visibleKeysArray)
public void sortedColumnChanged()
Writes 0, if no column was ever sorted; index + 1, if the column was sorted ascending; -index - 1, if the column was sorted descending ;).
sortedColumnChanged
in interface TableHeaderListener
public void columnWidthChanged()
columnWidthChanged
in interface TableHeaderListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |