public class MainWindow
extends javax.swing.JFrame
| Modifier and Type | Class and Description |
|---|---|
class |
MainWindow.JToolBarButton
The Class JToolBarButton.
|
static class |
MainWindow.WorkbenchMenu |
javax.swing.JFrame.AccessibleJFramejava.awt.Window.AccessibleAWTWindow, java.awt.Window.Type| Modifier and Type | Field and Description |
|---|---|
javax.swing.JRadioButtonMenuItem |
viewDeveloper |
javax.swing.JRadioButtonMenuItem |
viewEndUser |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabledCROSSHAIR_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_CURSORBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT| Constructor and Description |
|---|
MainWindow()
Constructor of this class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addJMenu(javax.swing.JMenu myMenu)
This method can be used in order to add an individual menu.
|
void |
addJMenu(javax.swing.JMenu myMenu,
java.lang.Integer indexPosition)
This method can be used in order to add an individual menu at a specified index position of the menu bar.
|
void |
addJMenuItemComponent(javax.swing.JMenu menu2add,
javax.swing.JComponent myMenuItemComponent)
This method can be used in order to add an individual JMmenuItem to the given menu.
|
void |
addJMenuItemComponent(javax.swing.JMenu menu2add,
javax.swing.JComponent myMenuItemComponent,
int indexPosition)
This method can be used in order to add an individual JMmenuItem at a specified index position of the given menu.
|
void |
addJToolbarComponent(javax.swing.JComponent myComponent)
This method can be used in order to add an individual menu button to the toolbar.
|
void |
addJToolbarComponent(javax.swing.JComponent myComponent,
java.lang.Integer indexPosition)
This method can be used in order to add an individual menu button a specified index position of the toolbar.
|
void |
enableSetupSelector(boolean enable)
Enable/Disables the SetupSelector in the toolbar.
|
javax.swing.JDesktopPane |
getJDesktopPane4Projects() |
javax.swing.JMenu |
getJMenuMainExtra()
This method returns the current instance of the menu "Extra".
|
javax.swing.JMenu |
getJMenuMainHelp()
This method returns the current instance of the menu "Help".
|
javax.swing.JMenu |
getJMenuMainJade()
This method returns the current instance of the menu "JADE".
|
javax.swing.JMenu |
getJMenuMainProject()
This method returns the current instance of the menu "Project".
|
javax.swing.JMenu |
getJMenuMainSimulation()
This method returns the current instance of the menu "MAS".
|
javax.swing.JMenu |
getJMenuMainView()
This method returns the current instance of the menu "View".
|
javax.swing.JMenu |
getJMenuMainWindow()
Gets the JMenu main window.
|
JTabbedPane4Consoles |
getJTabbedPane4Console() |
javax.swing.JToolBar |
getJToolBarApplication()
Returns the main JToolBar of the application window.
|
SetupSelectorToolbar |
getSetupSelectorToolbar()
Gets the setup selector toolbar.
|
MainWindowStatusBar |
getStatusBar()
Gets the status bar.
|
boolean |
isConsoleVisible()
AwbConsole is visible.
|
boolean |
isEnabledSimPause()
Checks if is enabled sim pause.
|
boolean |
isEnabledSimStart()
Checks if is enabled sim start.
|
boolean |
isEnabledSimStop()
Checks if is enabled sim stop.
|
void |
removeJToolbarComponent(javax.swing.JComponent myComponent)
This method removes a menu button from the toolbar.
|
void |
restoreFocus()
This method sets back the focus to this JFrame.
|
void |
setCloseButtonPosition(boolean setVisible)
Sets the close button position.
|
void |
setEnableSimPause(boolean enable)
Sets the enable sim pause.
|
void |
setEnableSimStart(boolean enable)
Sets the enable sim start.
|
void |
setEnableSimStop(boolean enable)
Sets the enable sim stop.
|
void |
setLookAndFeelUpdated()
Here the 'look and feel' LnF of java Swing can be set.
|
void |
setSimulationReady2Start()
Sets the simulation ready2 start.
|
void |
setStatusBarMessage(java.lang.String message)
Sets a text in the applications status bar.
|
void |
setStatusJadeRunning(boolean isRunning)
Sets the indicator in order to visul inform that JADE is running or not (red or green button in the right corner of the status bar + text).
|
void |
setTitelAddition(java.lang.String add2BasicTitel)
This method is used if a project is open.
|
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFrontadd, 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, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, 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, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic javax.swing.JRadioButtonMenuItem viewDeveloper
public javax.swing.JRadioButtonMenuItem viewEndUser
public MainWindowStatusBar getStatusBar()
public void setTitelAddition(java.lang.String add2BasicTitel)
add2BasicTitel - the new titel additionpublic void setStatusBarMessage(java.lang.String message)
message - the new status barpublic void setStatusJadeRunning(boolean isRunning)
isRunning - the new status jade runningpublic void setLookAndFeelUpdated()
newLnF - the new look and feelpublic boolean isConsoleVisible()
public void restoreFocus()
public JTabbedPane4Consoles getJTabbedPane4Console()
public javax.swing.JDesktopPane getJDesktopPane4Projects()
public void addJMenu(javax.swing.JMenu myMenu,
java.lang.Integer indexPosition)
myMenu - the my menuindexPosition - the index positionpublic void addJMenu(javax.swing.JMenu myMenu)
myMenu - the my menupublic void addJMenuItemComponent(javax.swing.JMenu menu2add,
javax.swing.JComponent myMenuItemComponent,
int indexPosition)
menu2add - the menu2addmyMenuItemComponent - the my menu item componentindexPosition - the index positionpublic void addJMenuItemComponent(javax.swing.JMenu menu2add,
javax.swing.JComponent myMenuItemComponent)
menu2add - the menu2addmyMenuItemComponent - the my menu item componentpublic javax.swing.JMenu getJMenuMainProject()
public javax.swing.JMenu getJMenuMainView()
public javax.swing.JMenu getJMenuMainJade()
public javax.swing.JMenu getJMenuMainSimulation()
public javax.swing.JMenu getJMenuMainExtra()
public javax.swing.JMenu getJMenuMainWindow()
public javax.swing.JMenu getJMenuMainHelp()
public void setCloseButtonPosition(boolean setVisible)
setVisible - the new close button positionpublic javax.swing.JToolBar getJToolBarApplication()
public SetupSelectorToolbar getSetupSelectorToolbar()
public void enableSetupSelector(boolean enable)
enable - the enablepublic void addJToolbarComponent(javax.swing.JComponent myComponent)
myComponent - the my componentpublic void addJToolbarComponent(javax.swing.JComponent myComponent,
java.lang.Integer indexPosition)
myComponent - the my componentindexPosition - the index positionpublic void removeJToolbarComponent(javax.swing.JComponent myComponent)
myComponent - the my componentpublic boolean isEnabledSimStart()
public void setEnableSimStart(boolean enable)
enable - the new enable sim startpublic boolean isEnabledSimPause()
public void setEnableSimPause(boolean enable)
enable - the new enable sim pausepublic boolean isEnabledSimStop()
public void setEnableSimStop(boolean enable)
enable - the new enable sim stoppublic void setSimulationReady2Start()