org.xnap.commons.settings
Class TableSettingDirector

java.lang.Object
  extended by org.xnap.commons.settings.TableSettingDirector
All Implemented Interfaces:
TableLayoutListener

public class TableSettingDirector
extends Object
implements TableLayoutListener

Author:
Steffen Pingel

Constructor Summary
TableSettingDirector(SettingResource backend, String key)
           
TableSettingDirector(SettingResource backend, String key, TableLayout tableLayout)
           
 
Method Summary
 void columnLayoutChanged()
          Invoked when the width of one or more columns was changed.
 void columnNameChanged(int index, String newName)
           
 void columnOrderChanged()
           
 void columnVisibilityChanged(int index, boolean visible)
           
 void maintainSortOrderChanged(boolean newValue)
           
 void restore()
           
 void restore(TableLayout tableLayout)
           
 void save()
           
 void save(TableLayout tableLayout)
           
 TableSettingDirector setDefaults(String[] visibleColumns)
           
 void setTableLayout(TableLayout tableLayout)
           
 void sortedColumnChanged()
          Invoked when the sorted column was changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableSettingDirector

public TableSettingDirector(SettingResource backend,
                            String key,
                            TableLayout tableLayout)

TableSettingDirector

public TableSettingDirector(SettingResource backend,
                            String key)
Method Detail

setDefaults

public TableSettingDirector setDefaults(String[] visibleColumns)

setTableLayout

public void setTableLayout(TableLayout tableLayout)

restore

public void restore(TableLayout tableLayout)

restore

public void restore()

save

public void save(TableLayout tableLayout)

save

public void save()

columnLayoutChanged

public void columnLayoutChanged()
Description copied from interface: TableLayoutListener
Invoked when the width of one or more columns was changed.

Specified by:
columnLayoutChanged in interface TableLayoutListener

sortedColumnChanged

public void sortedColumnChanged()
Description copied from interface: TableLayoutListener
Invoked when the sorted column was changed.

Specified by:
sortedColumnChanged in interface TableLayoutListener

columnOrderChanged

public void columnOrderChanged()
Specified by:
columnOrderChanged in interface TableLayoutListener

columnNameChanged

public void columnNameChanged(int index,
                              String newName)
Specified by:
columnNameChanged in interface TableLayoutListener

columnVisibilityChanged

public void columnVisibilityChanged(int index,
                                    boolean visible)
Specified by:
columnVisibilityChanged in interface TableLayoutListener

maintainSortOrderChanged

public void maintainSortOrderChanged(boolean newValue)
Specified by:
maintainSortOrderChanged in interface TableLayoutListener


Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.