|
||||||||||
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
clarion.options.GuiTemplate
Nested Class Summary |
Nested classes inherited from class javax.swing.JFrame |
javax.swing.JFrame.AccessibleJFrame |
Nested classes inherited from class java.awt.Frame |
java.awt.Frame.AccessibleAWTFrame |
Nested classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
protected int |
activeButtonIdx
|
protected javax.swing.JLabel |
capLabel
|
protected java.lang.String |
capLabelText
GUI components in the interface of configuration. |
protected static boolean[][] |
configFlags
inidicate whether an agent has been already configured by the options: CLARION and Task Specific. |
protected static javax.swing.JButton |
confirmButton
|
protected boolean |
confirmFlag
flag for confirmation of the configuration. |
protected int |
curAgentIdx
current index of agent requiring configuration. |
protected static int |
currentSettingNum
current number of configurations for a particular task. |
protected static int |
currentTaskNum
current number of tasks simulated so far. |
protected static Global[] |
globals
the associated global settings of each running agent. |
protected javax.swing.JButton |
loadSettingButton
|
protected javax.swing.JTextField |
loadSettingField
|
protected javax.swing.JMenuItem[] |
loadSettingItem
|
protected javax.swing.JPopupMenu |
loadSettingMenu
|
protected java.lang.String |
loadSettingName
the name of the loaded task configuration. |
protected javax.swing.JMenuItem[] |
loadTaskItem
|
protected javax.swing.JPopupMenu |
loadTaskMenu
|
protected static java.lang.String |
loadTaskName
the name of the loaded task. |
protected javax.swing.JFrame |
mainFrame
|
protected java.lang.String |
majorEntryText
text indicates main interface of CLARION configuration. |
protected static TransferManager |
manager
the variable in charge of laoding and saving configuration. |
protected java.lang.String[] |
newSettingNames
the names of all setting groups for a loaded task. |
protected java.lang.String[] |
newTaskNames
the names of all currently simulated task. |
protected javax.swing.JButton |
nextButton
|
protected java.lang.String |
note
|
protected javax.swing.JPanel |
operatePanel
|
protected int |
OPT_NUM
number of components in the subsystem needing configuration. |
protected javax.swing.JButton[] |
optButtons
|
protected java.lang.String[] |
optionButtonTexts
GUI components in the interface of configuration. |
protected javax.swing.JPanel |
optionPanel
|
protected javax.swing.JButton |
returnButton
|
protected static int |
runningAgentNum
the number of agents running simultaneously. |
protected javax.swing.JButton |
saveButton
|
protected javax.swing.JTextField |
saveField
|
protected java.lang.String |
taskSpecEntryText
text indicates main interface of Task-Specific configuration. |
protected javax.swing.JFrame |
thisFrame
|
Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
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 | |
GuiTemplate(int optNum,
java.lang.String labelText)
constructor. |
|
GuiTemplate(int optNum,
java.lang.String labelText,
Global[] globals)
constructor. |
Method Summary | |
void |
addActionListeners(javax.swing.JFrame mFrame)
add action listeners. |
java.lang.String[] |
getButtonTexts()
Returns the names of components in this subsystem. |
javax.swing.JFrame |
getFrame()
Returns this GUI frame. |
java.lang.String |
getLabelText()
Returns caption. |
void |
init(javax.swing.JFrame frame)
the routine of initializing this configuration GUI. |
boolean |
isConfirmed(int configPart,
int agentIdx)
Returns if current configuration is confirmed or not. |
protected void |
processLoad()
|
void |
resetConfigFlags()
Returns if current configuration is confirmed or not. |
void |
returnFrom()
the routine of processing the changes when returning from other GUIs. |
void |
setButtonTexts(java.lang.String[] strings)
Sets the names of the components in this subsystem. |
void |
setConfirmStatus(boolean changeFlag)
Sets the confirm status. |
void |
setCurAgentIdx(int agentIdx)
Sets the index of current agent requiring configuration. |
void |
setGlobals(Global[] globals)
Sets the global settings associated with the running agents. |
void |
setLabelText(java.lang.String str)
Sets the caption. |
void |
setMainFrame(javax.swing.JFrame frame)
|
void |
setRunningAgentNum(int num)
Sets the index of current agent requiring configuration. |
void |
setTaskName(java.lang.String name)
Sets the task name. |
void |
updateGui()
Updates this GUI. |
Methods inherited from class javax.swing.JFrame |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.awt.Window |
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, 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, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
action, 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, 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, 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, isOpaque, 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, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Field Detail |
protected final java.lang.String majorEntryText
protected final java.lang.String taskSpecEntryText
protected final java.lang.String note
protected java.lang.String[] newTaskNames
protected java.lang.String[] newSettingNames
protected static int currentTaskNum
protected static int currentSettingNum
protected static java.lang.String loadTaskName
protected static int runningAgentNum
protected static boolean[][] configFlags
protected static Global[] globals
protected boolean confirmFlag
protected int curAgentIdx
protected java.lang.String loadSettingName
protected int OPT_NUM
protected java.lang.String capLabelText
protected java.lang.String[] optionButtonTexts
protected javax.swing.JLabel capLabel
protected javax.swing.JFrame mainFrame
protected javax.swing.JFrame thisFrame
protected javax.swing.JPanel optionPanel
protected javax.swing.JPanel operatePanel
protected javax.swing.JButton loadSettingButton
protected javax.swing.JButton saveButton
protected static javax.swing.JButton confirmButton
protected javax.swing.JButton nextButton
protected javax.swing.JButton returnButton
protected javax.swing.JButton[] optButtons
protected javax.swing.JTextField loadSettingField
protected javax.swing.JTextField saveField
protected javax.swing.JPopupMenu loadTaskMenu
protected javax.swing.JPopupMenu loadSettingMenu
protected javax.swing.JMenuItem[] loadTaskItem
protected javax.swing.JMenuItem[] loadSettingItem
protected int activeButtonIdx
protected static TransferManager manager
Constructor Detail |
public GuiTemplate(int optNum, java.lang.String labelText)
optNum
- number of components in the subsystem needing configuration.labelText
- the caption label.public GuiTemplate(int optNum, java.lang.String labelText, Global[] globals)
optNum
- number of components in the subsystem needing configuration.labelText
- the caption label.globals
- the assoiciated global settings with the running agents.Method Detail |
public void resetConfigFlags()
public boolean isConfirmed(int configPart, int agentIdx)
public javax.swing.JFrame getFrame()
public java.lang.String getLabelText()
public java.lang.String[] getButtonTexts()
public void setCurAgentIdx(int agentIdx)
agentIdx
- the index of agent to set.public void setRunningAgentNum(int num)
num
- the number of agents to set.public void setGlobals(Global[] globals)
globals
- the array of global settings to set.public void setLabelText(java.lang.String str)
str
- the caption to set.public void setConfirmStatus(boolean changeFlag)
changeFlag
- indicates if any option is change or not.public void setButtonTexts(java.lang.String[] strings)
strings
- the names to set.public void setTaskName(java.lang.String name)
name
- the task name to set.public void setMainFrame(javax.swing.JFrame frame)
public void init(javax.swing.JFrame frame)
public void addActionListeners(javax.swing.JFrame mFrame)
public void returnFrom()
public void updateGui()
protected void processLoad()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |