com.limegroup.gnutella.settings
Class TablesHandler

java.lang.Object
  extended bycom.limegroup.gnutella.settings.AbstractSettings
      extended bycom.limegroup.gnutella.settings.TablesHandler

public final class TablesHandler
extends AbstractSettings

Handles preferences for tables. Stored settings include the table header's width, order and visibility. Accessor are slightly different than other settings classes, because they are accessed less-frequently and must be slightly more mutable than other settings classes.


Method Summary
static IntSetting getOrder(java.lang.String id, int def)
          Returns the IntSetting for the specified column's order.
static BooleanSetting getVisibility(java.lang.String id, boolean def)
          Returns the BooleanSetting for the specified column's visibility.
static IntSetting getWidth(java.lang.String id, int def)
          Returns the IntSetting for the specified column's width.
static TablesHandler instance()
           
 
Methods inherited from class com.limegroup.gnutella.settings.AbstractSettings
getFactory, getProperties, getPropertiesFile, getShouldSave, reload, revertToDefault, save, setShouldSave
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static TablesHandler instance()

getWidth

public static IntSetting getWidth(java.lang.String id,
                                  int def)
Returns the IntSetting for the specified column's width.


getOrder

public static IntSetting getOrder(java.lang.String id,
                                  int def)
Returns the IntSetting for the specified column's order.


getVisibility

public static BooleanSetting getVisibility(java.lang.String id,
                                           boolean def)
Returns the BooleanSetting for the specified column's visibility.