|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGObject
com.tivoli.twg.engine.TWGPersistentObject
com.tivoli.twg.engine.TWGContentInfoBeans
Persistent engine object used to hold definitions of a new type of information to be made available in the contents pane under a managed object in the Director console. Each instance consists of the name of type of information (to be used in the menu for selection) passed as a key into a resource bundle (also specified), and two class names which serve as the handlers for the content info. One is the event handler for dealing with user interaction with the content info objects, the other is the handler used for providing the content info objects that appear on the console. Interaction between the content info bean, the console and the object handler is via commands.
TWGContentInfoEventHandler
,
TWGContentInfoObjectHandler
,
ActDeactContentInfoCmd
,
GetContentInfoCmd
,
UpdateContentInfoCmd
Field Summary |
---|
Fields inherited from class com.tivoli.twg.engine.TWGPersistentObject |
---|
CLASS_NAME, SIZEOF_BYTE, SIZEOF_CHAR, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_SHORT |
Constructor Summary | |
---|---|
TWGContentInfoBeans()
Default constructor : used during restore |
|
TWGContentInfoBeans(java.lang.String inst_id,
int sort_wt,
java.lang.String nls_bndl,
java.lang.String menu_lbl,
java.lang.String obj_hndlr_name,
java.lang.String evt_hndlr_name)
Constructor for new ContentInfoBeans instance |
Method Summary | |
---|---|
void |
activeConsoleChanged(TWGActiveConsole console,
int state)
Called by the active console when the console is logged off. |
void |
addConsoleToViewList(long act_con)
Add the console specific to this bean's list of consoles using this view. |
void |
Delete()
Delete method : remove from our list |
java.lang.String |
GetConShadowClass()
Get name of console shadow class. |
static TWGContentInfoBeans |
getContentInfoBeans(java.lang.String inst_id)
Find existing instance by instance ID |
java.lang.String |
getContentInfoEventHandler()
Get the classname of the content info event handler. |
java.lang.String |
getContentInfoObjectHandler()
Get the classname of the content info object handler. |
java.lang.String |
getMenuLabel(java.util.Locale loc)
Get menu label (using given locale) |
byte[] |
GetShadowRecord(java.util.Locale locale)
Get buffer containing current values of the shadowed attributes to be delivered to the console shadow class. |
long |
GetShadowVersion()
Get object state version. |
int |
getSortingWeight()
Get the menu weighting factor of the content info bean. |
static void |
handleActDeactContentInfoCmd(Command cmd)
Command handler for activate/deactivate content info command |
static void |
handleGetContentInfoCmd(Command cmd)
Command handler for get content info command |
static void |
handleUpdateContentInfoCmd(Command cmd)
Command handler for update content info command |
boolean |
isViewActive()
Check if this bean's task association view is active. |
void |
removeConsoleFromViewList(long act_con)
Remove the specific console from this bean's list of consoles using this view. |
protected void |
restoreData(TWGPersistentObjectDictionary dictionary,
boolean resolveObjectReferences)
Method for restoring persistent object data. |
protected void |
saveData(TWGPersistentObjectDictionary dictionary)
Method for saving persistent object data. |
void |
setContentHandlers(java.lang.String obj_hndlr,
java.lang.String evt_hndlr)
Replace object handler class and event handler class with new classes |
void |
setMenuLabel(java.lang.String menu_lbl)
Replace menu label with new value |
void |
setNLSBundle(java.lang.String bndl)
Set NLS bundle |
void |
UpdateShadowVersion()
Update object state version. |
Methods inherited from class com.tivoli.twg.engine.TWGPersistentObject |
---|
Destroy, enableAsyncWrites, fromPersistID, initialize, isNewPersistentStore, isSaveRequired, PersistID, restore, restoreAll, save, save, setSaveRequired, terminate, toPersistID |
Methods inherited from class com.tivoli.twg.engine.TWGObject |
---|
AllObjects, AllObjects, DumpTWGObjects, FindObject, isDeleted, isNewObject, isPersistent, isPersistent, isValid, isValid, ObjectID, setDistinctObjectID, SetObjectID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TWGContentInfoBeans(java.lang.String inst_id, int sort_wt, java.lang.String nls_bndl, java.lang.String menu_lbl, java.lang.String obj_hndlr_name, java.lang.String evt_hndlr_name) throws TWGPersistentObjectSaveException
inst_id
- - unique instance IDsort_wt
- - ordering weight for this bean versus others :
menu items are ordered from lowest to highest sort weightnls_bndl
- - base classname for NLS bundle (null if none)menu_lbl
- - menu text (or resource ID for menu text, if
nls_bndl is non-null)obj_hndlr_name
- - handler class for providing content info objectsevt_hndlr_name
- - handler class for interacting with content info user events
TWGPersistentObjectSaveException
- if error creatingpublic TWGContentInfoBeans()
Method Detail |
public void Delete()
Delete
in class TWGObject
public static TWGContentInfoBeans getContentInfoBeans(java.lang.String inst_id)
inst_id
- - instance ID to find
protected void saveData(TWGPersistentObjectDictionary dictionary) throws TWGPersistentObjectSaveException
saveData
in class TWGPersistentObject
TWGPersistentObjectSaveException
- thrown to abort save procedure.protected void restoreData(TWGPersistentObjectDictionary dictionary, boolean resolveObjectReferences) throws TWGPersistentObjectRestoreException
restoreData
in class TWGPersistentObject
resolveObjectReferences
- used to indicate if object references should be
resolved during restore.
TWGPersistentObjectRestoreException
- thrown to abort restore procedure.public void UpdateShadowVersion()
UpdateShadowVersion
in interface TWGBaseShadowedObject
public long GetShadowVersion()
GetShadowVersion
in interface TWGBaseShadowedObject
public java.lang.String GetConShadowClass()
GetConShadowClass
in interface TWGBaseShadowedObject
public byte[] GetShadowRecord(java.util.Locale locale)
GetShadowRecord
in interface TWGBaseShadowedObject
locale
- - Locale of requested data
public java.lang.String getMenuLabel(java.util.Locale loc)
loc
- - locale of request
public void setMenuLabel(java.lang.String menu_lbl)
menu_lbl
- - new menu label (or string ID, if nls bundle defined)public void setContentHandlers(java.lang.String obj_hndlr, java.lang.String evt_hndlr)
obj_hndlr
- - new object handler class nameevt_hndlr
- - new event handler class namepublic void setNLSBundle(java.lang.String bndl)
bndl
- - bundle namepublic java.lang.String getContentInfoObjectHandler()
public java.lang.String getContentInfoEventHandler()
public int getSortingWeight()
public void addConsoleToViewList(long act_con)
act_con
- The active console id for the console using the task
association view for this bean.public void removeConsoleFromViewList(long act_con)
act_con
- The active console id for the console that no longer
displays the task association view for this bean.public boolean isViewActive()
public void activeConsoleChanged(TWGActiveConsole console, int state)
activeConsoleChanged
in interface TWGActiveConsoleListener
console
- Instance of the TWGActiveConsole that is being closed.state
- Flag indicating is the console was opened or closed.public static void handleActDeactContentInfoCmd(Command cmd)
cmd
- - command requestedpublic static void handleGetContentInfoCmd(Command cmd)
cmd
- - command requestedpublic static void handleUpdateContentInfoCmd(Command cmd)
cmd
- - command requested
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |