edu.northwestern.at.utils.swing
Class LookAndFeel.ExtendedLookAndFeelInfo

java.lang.Object
  extended by edu.northwestern.at.utils.swing.LookAndFeel.ExtendedLookAndFeelInfo
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
LookAndFeel

public static class LookAndFeel.ExtendedLookAndFeelInfo
extends java.lang.Object
implements java.lang.Comparable


Field Summary
 java.lang.String className
           
 boolean isThemeFile
           
 java.lang.String name
           
 java.lang.String themeName
           
 
Constructor Summary
LookAndFeel.ExtendedLookAndFeelInfo(java.lang.String name, java.lang.String className)
          Create look and feel entry.
LookAndFeel.ExtendedLookAndFeelInfo(java.lang.String name, java.lang.String className, java.lang.String themeName, boolean isThemeFile)
          Create look and feel entry.
LookAndFeel.ExtendedLookAndFeelInfo(javax.swing.UIManager.LookAndFeelInfo info)
          Create look and feel entry.
 
Method Summary
 int compareTo(java.lang.Object obj)
          Compare another object to this one.
 boolean equals(java.lang.Object obj)
          Return true if another object is the same as this one.
 int hashCode()
          Returns a hash code for the object.
 java.lang.String toString()
          Return name of look and feel.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public java.lang.String name

className

public java.lang.String className

themeName

public java.lang.String themeName

isThemeFile

public boolean isThemeFile
Constructor Detail

LookAndFeel.ExtendedLookAndFeelInfo

public LookAndFeel.ExtendedLookAndFeelInfo(java.lang.String name,
                                           java.lang.String className,
                                           java.lang.String themeName,
                                           boolean isThemeFile)
Create look and feel entry.

Parameters:
name - Look and feel name.
className - Implementing class name for look and feel.
themeName - The name of a theme.
isThemeFile - true of the theme name is a file in the lookAndFeelDirectory.

LookAndFeel.ExtendedLookAndFeelInfo

public LookAndFeel.ExtendedLookAndFeelInfo(java.lang.String name,
                                           java.lang.String className)
Create look and feel entry.

Parameters:
name - Look and feel name.
className - Implementing class name for look and feel.

LookAndFeel.ExtendedLookAndFeelInfo

public LookAndFeel.ExtendedLookAndFeelInfo(javax.swing.UIManager.LookAndFeelInfo info)
Create look and feel entry.

Parameters:
info - Look and feel information object.
Method Detail

toString

public java.lang.String toString()
Return name of look and feel.

Overrides:
toString in class java.lang.Object
Returns:
Name of look and feel.

compareTo

public int compareTo(java.lang.Object obj)
Compare another object to this one.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
obj - The other object.
Returns:
Value as required by Comparable interface.

We just compare the names ignoring case.


equals

public boolean equals(java.lang.Object obj)
Return true if another object is the same as this one.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The other object.
Returns:
true if the other is the same as this one.

hashCode

public int hashCode()
Returns a hash code for the object.

Overrides:
hashCode in class java.lang.Object
Returns:
The hash code.