|
||||||||||
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.HWMBasePanel
com.altair.hwm.beans.hm.HMSelect
public class HMSelect
Title: HMSelect
Description: This bean allows the user to select a given entity in HyperMesh
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 |
ENTITY_ELEMENTS
The type of entity to select is "elements" |
static java.lang.String |
ENTITY_NODES
The type of entity to select is "nodes" |
static java.lang.String |
ENTITY_SURFACES
The type of entity to select is "surfaces" |
static int |
METH_SELECT
Methods ids that fire HWMCmdEvent |
static java.lang.String |
PROP_ENTITY_TYPE
The name for the entity type property |
static java.lang.String |
PROP_RESULT_STR
The name for the result (all selected entities represented as a single line of text) property |
static java.lang.String |
PROP_RESULT_VECT
The name for the result (as a vector of Strings with each entity selected represented as a string ) property |
static java.lang.String |
PROP_SELECTION_SCOPE
The name for the selection scope property |
static java.lang.String |
PROP_SELECTION_TYPE
The name for the selection type property |
static java.lang.String |
PROP_SESSION_NAME
The property name for the session name used to communicate with HyperMesh |
static java.lang.String |
SELECT_ALL
The scope for selection is "all". |
static java.lang.String |
SELECT_DISPLAYED
The scope for selection is "displayed". |
static java.lang.String |
SELECT_USER
The scope for selection is "selected". |
static java.lang.String |
VERSION
The version ID for this component |
Fields inherited from class com.altair.hwm.beans.utils.HWMBasePanel |
---|
BASE_VERSION |
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 | |
---|---|
HMSelect()
Constructor |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent actionEvt)
Handler for the event fired when the "Select" btn is clicked or when the entity type is selected in the combo box |
void |
Disable()
Disables the UI |
void |
Enable()
Enables the UI |
java.lang.String |
GetEntityLabel()
Gets the label for "Entity type" combo box |
java.lang.String |
GetEntityType()
Gets the selected entity type. |
java.util.Vector |
GetParsedResult()
Returns the parsed result |
java.lang.String |
GetResult()
Returns the result received from Hypermesh as is |
java.lang.String |
GetSelectBtnLabel()
Gets the label for the select button |
java.lang.String |
GetSelectionLabel()
Gets the the label "Selection type" combo box |
java.lang.String |
GetSelectionType()
Gets the selection type. |
java.lang.String |
GetSessionName()
Returns the session name for HM communication |
void |
readExternal(java.io.ObjectInput objInput)
Loads the version and then calls the appropriate read function for the version |
void |
ReadProperties()
Get the required properties from the datamodel and initialize self |
void |
SaveProperties()
Save the required properties in the datamodel (so that they persist) |
void |
Select()
Sends a command to scale and then queries for selected items |
void |
setEnabled(boolean bEnable)
Enables/disable the UI |
void |
SetEntityLabel(java.lang.String strLabelName)
Sets the label for "Entity type" combo box |
void |
SetEntityType(java.lang.String strEntityName)
Sets entity type. |
void |
SetFrameWork(IHWMFrameWork hwmFrameWork)
Overrides the IHWMControl's SetHWMFrameWork to create all the necessary hm bean's comm classes |
void |
SetSelectBtnLabel(java.lang.String strLabelName)
Sets the label for the select button |
void |
SetSelectionLabel(java.lang.String strLabelName)
Sets the the label "Selection type" combo box |
void |
SetSelectionType(java.lang.String strScope)
Sets the selection type. |
void |
SetSessionName(java.lang.String strSessionName)
Sets the session name for HM communication |
void |
writeExternal(java.io.ObjectOutput objOutput)
Save the persistent properties |
Methods inherited from class com.altair.hwm.beans.utils.HWMBasePanel |
---|
addHWMCmdEventListener, GetBeanName, GetFrameWork, HWMEventCallback, OnExit, Play, removeHWMCmdEventListener, Run, setBackground, SetBeanName, setFont, setForeground |
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, 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, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, 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 VERSION
public static final java.lang.String PROP_SESSION_NAME
public static final java.lang.String PROP_SELECTION_TYPE
public static final java.lang.String PROP_SELECTION_SCOPE
public static final java.lang.String PROP_ENTITY_TYPE
public static final java.lang.String PROP_RESULT_STR
public static final java.lang.String PROP_RESULT_VECT
public static final int METH_SELECT
public static final java.lang.String SELECT_ALL
public static final java.lang.String SELECT_DISPLAYED
public static final java.lang.String SELECT_USER
public static final java.lang.String ENTITY_SURFACES
public static final java.lang.String ENTITY_ELEMENTS
public static final java.lang.String ENTITY_NODES
Constructor Detail |
---|
public HMSelect()
Method Detail |
---|
public void SetFrameWork(IHWMFrameWork hwmFrameWork)
SetFrameWork
in interface IHWMControl
SetFrameWork
in class HWMBasePanel
hwmFrameWork
- The interface which allows the communication
between beans and the container framepublic void SaveProperties()
SaveProperties
in class HWMBasePanel
public void ReadProperties()
ReadProperties
in class HWMBasePanel
public void writeExternal(java.io.ObjectOutput objOutput) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class HWMBasePanel
objOutput
- The stream to which data will be written
java.io.IOException
public void readExternal(java.io.ObjectInput objInput) throws java.lang.ClassNotFoundException, java.io.IOException
readExternal
in interface java.io.Externalizable
readExternal
in class HWMBasePanel
objInput
- The stream from which data will be read
IOException,
- ClassNotFoundException
java.lang.ClassNotFoundException
java.io.IOException
public void Select()
public void actionPerformed(java.awt.event.ActionEvent actionEvt)
actionPerformed
in interface java.awt.event.ActionListener
actionEvt
- The action event object(See java docs for help)public java.util.Vector GetParsedResult()
public java.lang.String GetResult()
public void SetSessionName(java.lang.String strSessionName)
strSessionName
- The session name for HM Commpublic java.lang.String GetSessionName()
public void SetEntityType(java.lang.String strEntityName)
strEntityName
- The entity type to selectpublic java.lang.String GetEntityType()
public void SetSelectionType(java.lang.String strScope)
strScope
- selection typepublic java.lang.String GetSelectionType()
public void SetEntityLabel(java.lang.String strLabelName)
strLabelName
- Label for "Entity type" combo boxpublic java.lang.String GetEntityLabel()
public void SetSelectionLabel(java.lang.String strLabelName)
strLabelName
- Label "Selection type" combo boxpublic java.lang.String GetSelectionLabel()
public void SetSelectBtnLabel(java.lang.String strLabelName)
strLabelName
- Label for the select buttonpublic java.lang.String GetSelectBtnLabel()
public void Enable()
Enable
in class HWMBasePanel
public void Disable()
Disable
in class HWMBasePanel
public void setEnabled(boolean bEnable)
setEnabled
in class javax.swing.JComponent
bEnable
- If true the UI is enabled else disabled
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |