|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.altair.hwm.beans.utils.HWMListBox
public class HWMListBox
Title: HWMListBox
Description: A listboc bean. Very similar to the JListBox, with additional functionality that the user can specify the entries in the listbox as properties of the bean
Company: Altair Engineering, Inc.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Field Summary | |
---|---|
static java.lang.String |
MULTIPLE_SELECTION
|
static java.lang.String |
PROP_ACTIONSCRIPT
|
static java.lang.String |
PROP_ENABLE
|
static java.lang.String |
PROP_LIST_ENTRY
List of property names for this bean for which propertyChange event will be fired |
static java.lang.String |
PROP_SELECTION_TYPE
|
static java.lang.String |
PROP_TOOLTIP
|
static java.lang.String |
PROP_VALUE
|
static java.lang.String |
PROP_VISIBLE
|
static java.lang.String |
SINGLE_SELECTION
|
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
HWMListBox()
Constructor |
|
HWMListBox(java.lang.Object[] arrobjItems)
Constructor which takes an array of objects as parameter |
|
HWMListBox(java.util.Vector vectItems)
Constructor which takes vector of items |
Method Summary | |
---|---|
void |
Disable()
Providing "Disable" method rather than overriding java's "disable" method because of the following reasons: 1> disable is deprecated 2> It does nothing visually for some controls like button 3> setEnabled calls enable/disable in the base class once it changes the UI. |
void |
Enable()
Providing "Enable" method rather than overriding java's "enable" method because of the following reasons: 1> enable is deprecated 2> It does nothing visually for some controls like button 3> setEnabled calls enable/disable in the base class once it changes the UI. |
HWMActionScript |
GetActionScript()
Get the Java Script |
java.lang.String |
GetBeanName()
Get the name of this bean (the name was assigned by the EPIC framework) |
java.util.Vector |
GetEntries()
Gets the items listed in the combo box |
IHWMFrameWork |
GetFrameWork()
Returns the interface using which a bean can communicate directly with the HWM application. |
java.util.Vector |
GetSelectedValues()
Sets the string to be selected. |
java.lang.String |
GetSelectionType()
|
java.lang.String |
getToolTipText()
Returns the tooltip for the button. |
void |
HWMEventCallback(HWMEvent hwmEvent)
This method is called when the execution of a method succeeds |
void |
jbInit()
Advise for the even which is fired when an item is selected |
void |
OnExit()
Invoked by the HWM application when the bean is being destroyed. |
void |
OnItemSelected()
When an item is selected, this event is fired |
void |
Play()
The play method needs to execute the functionaliy. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
This method gets called when a bound property is changed. |
void |
readExternal(java.io.ObjectInput objInput)
Reads the properties of the bean |
void |
ReadProperties()
Get the required properties from the datamodel and initialize self |
void |
Run()
Invoked by the HWM application when all the beans are loaded and the application can run. |
void |
SaveProperties()
Save the required properties in the datamodel (so that they persist) |
void |
SetActionScript(HWMActionScript hwmScript)
Set the Java Script |
void |
SetBeanName(java.lang.String strBeanName)
Set the name of the bean |
void |
setEnabled(boolean bEnableState)
Enables the component so that items can be selected. |
void |
SetEntries(java.util.Vector vecItems)
Sets the list of items in the combobox |
void |
SetEntries(java.util.Vector vecItems,
boolean bUpdateDataModel)
Sets the list of items in the combobox |
void |
SetFrameWork(IHWMFrameWork hwmFrameWork)
This method is called by the HWM Application to set the interface with which a bean can communicate directly with the HWM application. |
void |
SetSelectedValues(java.util.Vector vectSelectedObjs)
Sets the string to be selected. |
void |
SetSelectionType(java.lang.String selType)
|
void |
setToolTipText(java.lang.String strToolTip)
Sets the tooltip for the component. |
void |
setVisible(boolean bVisibleState)
Makes the component visible or invisible. |
java.lang.String |
TCLCreateAdditionalEventProcs()
This method rerurns the TCL statement string for any additional procedures that is requred for the bean. |
java.lang.String |
TCLCreateExec()
This method returns the TCL statement string that performs the execution of script associated with the bean. |
java.lang.String |
TCLCreateGetDataFromDataModel()
This method returns the TCL statement string that gets the data in the datamodel. |
java.lang.String |
TCLCreateMemberVariables()
This method returns the TCL statement string for all the memeber variables referred by the bean in question. |
java.lang.String |
TCLCreateOnDataModelChanged()
This method returns the TCL statement string that implements the functionlaity requred to handle the "OnDataModelChanged" event. |
java.lang.String |
TCLCreateSetDataInDataModel()
This method returns the TCL statement string that sets the data in the datamodel. |
java.lang.String |
TCLCreateUI()
This method returns the TCL statement string for creating the GUI for the bean in question. |
void |
valueChanged(javax.swing.event.ListSelectionEvent event)
Called when the selection in the list changes |
void |
writeExternal(java.io.ObjectOutput objOutput)
Writes the properties of the bean |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setTransferHandler, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROP_LIST_ENTRY
public static final java.lang.String PROP_VALUE
public static final java.lang.String PROP_ENABLE
public static final java.lang.String PROP_VISIBLE
public static final java.lang.String PROP_ACTIONSCRIPT
public static final java.lang.String PROP_TOOLTIP
public static final java.lang.String PROP_SELECTION_TYPE
public static final java.lang.String SINGLE_SELECTION
public static final java.lang.String MULTIPLE_SELECTION
Constructor Detail |
---|
public HWMListBox()
public HWMListBox(java.lang.Object[] arrobjItems)
arrobjItems
- Array of objects to be listed in the combo boxpublic HWMListBox(java.util.Vector vectItems)
vectItems
- Vector of objects to be listed in the combo boxMethod Detail |
---|
public void jbInit()
public java.lang.String GetSelectionType()
public void SetSelectionType(java.lang.String selType)
public void valueChanged(javax.swing.event.ListSelectionEvent event)
valueChanged
in interface javax.swing.event.ListSelectionListener
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
evt
- - A PropertyChangeEvent object describing the event source
and the property that has changed.public HWMActionScript GetActionScript()
public void SetActionScript(HWMActionScript hwmScript)
hwmScript
- The ActionScript instancepublic void OnItemSelected()
public void SetSelectedValues(java.util.Vector vectSelectedObjs)
strItem
- the string to be selectedpublic java.util.Vector GetSelectedValues()
strItem
- the string to be selectedpublic void SetEntries(java.util.Vector vecItems)
vecItems
- Vector of objects to be listed in the combo boxpublic void SetEntries(java.util.Vector vecItems, boolean bUpdateDataModel)
vecItems
- Vector of objects to be listed in the combo boxpublic java.util.Vector GetEntries()
public java.lang.String getToolTipText()
getToolTipText
in class javax.swing.JComponent
public void setToolTipText(java.lang.String strToolTip)
setToolTipText
in class javax.swing.JComponent
strToolTip
- Tooltip for the buttonpublic void setEnabled(boolean bEnableState)
setEnabled
in class javax.swing.JComponent
bEnableState
- - a boolean value, where true enables the component
and false disables itpublic void setVisible(boolean bVisibleState)
setVisible
in class javax.swing.JComponent
bVisibleState
- - true to make the component visiblepublic void Enable()
public void Disable()
public void SaveProperties()
public void ReadProperties()
public void writeExternal(java.io.ObjectOutput objOutput) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
objOutput
- ObjectOuput stream to which the properties are written
java.io.IOException
public void readExternal(java.io.ObjectInput objInput) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
objInput
- ObjectInput stream from which the properties are read
java.io.IOException
java.lang.ClassNotFoundException
public void HWMEventCallback(HWMEvent hwmEvent)
HWMEventCallback
in interface HWMEventListener
hwmEvent
- The event object that contains the event informationpublic void SetFrameWork(IHWMFrameWork hwmFrameWork)
SetFrameWork
in interface IHWMControl
hwmFrameWork
- The interface with which a bean can communicate with
the HWM application.public IHWMFrameWork GetFrameWork()
public void SetBeanName(java.lang.String strBeanName)
SetBeanName
in interface IHWMControl
strBeanName
- The name of this bean as the framework knows it to be.
Will be useful, if the bean chooses to scope its data in the datamodel -
especially if multiple instances of the same bean appear in the processpublic java.lang.String GetBeanName()
public void OnExit()
OnExit
in interface IHWMControl
public void Run()
Run
in interface IHWMControl
public void Play()
Play
in interface IHWMControl
public java.lang.String TCLCreateUI()
TCLCreateUI
in interface ITCLCodeCreator
public java.lang.String TCLCreateMemberVariables()
TCLCreateMemberVariables
in interface ITCLCodeCreator
public java.lang.String TCLCreateSetDataInDataModel()
TCLCreateSetDataInDataModel
in interface ITCLCodeCreator
public java.lang.String TCLCreateGetDataFromDataModel()
TCLCreateGetDataFromDataModel
in interface ITCLCodeCreator
public java.lang.String TCLCreateExec()
TCLCreateExec
in interface ITCLCodeCreator
public java.lang.String TCLCreateAdditionalEventProcs()
TCLCreateAdditionalEventProcs
in interface ITCLCodeCreator
public java.lang.String TCLCreateOnDataModelChanged()
TCLCreateOnDataModelChanged
in interface ITCLCodeCreator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |