|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.swing.visuals.ImageIconResource
public class ImageIconResource
ImageIconResource is a subclass of javax.swing.ImageIcon and its purpose is to use the instance of the
ResourceLocatorInterface to locate the specified image.
This class is not intended to be used directly by the user as it's main use is for the IconEditor.
The IconEditor will use this class to store the image's location and also to provide the user with a missing file icon if the
image specified by the user is not valid or accessible.
,
Serialized Form| Field Summary | |
|---|---|
static java.lang.String |
RB_KEY
|
protected com.sas.net.ResourceLocatorInterface |
resourceLocator
|
protected javax.swing.event.SwingPropertyChangeSupport |
spcs
|
| Constructor Summary | |
|---|---|
ImageIconResource()
Default constructor, creates a default AppletResourceLocator as the
resource locator. |
|
ImageIconResource(com.sas.net.ResourceLocatorInterface resourceLocator)
Creates a ImageIconResource with the specified instance of the ResourceLocatorInterface as the image. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
|
void |
firePropertyChange(java.beans.PropertyChangeEvent evt)
Fire an existing PropertyChangeEvent to any registered listeners. |
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Report a bound property update to any registered listeners. |
com.sas.net.ResourceLocatorInterface |
getResourceLocator()
Returns the instance of the ResourceLocatorInterface that is used to locate the image. |
void |
propertyChange(java.beans.PropertyChangeEvent ev)
Handle PropertyChangeEvents from the resource locator. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
|
void |
setResourceLocator(com.sas.net.ResourceLocatorInterface newValue)
Sets the instance of the ResourceLocatorInterface that is used to locate the image. |
| Field Detail |
|---|
public static final java.lang.String RB_KEY
protected com.sas.net.ResourceLocatorInterface resourceLocator
protected javax.swing.event.SwingPropertyChangeSupport spcs
| Constructor Detail |
|---|
public ImageIconResource()
AppletResourceLocator as the
resource locator.
AppletResourceLocatorpublic ImageIconResource(com.sas.net.ResourceLocatorInterface resourceLocator)
ResourceLocatorInterface| Method Detail |
|---|
public com.sas.net.ResourceLocatorInterface getResourceLocator()
getResourceLocator in interface ResourceConsumerInterfaceResourceConsumerInterface.setResourceLocator(com.sas.net.ResourceLocatorInterface)public void setResourceLocator(com.sas.net.ResourceLocatorInterface newValue)
setResourceLocator in interface ResourceConsumerInterfacenewValue - The resource locator the points to the location of the image.ResourceLocatorInterfacepublic void propertyChange(java.beans.PropertyChangeEvent ev)
propertyChange in interface java.beans.PropertyChangeListenerev - The event from the resource locator indicating what property changed.public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
public void firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
propertyName - The programmatic name of the property that was changed.oldValue - The old value of the property.newValue - The new value of the property.public void firePropertyChange(java.beans.PropertyChangeEvent evt)
evt - The PropertyChangeEvent object.
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||