|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.IconDelegate
Supported API: true
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static String |
COMPUTE_SHARED_FROM_GLYPH
|
static String |
COMPUTE_SHARED_TO_GLYPH
|
private WTContainer |
contextContainer
|
static String |
DISPLAY_SHARED_FROM_GLYPH
|
static String |
DISPLAY_SHARED_TO_GLYPH
|
static long |
EXTERNALIZATION_VERSION_UID
|
private IconDelegateFactory |
factory
|
static String |
NO_SHARED_FROM_GLYPH
|
static String |
NO_SHARED_TO_GLYPH
|
private WTObject |
object
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
PROJECTLINK_INSTALL_KEY
|
private static boolean |
ProjectLinkInstalled
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
static String |
SHARED_FROM
|
static String |
SHARED_TO
|
private String |
sharedFromGlyph
|
private String |
sharedToGlyph
|
private Class |
targetClass
|
private static boolean |
VERBOSE
|
Constructor Summary | |
IconDelegate()
Supported API: false |
Method Summary | |
private static boolean |
displaySharedFromGlyph(WTContained obj,
WTContainer currentContext)
Determine whether a shared-from glyph should be displayed on the icon. |
private static boolean |
displaySharedToGlyph(WTContained obj,
WTContainer currentContext)
Determine whether a shared-to glyph should be displayed on the icon. |
private void |
factoryValidate(IconDelegateFactory a_Factory)
|
WTContainer |
getContextContainer()
Returns the value of the current context container. |
IconDelegateFactory |
getFactory()
Gets the object for the association that plays role: factory. |
WTObject |
getObject()
Gets the object for the association that plays role: object. |
IconSelector |
getOpenIconSelector()
Supported API: false |
String |
getSharedFromDisplay()
Returns how this instance will handle shared-from glyph display Supported API: false |
String |
getSharedToDisplay()
Returns how this instance will handle shared-to glyph display Supported API: false |
IconSelector |
getStandardIconSelector()
Supported API: false |
Class |
getTargetClass()
Gets the object for the association that plays role: targetClass. |
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(IconDelegate thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
IconDelegate |
resolveSelector(IconSelector selector)
Supported API: false |
void |
setFactory(IconDelegateFactory a_Factory)
Sets the object for the association that plays role: factory. |
void |
setObject(WTObject a_Object)
Sets the object for the association that plays role: object. |
void |
setShareGlyphDisplay(String sharedFrom,
String sharedTo,
WTContainer container)
Specify whether this instance should display shared-to and shared-from glyphs on the icon. |
void |
setTargetClass(Class a_TargetClass)
Sets the object for the association that plays role: targetClass. |
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
private IconDelegateFactory factory
private WTObject object
private Class targetClass
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
public static final String DISPLAY_SHARED_FROM_GLYPH
public static final String NO_SHARED_FROM_GLYPH
public static final String COMPUTE_SHARED_FROM_GLYPH
public static final String DISPLAY_SHARED_TO_GLYPH
public static final String NO_SHARED_TO_GLYPH
public static final String COMPUTE_SHARED_TO_GLYPH
public static final String SHARED_TO
public static final String SHARED_FROM
private String sharedToGlyph
private String sharedFromGlyph
private WTContainer contextContainer
private static boolean VERBOSE
private static final String PROJECTLINK_INSTALL_KEY
private static boolean ProjectLinkInstalled
Constructor Detail |
public IconDelegate()
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(IconDelegate 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 IconDelegateFactory getFactory()
public void setFactory(IconDelegateFactory a_Factory) throws WTPropertyVetoException
a_Factory
-
WTPropertyVetoException
private void factoryValidate(IconDelegateFactory a_Factory) throws WTPropertyVetoException
a_Factory
-
WTPropertyVetoException
public WTObject getObject()
public void setObject(WTObject a_Object) throws WTPropertyVetoException
a_Object
-
WTPropertyVetoException
public Class getTargetClass()
public void setTargetClass(Class a_TargetClass) throws WTPropertyVetoException
a_TargetClass
-
WTPropertyVetoException
public IconSelector getStandardIconSelector() throws WTException, IllegalAccessException, InvocationTargetException
WTException
IllegalAccessException
InvocationTargetException
public IconSelector getOpenIconSelector() throws WTException, IllegalAccessException, InvocationTargetException
WTException
IllegalAccessException
InvocationTargetException
public IconDelegate resolveSelector(IconSelector selector) throws WTException, IllegalAccessException, InvocationTargetException
selector
-
WTException
IllegalAccessException
InvocationTargetException
public void setShareGlyphDisplay(String sharedFrom, String sharedTo, WTContainer container)
sharedFrom
- The following values are recognized:
sharedTo
- The following values are recognized:
container
- The container forming the context from
which the object is being viewed. Required if sharedFrom =
COMPUTE_SHARED_FROM_GLYPH or sharedTo = COMPUTE_SHARED_TO_GLYPH.
Otherwise may be null.public String getSharedFromDisplay()
public String getSharedToDisplay()
public WTContainer getContextContainer()
private static boolean displaySharedFromGlyph(WTContained obj, WTContainer currentContext)
obj
- object whose icon is being displayedcurrentContext
- context container; may be null, in which case this
method returns false
private static boolean displaySharedToGlyph(WTContained obj, WTContainer currentContext)
obj
- object whose icon is being displayedcurrentContext
- context container; may be null, in which case this
method returns false
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |