|
||||||||||
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.HWMDsgnFrameView
public class HWMDsgnFrameView
Title: HWMDsgnFrameView
Description: The main frame view class for the builder mode of EPIC. This will be used for java based apps.
Company: Altair Engineering, Inc.
Field Summary | |
---|---|
boolean |
bFullScreenMode
|
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 | |
---|---|
HWMDsgnFrameView()
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 |
createAllDockableWindows()
|
void |
createAllTabbedWindows()
|
void |
CreateInstance()
Create a new process instance. |
void |
CreateInstance(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. |
java.awt.Component |
GetMainFrame()
Get the main component (Frame or Window) for this application |
void |
hyperlinkUpdate(javax.swing.event.HyperlinkEvent ev)
|
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 |
void |
NewFile(java.lang.String strFileName,
int nAppType)
Create the given process definition file |
boolean |
OnExit(java.lang.Object objSrc,
boolean bSave,
boolean bPromptUser)
Callback for the File-Exit button. |
void |
OnHelpTopics()
Show the pmgr HW help |
void |
OnPreviewEnded(java.awt.Frame frmApp)
Called when preview is ended |
void |
OnServerExit(int nCode)
The interface method for the security listener - com.altair.hw.common.HWSEventListener |
void |
OnStart()
This is called in InitializeView and by PM native to checkout license everytime we start studio. |
void |
OpenFile(java.lang.String strFileName)
Opens the give process definition 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)
|
void |
SaveInstance()
Save an existing process instance. |
void |
SetDefaultTemplate(java.lang.String strNewPMTemplate,
boolean bShowNewOpenDialog)
Set the default template as strNewPMTemplate. |
void |
showHelpInBrowser(java.lang.String filename)
|
void |
showPropertyView()
show property view |
Methods inherited from class com.altair.hwm.toolkit.frame.HWMFrameView |
---|
AddMessageToDebugLog, AddMessageToMessageLog, BringToFront, ClearDebugLog, ClearMessageLog, GetFrameModel, getImageFullPath, getImageIconDir, LogStatus, ShowHelpForWorkflow, ShowMessageLog, ShowView |
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 |
Field Detail |
---|
public boolean bFullScreenMode
Constructor Detail |
---|
public HWMDsgnFrameView() throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public void InitializeView(java.lang.String[] arrstrArgs)
InitializeView
in class HWMFrameView
arrstrArgs
- The cmd line arguments for the app modepublic void showPropertyView()
public void createAllDockableWindows() throws java.lang.Exception
java.lang.Exception
public void createAllTabbedWindows() throws java.lang.Exception
java.lang.Exception
public void ProcessCmdLineArgs(java.lang.String[] arrstrArgs) throws java.lang.Exception
arrstrArgs
- The array of strings representing the cmd line args
Exception<
java.lang.Exception
public void OnPreviewEnded(java.awt.Frame frmApp)
frame
- The app frame viewpublic void OpenFile(java.lang.String strFileName)
strFileName
- The file to openpublic void NewFile(java.lang.String strFileName, int nAppType)
strFileName
- The file to createnAppType
- The type of application - Can be one of
HWMModelInstance.APPTYPE_XXXpublic 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[In case the user selects to cancel the close
operation. 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 OnHelpTopics()
public void showHelpInBrowser(java.lang.String filename)
filename
- 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 OnStart() throws java.lang.Exception
OnStart
in class HWMFrameView
java.lang.Exception
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 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 SaveInstance() throws java.lang.Exception
SaveInstance
in interface IHWMFrame
java.lang.Exception
public void CloseInstance(boolean bSave, boolean bAskUser) throws java.lang.Exception
CloseInstance
in interface IHWMFrame
java.lang.Exception
public void CloseTemplate()
CloseTemplate
in interface IHWMFrame
public void CloseTemplate(boolean bSave, boolean bPromptUser)
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 void Exit() throws java.lang.Exception
Exit
in interface IHWMFrame
java.lang.Exception
public java.awt.Component GetMainFrame()
GetMainFrame
in interface IHWMFrame
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
java.lang.Exception
public void CopyInstance()
CopyInstance
in interface IHWMFrame
public void hyperlinkUpdate(javax.swing.event.HyperlinkEvent ev)
hyperlinkUpdate
in interface javax.swing.event.HyperlinkListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |