org.siebengeisslein.pgui
Class PImageIcon

java.lang.Object
  extended by org.siebengeisslein.client.Persistent
      extended by org.siebengeisslein.client.Immutable
          extended by org.siebengeisslein.pgui.PImageIcon
All Implemented Interfaces:
java.lang.Cloneable, CloneAndMergeAware, CloneAware, Instrumented, MergeAware

public class PImageIcon
extends Immutable

Contains an image icon. This class could implement the icon interface, but since swing only displays ImageIcons greyed out in disabled buttons, it is better to return an ImageIcon.


Constructor Summary
PImageIcon(java.io.InputStream in)
           
PImageIcon(java.net.URL url)
           
 
Method Summary
 javax.swing.ImageIcon getIcon()
           
 
Methods inherited from class org.siebengeisslein.client.Immutable
clone, getComponentId, merge, replaceMerged
 
Methods inherited from class org.siebengeisslein.client.Persistent
abort, clearUserLocals, clone, commit, disposeTransient, getGroup, getRef, getTransientValue, hashCode, initTransient, isWriteTransaction, joinWriteTransaction, readLock, setGroup, setTransientValue, toPersistent, toRef, writeExternal, writeLock
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PImageIcon

public PImageIcon(java.net.URL url)
           throws java.io.IOException
Throws:
java.io.IOException

PImageIcon

public PImageIcon(java.io.InputStream in)
           throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getIcon

public javax.swing.ImageIcon getIcon()