com.jgoodies.uif.laf
Class LookConfigurations

java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by com.jgoodies.uif.laf.LookConfigurations
All Implemented Interfaces:
com.jgoodies.binding.beans.Observable, Serializable, Cloneable

public final class LookConfigurations
extends com.jgoodies.binding.beans.Model
implements Cloneable

Describes the set of available instances of LookConfiguration with one of them selected as default.

Version:
$Revision: 1.6 $
Author:
Karsten Lentzsch
See Also:
LookConfiguration, ExtUIManager, Preferences, LookAndFeel, Serialized Form

Field Summary
static String PROPERTYNAME_CONFIGURATIONS
          The name of the bound read-only property configurations.
static String PROPERTYNAME_DEFAULT_CONFIGURATION
          The name of the bound read-write property defaultConfiguration.
 
Constructor Summary
LookConfigurations(LookConfiguration selection)
          Constructs LookConfigurations object with the specified selection.
 
Method Summary
 Object clone()
          Returns a clone of this LookConfigurations instance.
 boolean equals(Object o)
          Checks and answers if this LookConfigurations equals the given object.
 Collection getConfigurations()
          Returns the Collection of LookConfiguration instances held by this LookConfigurations.
 LookConfiguration getDefaultConfiguration()
          Returns the default LookConfiguration.
 int hashCode()
          Returns this object's hash code.
 void setDefaultConfiguration(LookConfiguration newDefaultConfiguration)
          Sets a new default LookConfiguration.
 String toString()
          Returns a string representation that lists the default configuration and all configurations with look&feel name and optional theme.
 
Methods inherited from class com.jgoodies.binding.beans.Model
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PROPERTYNAME_CONFIGURATIONS

public static final String PROPERTYNAME_CONFIGURATIONS
The name of the bound read-only property configurations.

See Also:
Constant Field Values

PROPERTYNAME_DEFAULT_CONFIGURATION

public static final String PROPERTYNAME_DEFAULT_CONFIGURATION
The name of the bound read-write property defaultConfiguration.

See Also:
Constant Field Values
Constructor Detail

LookConfigurations

public LookConfigurations(LookConfiguration selection)
Constructs LookConfigurations object with the specified selection.

Parameters:
selection - the selected LookConfiguration
Method Detail

getDefaultConfiguration

public LookConfiguration getDefaultConfiguration()
Returns the default LookConfiguration.

Returns:
the default LookConfiguration

setDefaultConfiguration

public void setDefaultConfiguration(LookConfiguration newDefaultConfiguration)
Sets a new default LookConfiguration.

Parameters:
newDefaultConfiguration - the new default configuration

getConfigurations

public Collection getConfigurations()
Returns the Collection of LookConfiguration instances held by this LookConfigurations.

Returns:
the Collection of LookConfiguration instances held by this LookConfigurations.

clone

public Object clone()
Returns a clone of this LookConfigurations instance.

Overrides:
clone in class Object
Returns:
a cloned version of this object

equals

public boolean equals(Object o)
Checks and answers if this LookConfigurations equals the given object. Two LookConfigurations are equal if and only if they have equals LookConfiguration instances as default, and if all LookConfiguration instances are equal too.

Overrides:
equals in class Object
Returns:
true if this LookConfigurations object equals the given object

hashCode

public int hashCode()
Returns this object's hash code. A poor but correct implementation. Instances of LookConfigurations will likely not be used in HashMaps or HashSets.

Overrides:
hashCode in class Object
Returns:
this object's hash code

toString

public String toString()
Returns a string representation that lists the default configuration and all configurations with look&feel name and optional theme.

Overrides:
toString in class Object
Returns:
a string representation that list the default configuration and all configurations with look&feel name and optional theme.


Copyright © 2000-2008 JGoodies Karsten Lentzsch. All Rights Reserved.