Mp3dings 
20100427

de.mospace.swing
Class LaFInstaller.LaFPackage

java.lang.Object
  extended by javax.swing.UIManager.LookAndFeelInfo
      extended by de.mospace.swing.LaFInstaller.LaFPackage
Enclosing class:
LaFInstaller

public static final class LaFInstaller.LaFPackage
extends UIManager.LookAndFeelInfo

Description of the Class

Author:
ringler

Constructor Summary
LaFInstaller.LaFPackage(File jar, String mainclass, String name)
          Constructs a new LaFPackage.
LaFInstaller.LaFPackage(UIManager.LookAndFeelInfo info)
          Constructs a new LaFPackage.
 
Method Summary
 boolean equals(Object obj)
          Description of the Method
static LaFInstaller.LaFPackage[] fromJar(File jar)
          Searches the given jar file for all LaFs it contains.
static LaFInstaller.LaFPackage[] fromZip(File zipfile)
          The returned LaFPackage's freeResources() method should be called when none of them is needed any more.
 File getJar()
          Gets the jar attribute of the LaFPackage object.
 int hashCode()
          Description of the Method
 String toString()
          Description of the Method
 
Methods inherited from class javax.swing.UIManager.LookAndFeelInfo
getClassName, getName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LaFInstaller.LaFPackage

public LaFInstaller.LaFPackage(File jar,
                               String mainclass,
                               String name)
Constructs a new LaFPackage.

Parameters:
jar - Description of the Parameter
mainclass - Description of the Parameter
name - Description of the Parameter

LaFInstaller.LaFPackage

public LaFInstaller.LaFPackage(UIManager.LookAndFeelInfo info)
Constructs a new LaFPackage.

Parameters:
info - Description of the Parameter
Method Detail

equals

public boolean equals(Object obj)
Description of the Method

Overrides:
equals in class Object
Parameters:
obj - Description of the Parameter
Returns:
Description of the Return Value

hashCode

public int hashCode()
Description of the Method

Overrides:
hashCode in class Object
Returns:
Description of the Return Value

getJar

public File getJar()
Gets the jar attribute of the LaFPackage object. It is not guaranteed that the File object returned actually exists.

Returns:
The jar value

toString

public String toString()
Description of the Method

Overrides:
toString in class UIManager.LookAndFeelInfo
Returns:
Description of the Return Value

fromJar

public static LaFInstaller.LaFPackage[] fromJar(File jar)
Searches the given jar file for all LaFs it contains. As a side effect the jar file may become write protected until the jvm exits. Use deleteonExit if a simple delete fails.
 if(! jar.delete()){
    jar.deleteOnExit();
 }
 
Note that deleteOnExit might block memory that is released only when the JVM exits.

Parameters:
jar - the jar file to search
Returns:
all LookAndFeels found in the jar file

fromZip

public static LaFInstaller.LaFPackage[] fromZip(File zipfile)
                                         throws IOException
The returned LaFPackage's freeResources() method should be called when none of them is needed any more.

Parameters:
zipfile - Description of the Parameter
Returns:
Description of the Return Value
Throws:
IOException - Description of the Exception

Mp3dings 
20100427