|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.util.IconCache
Supported API: true
Extendable: true
Field Summary | |
private Image |
CHECK_OUT_GLYPH
|
private String |
CHECK_OUT_GLYPH_LOC
|
private Image |
CHECKED_OUT_FROM_PDM_GLYPH
|
private String |
CHECKED_OUT_FROM_PDM_GLYPH_LOC
|
private static String |
CLASSNAME
|
private static boolean |
DEBUG
|
private IconDelegateFactory |
delegateFactory
|
static long |
EXTERNALIZATION_VERSION_UID
|
private Hashtable |
hrefTable
|
private Hashtable |
iconTable
|
private Image |
MASTER_GLYPH
|
private String |
MASTER_GLYPH_LOC
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private Image |
SHARED_FROM_GLYPH
|
private String |
SHARED_FROM_GLYPH_LOC
|
private Image |
SHARED_TO_GLYPH
|
private String |
SHARED_TO_GLYPH_LOC
|
private Image |
SHORTCUT_GLYPH
|
private String |
SHORTCUT_GLYPH_LOC
|
private Panel |
temp
|
private URLFactory |
url_factory
|
private Image |
WORKING_GLYPH
|
private String |
WORKING_GLYPH_LOC
|
Constructor Summary | |
IconCache()
Supported API: false |
|
IconCache(WTContext aContext)
Deprecated. in R4 - use no-arg constructor |
Method Summary | |
protected Image |
_addGlyphs(Image mainIcon,
IconSelector selector)
Supported API: false |
protected ArrayList |
_getGlyphsHREF(String glyph_type)
Supported API: false |
protected Image |
_getIcon(IconDelegate delegate,
IconSelector selector)
Supported API: false |
private Image |
_getIcon(IconDelegate delegate,
IconSelector selector,
String sharedFrom,
String sharedTo,
WTContainer containerContext)
Supported API: false |
protected ArrayList |
_getIconHREF(IconDelegate delegate,
IconSelector selector,
String glyph_type)
Calls getIconSlector, then calls getIcon with the resolved resource key. |
protected Object[] |
_getIconSelector(IconDelegate delegate,
IconSelector selector)
Finds the IconSelector needed if the current selector is not a resource key. |
Image |
getOpenIcon(Class windchillClass)
Method getStandardIcon returns an icon for a Windchill business class Supported API: false |
Image |
getOpenIcon(WTObject busObj)
Method getStandardIcon returns an icon for a Windchill
business object with the appropriate glyphs added as overlays. |
String[] |
getOpenIconHREF(Class windchillClass,
URLFactory urlfactory,
String glyph_type)
Method getStandardIconHREF returns an String[0] HREF to the icon for a Windchill business object. |
Image |
getStandardIcon(Class windchillClass)
Method getStandardIcon returns an icon for a Windchill business class Supported API: false |
Image |
getStandardIcon(IconSelector iconselector)
Method getStandardIcon returns an icon for a Windchill business class Supported API: false |
Image |
getStandardIcon(WTObject busObj)
Method getStandardIcon returns an icon for a Windchill
business object with the appropriate glyphs added as overlays. |
Image |
getStandardIcon(WTObject busObj,
String sharedFrom,
String sharedTo,
WTContainer contextContainer)
Returns an Image of the icon with the appropriate glyphs (adornments) for an object. |
String[] |
getStandardIconHREF(Class windchillClass,
URLFactory urlfactory,
String glyph_type)
Method getStandardIconHREF returns an String[0] HREF to the icon for a Windchill business object. |
String[] |
getStandardIconHREF(WTObject a_business_object,
URLFactory urlfactory,
String glyph_type)
Method getStandardIconHREF returns an String[0] HREF to the icon for a Windchill business object. |
Image |
mergeImages(Image main_image,
Image glyph_image)
Method mergeImages creates a single image by overlaying a given transparent glyph adornment on top of a main image. |
Image |
mergeImages(Image main_image,
Vector glyphs)
Method mergeImages creates a single image by overlaying the given transparent glyph adornments on top of a main image. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(IconCache thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private URLFactory url_factory
private Hashtable iconTable
private Hashtable hrefTable
private String WORKING_GLYPH_LOC
private String CHECK_OUT_GLYPH_LOC
private String SHORTCUT_GLYPH_LOC
private String MASTER_GLYPH_LOC
private String SHARED_TO_GLYPH_LOC
private String SHARED_FROM_GLYPH_LOC
private String CHECKED_OUT_FROM_PDM_GLYPH_LOC
private Image WORKING_GLYPH
private Image CHECK_OUT_GLYPH
private Image SHORTCUT_GLYPH
private Image MASTER_GLYPH
private Image SHARED_TO_GLYPH
private Image SHARED_FROM_GLYPH
private Image CHECKED_OUT_FROM_PDM_GLYPH
private IconDelegateFactory delegateFactory
private Panel temp
private static boolean DEBUG
Constructor Detail |
public IconCache() throws WTException, IOException, InterruptedException
WTException
IOException
InterruptedException
public IconCache(WTContext aContext) throws WTException, IOException, InterruptedException
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(IconCache thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public String[] getStandardIconHREF(Class windchillClass, URLFactory urlfactory, String glyph_type) throws WTException, IllegalAccessException, InvocationTargetException, InterruptedException, PropertyVetoException
getStandardIconHREF
in interface IconCacheIF
windchillClass
- The Class to look up the icon for.urlfactory
- glyph_type
- Identifier for the type of glyph to superimpose over the Image. Such as RevisionControlledIconDelegate.CHECKED_OUT.
If this value is null, there is no glyph to superimpose over the Image.
WTException
IllegalAccessException
InvocationTargetException
InterruptedException
PropertyVetoException
public String[] getOpenIconHREF(Class windchillClass, URLFactory urlfactory, String glyph_type) throws WTException, IllegalAccessException, InvocationTargetException, InterruptedException, PropertyVetoException
getOpenIconHREF
in interface IconCacheIF
windchillClass
- The Class to look up the icon for.urlfactory
- glyph_type
- Identifier for the type of glyph to superimpose over the Image. Such as RevisionControlledIconDelegate.CHECKED_OUT.
If this value is null, there is no glyph to superimpose over the Image.
WTException
IllegalAccessException
InvocationTargetException
InterruptedException
PropertyVetoException
public Image getStandardIcon(WTObject busObj) throws WTException, IllegalAccessException, InvocationTargetException, InterruptedException, PropertyVetoException
getStandardIcon
returns an icon for a Windchill
business object with the appropriate glyphs added as overlays.
getStandardIcon
in interface IconCacheIF
busObj
- The WTObject that the icon will be returned for placing the appropriate glyphs on top of the main image for the class.
WTException
IllegalAccessException
InvocationTargetException
InterruptedException
PropertyVetoException
public Image getOpenIcon(WTObject busObj) throws WTException, IllegalAccessException, InvocationTargetException, InterruptedException, PropertyVetoException
getStandardIcon
returns an icon for a Windchill
business object with the appropriate glyphs added as overlays.
getOpenIcon
in interface IconCacheIF
busObj
- The WTObject that the icon will be returned for placing the appropriate glyphs on top of the main image for the class.
WTException
IllegalAccessException
InvocationTargetException
InterruptedException
PropertyVetoException
public Image getStandardIcon(Class windchillClass) throws WTException, IllegalAccessException, InvocationTargetException, InterruptedException, PropertyVetoException
getStandardIcon
in interface IconCacheIF
windchillClass
- The Class to look up the icon for
WTException
IllegalAccessException
InvocationTargetException
InterruptedException
PropertyVetoException
public Image getOpenIcon(Class windchillClass) throws WTException, IllegalAccessException, InvocationTargetException, InterruptedException, PropertyVetoException
getOpenIcon
in interface IconCacheIF
windchillClass
- The Class to look up the icon for
WTException
IllegalAccessException
InvocationTargetException
InterruptedException
PropertyVetoException
public Image getStandardIcon(IconSelector iconselector) throws WTException, IllegalAccessException, InvocationTargetException, InterruptedException, PropertyVetoException
getStandardIcon
in interface IconCacheIF
iconselector
- The IconSelector is used in to look up the icon, this is part of the Icon Delegation throughout Windchill.
WTException
IllegalAccessException
InvocationTargetException
InterruptedException
PropertyVetoException
protected ArrayList _getIconHREF(IconDelegate delegate, IconSelector selector, String glyph_type) throws WTException, IllegalAccessException, InvocationTargetException, InterruptedException, PropertyVetoException
delegate
- selector
- glyph_type
- Identifier for the type of glyph to superimpose over the Image. Such as RevisionControlledIconDelegate.CHECKED_OUT.
If this value is null, there is no glyph to superimpose over the Image.
WTException
IllegalAccessException
InvocationTargetException
InterruptedException
PropertyVetoException
protected Object[] _getIconSelector(IconDelegate delegate, IconSelector selector) throws WTException, IllegalAccessException, InvocationTargetException
delegate
- selector
-
WTException
IllegalAccessException
InvocationTargetException
protected Image _getIcon(IconDelegate delegate, IconSelector selector) throws WTException, IllegalAccessException, InvocationTargetException, InterruptedException, PropertyVetoException
delegate
- selector
-
WTException
IllegalAccessException
InvocationTargetException
InterruptedException
PropertyVetoException
protected ArrayList _getGlyphsHREF(String glyph_type)
glyph_type
- Identifier for the type of glyph to superimpose over the Image. Such as RevisionControlledIconDelegate.CHECKED_OUT.
If this value is null, there is no glyph to superimpose over the Image.
protected Image _addGlyphs(Image mainIcon, IconSelector selector) throws InterruptedException
mainIcon
- selector
-
InterruptedException
public Image mergeImages(Image main_image, Image glyph_image) throws InterruptedException
mergeImages
in interface IconCacheIF
main_image
- the main Image onto which a glyph is placed.glyph_image
- The glyph Image which is placed on top of the main image.
InterruptedException
public Image mergeImages(Image main_image, Vector glyphs) throws InterruptedException
mergeImages
in interface IconCacheIF
main_image
- the main Image onto which a glyph is placed.glyphs
- The glyph Image which is placed on top of the main image.
InterruptedException
public String[] getStandardIconHREF(WTObject a_business_object, URLFactory urlfactory, String glyph_type) throws WTException, IllegalAccessException, InvocationTargetException, InterruptedException, PropertyVetoException
a_business_object
- The business object to look up the icon for.urlfactory
- glyph_type
- Identifier for the type of glyph to superimpose over the Image. Such as RevisionControlledIconDelegate.CHECKED_OUT.
If this value is null, there is no glyph to superimpose over the Image.
WTException
IllegalAccessException
InvocationTargetException
InterruptedException
PropertyVetoException
public Image getStandardIcon(WTObject busObj, String sharedFrom, String sharedTo, WTContainer contextContainer) throws WTException, IllegalAccessException, InvocationTargetException, InterruptedException, PropertyVetoException
sharedFrom
- The following values are recognized:
sharedTo
- The following values are recognized:
contextContainer
- Current container. May be null unless sharedFrom is
COMPUTE_SHARED_FROM_GLYPH or sharedTo is COMPUTE_SHARED_TO_GLYPH.
WTException
- Description of the Exception
IllegalAccessException
InvocationTargetException
InterruptedException
PropertyVetoException
private Image _getIcon(IconDelegate delegate, IconSelector selector, String sharedFrom, String sharedTo, WTContainer containerContext) throws WTException, IllegalAccessException, InvocationTargetException, InterruptedException, PropertyVetoException
delegate
- selector
- sharedFrom
- sharedTo
- containerContext
-
WTException
IllegalAccessException
InvocationTargetException
InterruptedException
PropertyVetoException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |