|
|||||||||||
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.TWGConfigPanelBeans
Persistent engine object used to hold definitions of sets of configuration panels to be made available in the configuration notebook on the Director WorkGroup console. Each instance consists of an ordered set of one or more panels, each of which contains a tab label and the class name for a Java Bean to be used to define the given panel.
Field Summary | |
---|---|
static int |
DISCOVERY_CFG_BEAN
High order bit we set in the sorting weight to indicate which preference dialog to add the bean to. |
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 | |
---|---|
TWGConfigPanelBeans()
Default constructor : used during restore |
|
TWGConfigPanelBeans(java.lang.String inst_id,
int sort_wt,
java.lang.String nls_bndl,
java.lang.String[] tab_lbls,
java.lang.String[] panel_beans)
Constructor for new ConfigPanelBeans instance |
|
TWGConfigPanelBeans(java.lang.String inst_id,
int sort_wt,
java.lang.String nls_bndl,
java.lang.String[] tab_lbls,
java.lang.String[] panel_beans,
boolean disc_pref)
Constructor for new ConfigPanelBeans instance |
Method Summary | |
---|---|
void |
Delete()
Delete method : remove from our list |
static TWGConfigPanelBeans |
getConfigPanelBeans(java.lang.String inst_id)
Find existing instance by instance ID |
java.lang.String |
GetConShadowClass()
Get name of console shadow class. |
java.lang.String |
getPanelBean(int index)
Get bean classname |
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 |
getTabCount()
Get number of tabs and panels |
java.lang.String |
getTabLabel(int index,
java.util.Locale loc)
Get tab label (using given locale) |
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 |
setDiscoveryPanelPreferred(boolean disc_pref)
Set Discovery panel preference |
void |
setNLSBundle(java.lang.String bndl)
Set NLS bundle |
void |
setTabsAndBeans(java.lang.String[] tab_lbls,
java.lang.String[] bean_names)
Replace tab labels and bean names with new values |
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 |
Field Detail |
public static final int DISCOVERY_CFG_BEAN
Constructor Detail |
public TWGConfigPanelBeans(java.lang.String inst_id, int sort_wt, java.lang.String nls_bndl, java.lang.String[] tab_lbls, java.lang.String[] panel_beans) throws TWGPersistentObjectSaveException
inst_id
- - unique instance IDsort_wt
- - ordering weight for this bean versus others :
panels are ordered from lowest to highest sort weightnls_bndl
- - base classname for NLS bundle (null if none)tab_lbls
- - list of tab labels (or resource IDs for tab labels,
if nls_bndl is non-null)panel_beans
- - list of bean classes for each panel
TWGPersistentObjectSaveException
- if error creatingpublic TWGConfigPanelBeans(java.lang.String inst_id, int sort_wt, java.lang.String nls_bndl, java.lang.String[] tab_lbls, java.lang.String[] panel_beans, boolean disc_pref) throws TWGPersistentObjectSaveException
inst_id
- - unique instance IDsort_wt
- - ordering weight for this bean versus others :
panels are ordered from lowest to highest sort weightnls_bndl
- - base classname for NLS bundle (null if none)tab_lbls
- - list of tab labels (or resource IDs for tab labels,
if nls_bndl is non-null)panel_beans
- - list of bean classes for each paneldisc_pref
- - if true, show panel(s) in discovery preference dialog,
otherwise panel(s) are shown in server preference dialog.
TWGPersistentObjectSaveException
- if error creatingpublic TWGConfigPanelBeans()
Method Detail |
public void Delete()
Delete
in class TWGObject
public static TWGConfigPanelBeans getConfigPanelBeans(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 getTabLabel(int index, java.util.Locale loc)
index
- - index of requestloc
- - locale of request
public void setTabsAndBeans(java.lang.String[] tab_lbls, java.lang.String[] bean_names)
tab_lbls
- - new tab labels (or string IDs, if nls bundle defined)bean_names
- - new bean namespublic void setNLSBundle(java.lang.String bndl)
bndl
- - bundle namepublic void setDiscoveryPanelPreferred(boolean disc_pref)
disc_pref
- - true if should be in discovery panel, false if notpublic int getTabCount()
public java.lang.String getPanelBean(int index)
index
- - index of bean to request
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |