|
||||||||||
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.toolkit.page.HWMPage
public class HWMPage
Title: HWMPage
Description: The class accepts beans dropped onto it and is the starting point for building a task in the workflow.
Company: Altair Engineering, Inc.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Field Summary | |
---|---|
java.lang.String |
PAGE_IMAGE_FILE
|
java.lang.String |
PAGE_IMAGE_FILE_VISIBILITY
|
static java.lang.String |
PAGE_VERSION
The version # for this class |
static java.lang.String |
PROP_PAGE_ID
|
static java.lang.String |
PROP_PAGE_NAME
Properties for which events are fired |
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 | |
---|---|
HWMPage(HWMModelInstance hwmModelInstance)
Constructor |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener propListener)
Add a property change listener |
void |
AddToolkitEventListener(HWMToolkitEventListener toolkitListener)
Add a toolkit event listener |
void |
DeleteAllBeans()
Deletes all beans from the vector of beans and clears the page. |
void |
DeleteBean(int beanId)
|
void |
EventPerformed(HWMToolkitEvent evtToolkit)
The toolkit event listener method |
void |
ExportTCL(java.io.BufferedWriter fwriter)
Exports the current page. |
java.util.Vector |
GetAllBeanInstances()
Get all the bean instances in this page |
java.util.Vector |
GetAllBeans()
Get all the beans in this page |
HWMPageConstraints[] |
GetAllPageConstraints()
Get the array of Page constraints (layout constraint of each bean in the page) |
HWMBeanInstance |
GetBeanInstance(int nBeanID)
Finds the HWMBeanInstance object for a bean on this page by ID |
java.lang.Object |
GetBeanObject(int nBeanID)
Finds a bean on the page by ID |
void |
GetBeanObjects(java.lang.String strInstanceName,
java.util.Vector vectBeans)
Get the bean object(s) with the given instance name |
java.lang.String |
GetImageOnPage()
|
java.lang.String |
GetImageVisibilityOnPage()
gives you the image visibility status on from page.. |
int |
GetPageID()
Returns the page id |
java.lang.String |
GetPageName()
Returns the page name |
java.awt.Dimension |
getPreferredSize()
Returns the preferred size |
void |
InitBeans(IHWMFrameWork iFrameWork)
Initializes all the beans on this page. |
void |
InvokePlay()
Inokes Play on all the IHWMControl beans on this page. |
void |
InvokeRun()
Inokes Run on all the IHWMControl beans on this page. |
boolean |
IsBeanInPage(java.lang.Object objBean)
Checks if the bean is in the page |
void |
LoadProject(HWMObjectInputStream inStream)
Retrieve the project file. |
void |
OnMigrateProject(HWMPage hwmPgOldDefPrj,
HWMPage hwmPgOldPrj)
Migrates the prj to a new template. |
void |
paint(java.awt.Graphics graphics)
|
void |
ReadVersion1_0(HWMObjectInputStream inStream)
Retrieve the project file. |
void |
ReadVersion2_0(HWMObjectInputStream inStream)
Retrieve the project file. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener propListener)
Remove a property change listener |
void |
RemoveToolkitEventListener(HWMToolkitEventListener toolkitListener)
Remove a property change listener |
void |
SaveProject(java.io.ObjectOutputStream outStream)
Save the project file. |
void |
SetImageOnPage(java.lang.String imageFilename)
sets the image on page as background.... |
void |
SetImageVisibilityOnPage(java.lang.String imageVisiblity)
set the image visibility status on page.... |
void |
SetPageID(int nPageID)
Sets the page id |
void |
SetPageName(java.lang.String szPageName)
Sets the page name |
java.lang.String |
toString()
Returns the name of the page |
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, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, 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, setEnabled, setFocusTraversalKeys, setFont, setForeground, 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, 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, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, 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_PAGE_NAME
public static final java.lang.String PROP_PAGE_ID
public java.lang.String PAGE_IMAGE_FILE
public java.lang.String PAGE_IMAGE_FILE_VISIBILITY
public static final java.lang.String PAGE_VERSION
Constructor Detail |
---|
public HWMPage(HWMModelInstance hwmModelInstance)
Method Detail |
---|
public void paint(java.awt.Graphics graphics)
paint
in class javax.swing.JComponent
public void InitBeans(IHWMFrameWork iFrameWork)
iFrameWork
- The frame work interfacepublic void InvokeRun()
public void InvokePlay()
public void SetPageID(int nPageID)
nPageID
- The new page idpublic int GetPageID()
public void SetPageName(java.lang.String szPageName)
szPageName
- The new page newpublic java.lang.String GetPageName()
public java.lang.String GetImageOnPage()
public void SetImageOnPage(java.lang.String imageFilename)
imageFilename
- public java.lang.String GetImageVisibilityOnPage()
public void SetImageVisibilityOnPage(java.lang.String imageVisiblity)
imageVisiblity
- public void OnMigrateProject(HWMPage hwmPgOldDefPrj, HWMPage hwmPgOldPrj) throws java.io.IOException, java.lang.ClassNotFoundException, java.beans.IntrospectionException, java.lang.InstantiationException, java.lang.IllegalAccessException
hwmPgOldDefPrj
- The page that was loaded from the old template's
default projecthwmPgOldPrj
- The page that was loaded from the project that
should migrate to the new template
IntrospectionException,
- InstantiationException,
IllegalAccessException
java.io.IOException
java.lang.ClassNotFoundException
java.beans.IntrospectionException
java.lang.InstantiationException
java.lang.IllegalAccessException
public java.lang.Object GetBeanObject(int nBeanID)
nBeanID
- The id of the beanpublic java.util.Vector GetAllBeans()
public boolean IsBeanInPage(java.lang.Object objBean)
objBean
- The bean object
public java.util.Vector GetAllBeanInstances()
public HWMBeanInstance GetBeanInstance(int nBeanID)
nBeanID
- The id of the beanpublic void GetBeanObjects(java.lang.String strInstanceName, java.util.Vector vectBeans)
strInstanceName
- The bean instance namevectBeans
- (Return) The vector to which the bean objects (with the
given instance name) will be addedpublic void DeleteAllBeans()
public void DeleteBean(int beanId)
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class javax.swing.JComponent
public HWMPageConstraints[] GetAllPageConstraints()
public java.lang.String toString()
toString
in class java.awt.Component
public void ExportTCL(java.io.BufferedWriter fwriter) throws java.lang.Exception
outStream
- -- The stream to "export" to
java.lang.Exception
public void SaveProject(java.io.ObjectOutputStream outStream) throws java.io.IOException
outStream
- -- The stream to "serialize" to
java.io.IOException
public void LoadProject(HWMObjectInputStream inStream) throws java.io.IOException, java.lang.ClassNotFoundException, java.beans.IntrospectionException, java.lang.InstantiationException, java.lang.IllegalAccessException
inStream
- -- The stream to read from
IOException,
- ClassNotFoundException, IntrospectionException,
InstantiationException, IllegalAccessException
java.io.IOException
java.lang.ClassNotFoundException
java.beans.IntrospectionException
java.lang.InstantiationException
java.lang.IllegalAccessException
public void ReadVersion2_0(HWMObjectInputStream inStream) throws java.io.IOException, java.lang.ClassNotFoundException, java.beans.IntrospectionException, java.lang.InstantiationException, java.lang.IllegalAccessException
inStream
- -- The stream to read from
IOException,
- ClassNotFoundException, IntrospectionException,
InstantiationException, IllegalAccessException
java.io.IOException
java.lang.ClassNotFoundException
java.beans.IntrospectionException
java.lang.InstantiationException
java.lang.IllegalAccessException
public void ReadVersion1_0(HWMObjectInputStream inStream) throws java.io.IOException, java.lang.ClassNotFoundException, java.beans.IntrospectionException, java.lang.InstantiationException, java.lang.IllegalAccessException
inStream
- -- The stream to read from
IOException,
- ClassNotFoundException, IntrospectionException,
InstantiationException, IllegalAccessException
java.io.IOException
java.lang.ClassNotFoundException
java.beans.IntrospectionException
java.lang.InstantiationException
java.lang.IllegalAccessException
public void EventPerformed(HWMToolkitEvent evtToolkit)
EventPerformed
in interface HWMToolkitEventListener
evtToolkit
- public void addPropertyChangeListener(java.beans.PropertyChangeListener propListener)
addPropertyChangeListener
in class java.awt.Container
propListener
- The property change listener objectpublic void removePropertyChangeListener(java.beans.PropertyChangeListener propListener)
removePropertyChangeListener
in class java.awt.Component
propListener
- The property change listener objectpublic void AddToolkitEventListener(HWMToolkitEventListener toolkitListener)
The
- toolkit event listener objectpublic void RemoveToolkitEventListener(HWMToolkitEventListener toolkitListener)
The
- toolkit event listener object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |