LimeWire Consolidated API

org.limewire.setting
Class AbstractSettingsGroup

java.lang.Object
  extended by org.limewire.setting.AbstractSettingsGroup
All Implemented Interfaces:
SettingsGroup
Direct Known Subclasses:
BasicSettingsGroup

public abstract class AbstractSettingsGroup
extends Object
implements SettingsGroup

An abstract implementation of SettingsGroup


Constructor Summary
AbstractSettingsGroup()
           
 
Method Summary
 void addSettingsGroupListener(SettingsGroupListener l)
          Adds the given SettingsGroupListener
protected  void fireSettingsEvent(SettingsGroupEvent.EventType type)
          Fires a SettingsEvent
protected  void fireSettingsEvent(SettingsGroupEvent evt)
          Fires a SettingsEvent
 SettingsGroupListener[] getSettingsGroupListeners()
          Returns all SettingsGroupListeners or null if there are none
 boolean getShouldSave()
          Access for shouldSave
 void removeSettingsGroupListener(SettingsGroupListener l)
          Removes the given SettingsGroupListener
 void setShouldSave(boolean shouldSave)
          Sets whether or not all Settings should be saved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.limewire.setting.SettingsGroup
reload, revertToDefault, save
 

Constructor Detail

AbstractSettingsGroup

public AbstractSettingsGroup()
Method Detail

addSettingsGroupListener

public void addSettingsGroupListener(SettingsGroupListener l)
Description copied from interface: SettingsGroup
Adds the given SettingsGroupListener

Specified by:
addSettingsGroupListener in interface SettingsGroup

removeSettingsGroupListener

public void removeSettingsGroupListener(SettingsGroupListener l)
Description copied from interface: SettingsGroup
Removes the given SettingsGroupListener

Specified by:
removeSettingsGroupListener in interface SettingsGroup

getSettingsGroupListeners

public SettingsGroupListener[] getSettingsGroupListeners()
Returns all SettingsGroupListeners or null if there are none


setShouldSave

public void setShouldSave(boolean shouldSave)
Description copied from interface: SettingsGroup
Sets whether or not all Settings should be saved

Specified by:
setShouldSave in interface SettingsGroup

getShouldSave

public boolean getShouldSave()
Description copied from interface: SettingsGroup
Access for shouldSave

Specified by:
getShouldSave in interface SettingsGroup

fireSettingsEvent

protected void fireSettingsEvent(SettingsGroupEvent.EventType type)
Fires a SettingsEvent


fireSettingsEvent

protected void fireSettingsEvent(SettingsGroupEvent evt)
Fires a SettingsEvent


LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.