mk.fsgrep.util
Class IconResource

java.lang.Object
  extended by mk.fsgrep.util.PackageResource
      extended by mk.fsgrep.util.IconResource

public class IconResource
extends PackageResource

Read a resource from the jar (classpath actually) and return it as an icon.

Author:
Murali Krishnan

Field Summary
 
Fields inherited from class mk.fsgrep.util.PackageResource
INCLUDE_PATH, RE_MULTI_SLASH
 
Constructor Summary
protected IconResource(java.lang.String pUri)
           
 
Method Summary
static javax.swing.ImageIcon get(java.lang.String pUri)
           
 javax.swing.ImageIcon getIcon()
           
protected  java.lang.Object readContent()
           
 
Methods inherited from class mk.fsgrep.util.PackageResource
getContent, getUri, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IconResource

protected IconResource(java.lang.String pUri)
Method Detail

get

public static javax.swing.ImageIcon get(java.lang.String pUri)

readContent

protected java.lang.Object readContent()
Specified by:
readContent in class PackageResource

getIcon

public javax.swing.ImageIcon getIcon()


Copyright © 2009. All Rights Reserved.