com.tivoli.twg.engine
Class TWGConImageSet

java.lang.Object
  extended bycom.tivoli.twg.engine.TWGConObject
      extended bycom.tivoli.twg.engine.TWGConImageSet

public class TWGConImageSet
extends TWGConObject

Console object used to shadow the state of a TWGImageSet object in the Director Server.


Field Summary
 
Fields inherited from class com.tivoli.twg.engine.TWGConObject
INVALID_OBJECT_ID
 
Constructor Summary
TWGConImageSet(long obj_id)
          Constructor for TWGConImageSet with given object ID
 
Method Summary
 javax.swing.ImageIcon getImage(int index)
          Get image specified by the index to an image name
 javax.swing.ImageIcon getImage(int index, boolean enabled)
          Get image specified by the index to an image name
 javax.swing.ImageIcon getImage(int index, boolean enabled, java.lang.String[] defaultImageIconNames)
          Get image specified by the index to an image name
 javax.swing.ImageIcon getImage(int index, java.lang.String[] defaultImageIconNames)
          Get image specified by the index to an image name
 java.lang.String getImageName(int index)
          Get image resource string at given index
 int imageCount()
          Number of image strings defined in set
 java.lang.String toString()
          Generate string representation of object
 void UpdateUsingShadowRecord(byte[] rec, int rec_off, int rec_len)
          Update object using shadow record created by the the engine object which is matched with this class.
 
Methods inherited from class com.tivoli.twg.engine.TWGConObject
AllObjects, AllObjects, Delete, DeleteObjects, DeregisterListener, FindObject, getBaseClassName, LookUpShadowClass, ObjectID, ProcessUpdateRequest, RegisterListener, SetObjectID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TWGConImageSet

public TWGConImageSet(long obj_id)
               throws DuplicateObjectIDException
Constructor for TWGConImageSet with given object ID

Parameters:
obj_id - - object ID of console object
Throws:
DuplicateObjectIDException - if ID is duplicate of existing object ID
Method Detail

UpdateUsingShadowRecord

public void UpdateUsingShadowRecord(byte[] rec,
                                    int rec_off,
                                    int rec_len)
Update object using shadow record created by the the engine object which is matched with this class.

Specified by:
UpdateUsingShadowRecord in class TWGConObject
Parameters:
rec - - byte array containing opaque representation of shadowed attributes
rec_off - - offset of shadow record in byte array
rec_len - - length of shadow record in byte array

toString

public java.lang.String toString()
Generate string representation of object

Overrides:
toString in class TWGConObject
Returns:
string representation

getImageName

public java.lang.String getImageName(int index)
Get image resource string at given index

Parameters:
index - - index of resource string in set (base 0)
Returns:
resource string, or null if not defined or found

getImage

public javax.swing.ImageIcon getImage(int index)
Get image specified by the index to an image name

Parameters:
index - - index of image in set (base 0)
Returns:
ImageIcon object

getImage

public javax.swing.ImageIcon getImage(int index,
                                      java.lang.String[] defaultImageIconNames)
Get image specified by the index to an image name

Parameters:
index - - index of image in set (base 0)
defaultImageIconNames - - a string array containing the names of the default image icon set.
Returns:
ImageIcon object

getImage

public javax.swing.ImageIcon getImage(int index,
                                      boolean enabled)
Get image specified by the index to an image name

Parameters:
index - - index of image in set (base 0)
enabled - - True if task image is rendered enabled, false if task image is rendered disabled (opaque).
Returns:
ImageIcon object

getImage

public javax.swing.ImageIcon getImage(int index,
                                      boolean enabled,
                                      java.lang.String[] defaultImageIconNames)
Get image specified by the index to an image name

Parameters:
index - - index of image in set (base 0)
enabled - - True if task image is rendered enabled, false if task image is rendered disabled (opaque).
Returns:
ImageIcon object

imageCount

public int imageCount()
Number of image strings defined in set

Returns:
number of image strings