com.tivoli.twg.alertmgr
Class TWGActionParmMultiSelList

java.lang.Object
  extended bycom.tivoli.twg.alertmgr.TWGActionParm
      extended bycom.tivoli.twg.alertmgr.TWGActionParmListBox
          extended bycom.tivoli.twg.alertmgr.TWGActionParmMultiSelList

public class TWGActionParmMultiSelList
extends TWGActionParmListBox

A class for designating that an Event Action parameter should take the form of a drop-down list of strings where multiple choices may be made.


Field Summary
 
Fields inherited from class com.tivoli.twg.alertmgr.TWGActionParmListBox
itemsBundle
 
Fields inherited from class com.tivoli.twg.alertmgr.TWGActionParm
ACTION_PARM_DROPDOWN, ACTION_PARM_FLOAT_SPINNER, ACTION_PARM_KEYED_DROPDOWN, ACTION_PARM_KEYED_MULTI_SEL_LIST, ACTION_PARM_LONG_SPINNER, ACTION_PARM_MULTI_SEL_LIST, ACTION_PARM_STRING_SPINNER, ACTION_PARM_STRING_TREE, ACTION_PARM_TEXTAREA, ACTION_PARM_TEXTBOX
 
Constructor Summary
TWGActionParmMultiSelList(IntelByteBuffer buf)
          Constructor for interpreting a provided IntelByteBuffer.
TWGActionParmMultiSelList(int index, java.lang.String label, java.lang.String labelBundle, java.lang.String sublabel, java.lang.String sublabelBundle, java.lang.String[] choices, java.lang.String choicesBundle)
          Constructor for a multi-select list of strings action parameter where no pre-selections are made.
TWGActionParmMultiSelList(int index, java.lang.String label, java.lang.String labelBundle, java.lang.String sublabel, java.lang.String sublabelBundle, java.lang.String[] choices, java.lang.String choicesBundle, int[] defaultChoices)
          Constructor for a multi-select list of strings action parameter where one or more pre-selections are made.
TWGActionParmMultiSelList(TWGActionParmMultiSelList apd)
          Copy constructor.
 
Method Summary
 java.awt.Component getGuiComponent()
          Get the graphical component associated with this TWGActionParm subclass.
 void saveValues(java.awt.Component list)
          Save the user customized value(s) of this action parameter.
 boolean wasModified(java.awt.Component list)
          Determine if the user modified the value(s) of this action parameter.
 
Methods inherited from class com.tivoli.twg.alertmgr.TWGActionParmListBox
getItem, getItemsBundle, getListOfItems, getListOfItems, getNumSelectedItems, getSelected, getSelectedItems, print, readTWGActionParmListBox, setItem, setItemsBundle, setListOfItems, setSelected, setSelectedItems, sizeOf, sizeOfHdr, sizeOfTWGActionParmListBox, toIntelByteBuffer, writeIntelByteBuffer, writeIntelByteBuffer
 
Methods inherited from class com.tivoli.twg.alertmgr.TWGActionParm
getCapturedValues, getCapturedValues, getIndex, getLabel, getLabel, getLabelBundle, getSubLabel, getSubLabel, getSubLabelBundle, readTWGActionParm, setIndex, setLabel, setLabel, setLabelBundle, setSubLabel, setSubLabel, setSubLabelBundle, setType, sizeOfTWGActionParm, traceString, traceValue, unwrap, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TWGActionParmMultiSelList

public TWGActionParmMultiSelList(int index,
                                 java.lang.String label,
                                 java.lang.String labelBundle,
                                 java.lang.String sublabel,
                                 java.lang.String sublabelBundle,
                                 java.lang.String[] choices,
                                 java.lang.String choicesBundle)
Constructor for a multi-select list of strings action parameter where no pre-selections are made.

Parameters:
index - Index of action parameter (used as a reference key)
label - Label (or associated bundle keyword if label bundle non-null).
choices - Array of choices presented to the user. Literal strings or associated bundle keywords if choices bundle non-null. array of choices presented to the user
choicesBundle - Bundle containing choices referenced choices keywords

TWGActionParmMultiSelList

public TWGActionParmMultiSelList(int index,
                                 java.lang.String label,
                                 java.lang.String labelBundle,
                                 java.lang.String sublabel,
                                 java.lang.String sublabelBundle,
                                 java.lang.String[] choices,
                                 java.lang.String choicesBundle,
                                 int[] defaultChoices)
Constructor for a multi-select list of strings action parameter where one or more pre-selections are made.

Parameters:
index - Index of action parameter (used as a reference key)
label - Label (or associated bundle keyword if label bundle non-null).
choices - Array of choices presented to the user. Literal strings or associated bundle keywords if choices bundle non-null. array of choices presented to the user
choicesBundle - Bundle containing choices referenced choices keywords
defaultChoices - Array of indices that reference the array of choices indicating pre-selected values.

TWGActionParmMultiSelList

public TWGActionParmMultiSelList(TWGActionParmMultiSelList apd)
Copy constructor.


TWGActionParmMultiSelList

public TWGActionParmMultiSelList(IntelByteBuffer buf)
Constructor for interpreting a provided IntelByteBuffer. Use the current offset and start ptrs within the provided IntelByteBuffer; upon return the buffer's offset ptr is advanced to reflect the number of bytes read.

Parameters:
buf - IntelByteBuffer from which data should be read
Method Detail

getGuiComponent

public java.awt.Component getGuiComponent()
Get the graphical component associated with this TWGActionParm subclass.

Specified by:
getGuiComponent in class TWGActionParmListBox
Returns:
Swing component this subclass uses to display the action parameter

saveValues

public void saveValues(java.awt.Component list)
Save the user customized value(s) of this action parameter.

Specified by:
saveValues in class TWGActionParmListBox
Parameters:
list - instance of the Swing component this subclass uses to display the action parameter

wasModified

public boolean wasModified(java.awt.Component list)
Determine if the user modified the value(s) of this action parameter.

Specified by:
wasModified in class TWGActionParmListBox
Parameters:
list - instance of the Swing component this subclass uses to display the action parameter