|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
com.jidesoft.docking.DefaultDockableHolder
com.jidesoft.action.DefaultDockableBarDockableHolder
com.jidesoft.templates.SampleFrame
com.altair.hwm.guilibrary.AltairJFrame
com.altair.hwm.toolkit.frame.HWMFrameView
com.altair.hwm.toolkit.frame.HWMAppFrameView
public class HWMAppFrameView
Title: HWMAppFrameView
Description: The main frame view class for the run mode of EPIC
Company: Altair Engineering, Inc.
Field Summary |
---|
Fields inherited from class javax.swing.JFrame |
---|
EXIT_ON_CLOSE |
Fields inherited from class java.awt.Frame |
---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
HWMAppFrameView()
Constructor |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent actEvt)
The listener for all action events |
void |
ClearAll()
|
void |
CloseInstance(boolean bSave,
boolean bAskUser)
Close the currently active process instance. |
void |
CloseTemplate()
Close the template |
void |
CloseTemplate(boolean bSave,
boolean bPromptUser)
Close the template |
void |
CopyInstance()
Create a new instance as a copy of an existing instance |
void |
CreateInstance()
Create a new process instance. |
void |
CreateInstance(java.lang.String strProjectFile)
Create a new process instance. |
void |
CreateInstancePrivate(java.lang.String strProjectFile)
Create a new process instance in the given location. |
void |
EventPerformed(HWMToolkitEvent eventToolkit)
The toolkit event listener |
void |
Exit()
Exit the application. |
void |
Exit(java.lang.Object objSrc,
boolean bSave,
boolean bPromptUser)
Exit the application. |
java.awt.Component |
GetMainFrame()
Get the main component (Frame or Window) for this application |
java.io.File |
GetWorkspace()
Returns the workspace location |
void |
InitializeView(java.lang.String[] arrstrArgs)
Initialize the UI |
static void |
main(java.lang.String[] arrstrArgs)
The main method for the app mode of EPIC |
HWMModelInstance |
NewFile(java.io.File filePrj)
Create the given prj file |
void |
OnAbout()
Shows the about dialog |
boolean |
OnExit(java.lang.Object objSrc,
boolean bSave,
boolean bPromptUser)
Callback for the File-Exit button. |
void |
OnPlay()
Play/Execute the entire process from the beginning |
void |
OnPlayFromCurrent()
Play/Execute the entire process from the current task |
void |
OnRunStop()
Stop the execution/play of the process |
void |
OnServerExit(int nCode)
The interface method for the security listener - com.altair.hw.common.HWSEventListener |
HWMModelInstance |
OpenFile(java.lang.String strFileName)
Opens the given prj file |
void |
OpenInstance()
Open an existing process instance. |
void |
OpenInstance(java.lang.String strProjectFile)
Open the specified process instance. |
void |
ProcessCmdLineArgs(java.lang.String[] arrstrArgs)
Process the cmd args. |
void |
propertyChange(java.beans.PropertyChangeEvent propChgEvt)
Fired when any property changes |
void |
SaveAsInstance(java.lang.String fileName,
boolean bShowDialog)
Save the current active instance as a new one. |
void |
SaveAsIntance(java.lang.String fileCurrInstanceName)
SaveAsInstance.. |
void |
SaveInstance()
Save an existing process instance. |
void |
SetDefaultTemplate(java.lang.String strNewPMTemplate,
boolean bShowNewOpenDialog)
Set the default template as strNewPMTemplate. |
void |
ShowCreateOrOpenPrjDlg()
Shows the create/open prj dlg |
void |
ShowView(boolean bShow)
This shows/hides the application's view. |
void |
ShowWorkflow(boolean bShow)
Shows or hides workflow view |
void |
StartPreview(java.lang.String[] arrstrArgs)
Shows this app in preview mode |
Methods inherited from class com.altair.hwm.toolkit.frame.HWMFrameView |
---|
AddMessageToDebugLog, AddMessageToMessageLog, BringToFront, ClearDebugLog, ClearMessageLog, GetFrameModel, getImageFullPath, getImageIconDir, LogStatus, OnStart, ShowHelpForWorkflow, ShowMessageLog |
Methods inherited from class com.jidesoft.templates.SampleFrame |
---|
load, load |
Methods inherited from class com.jidesoft.action.DefaultDockableBarDockableHolder |
---|
dispose, getDockableBarManager, getJMenuBar, getLayoutPersistence |
Methods inherited from class com.jidesoft.docking.DefaultDockableHolder |
---|
getDockingManager, setLayout |
Methods inherited from class javax.swing.JFrame |
---|
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, update |
Methods inherited from class java.awt.Frame |
---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.awt.Window |
---|
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.altair.hwm.interfaces.IHWMFrame |
---|
AddMessageToDebugLog, AddMessageToMessageLog, ShowMessageLog |
Methods inherited from interface com.jidesoft.docking.DockableHolder |
---|
getDockingManager |
Methods inherited from interface java.awt.MenuContainer |
---|
getFont, postEvent |
Constructor Detail |
---|
public HWMAppFrameView()
Method Detail |
---|
public void InitializeView(java.lang.String[] arrstrArgs)
InitializeView
in class HWMFrameView
arrstrArgs
- The cmd line arguments for the app modepublic void StartPreview(java.lang.String[] arrstrArgs) throws java.lang.Exception
arrstrArgs
- The cmd line arguments for the app mode
java.lang.Exception
public void ShowView(boolean bShow)
ShowView
in class HWMFrameView
bShow
- If true, the view is shown else hiddenpublic void ShowWorkflow(boolean bShow)
bShow
- True to show workflow, false to hidepublic void ProcessCmdLineArgs(java.lang.String[] arrstrArgs) throws java.lang.Exception
arrstrArgs
- The array of strings representing the cmd line args
java.lang.Exception
public HWMModelInstance OpenFile(java.lang.String strFileName)
strFileName
- The prj file name
public HWMModelInstance NewFile(java.io.File filePrj) throws java.io.IOException, java.lang.Exception
filePrj
- The prj file to create
throws
- IOException, Exception
java.io.IOException
java.lang.Exception
public void ShowCreateOrOpenPrjDlg()
public java.io.File GetWorkspace() throws java.lang.Exception
java.lang.Exception
public void OnAbout()
public void OnPlay()
public void OnPlayFromCurrent()
public void OnRunStop()
public boolean OnExit(java.lang.Object objSrc, boolean bSave, boolean bPromptUser)
OnExit
in class HWMFrameView
objSrc
- The src for this call. If its the PM interaction class,
then we need to send an ack which will tell if its quitting
or not. Else we need to send PmgrCloseInstance signal to itbSave
- If true the pmt/prj savedbPromptUser
- If true, the user is prompted whether he wants to
save the project/process definition and the bSave flag is ignored.
public void ClearAll()
ClearAll
in class HWMFrameView
public void actionPerformed(java.awt.event.ActionEvent actEvt)
actionPerformed
in interface java.awt.event.ActionListener
public void EventPerformed(HWMToolkitEvent eventToolkit)
EventPerformed
in interface HWMToolkitEventListener
EventPerformed
in class HWMFrameView
eventToolkit
- The event object for toolkit eventspublic void propertyChange(java.beans.PropertyChangeEvent propChgEvt)
propertyChange
in interface java.beans.PropertyChangeListener
public void OnServerExit(int nCode)
OnServerExit
in interface com.altair.hw.common.HWSEventListener
nCode
- The error code.public void CreateInstance() throws java.lang.Exception
CreateInstance
in interface IHWMFrame
java.lang.Exception
public void CreateInstance(java.lang.String strProjectFile) throws java.lang.Exception
CreateInstance
in interface IHWMFrame
strProjectFile
- The project file name
java.lang.Exception
public void CreateInstancePrivate(java.lang.String strProjectFile) throws java.lang.Exception
strProjectFile
- The project file name
java.lang.Exception
public void OpenInstance() throws java.lang.Exception
OpenInstance
in interface IHWMFrame
java.lang.Exception
public void OpenInstance(java.lang.String strProjectFile) throws java.lang.Exception
OpenInstance
in interface IHWMFrame
strProjectFile
- The full path to the instance file to open
java.lang.Exception
public void CloseInstance(boolean bSave, boolean bAskUser) throws java.lang.Exception
CloseInstance
in interface IHWMFrame
java.lang.Exception
public void SaveInstance() throws java.lang.Exception
SaveInstance
in interface IHWMFrame
java.lang.Exception
public java.awt.Component GetMainFrame()
GetMainFrame
in interface IHWMFrame
public void Exit() throws java.lang.Exception
Exit
in interface IHWMFrame
java.lang.Exception
public void Exit(java.lang.Object objSrc, boolean bSave, boolean bPromptUser) throws java.lang.Exception
objSrc
- The src for this call. If its the PM interaction class,
then we need to send an ack which will tell if its quitting
or not. Else we need to send PmgrCloseInstance signal to itbSave
- If true the pmt/prj savedbPromptUser
- If true, the user is prompted whether he wants to
save the project/process definition and the bSave flag is ignored.
java.lang.Exception
public void CloseTemplate() throws java.lang.Exception
CloseTemplate
in interface IHWMFrame
java.lang.Exception
public void CloseTemplate(boolean bSave, boolean bPromptUser) throws java.lang.Exception
CloseTemplate
in interface IHWMFrame
bSave
- If true, the prj is saved. It is ignored when the user
needs to be promptedbPromptUser
- Prompt the user with a save dialog
java.lang.Exception
public void SetDefaultTemplate(java.lang.String strNewPMTemplate, boolean bShowNewOpenDialog) throws java.lang.Exception
SetDefaultTemplate
in interface IHWMFrame
strNewPMTemplate
- The new process manager template to use.bShowNewOpenDialog
- If true, the dialog to create a project or
open a project is shown
java.lang.Exception
public static void main(java.lang.String[] arrstrArgs)
arrstrArgs
- The cmd line argspublic void SaveAsInstance(java.lang.String fileName, boolean bShowDialog) throws java.lang.Exception
SaveAsInstance
in interface IHWMFrame
java.lang.Exception
public void SaveAsIntance(java.lang.String fileCurrInstanceName) throws java.lang.Exception
fileCurrInstanceName
-
java.lang.Exception
public void CopyInstance()
CopyInstance
in interface IHWMFrame
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |