org.metasyntactic.system
Class Icon

java.lang.Object
  |
  +--org.metasyntactic.system.Icon

public class Icon
extends java.lang.Object


Constructor Summary
Icon()
          Creates new Icon
 
Method Summary
static Icon getByExtension(java.lang.String extension)
          Returns the Icon associated with this extension.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Icon

public Icon()
Creates new Icon

Method Detail

getByExtension

public static Icon getByExtension(java.lang.String extension)
Returns the Icon associated with this extension. The extension is always padded with a "." at the beginning. So passing in "txt" or ".txt" is fine. This implementation is guaranteed to return at least a default icon even if there is no registered icon for this extension in the system.


main

public static void main(java.lang.String[] args)