Class ExecTool
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.sun.javatest.tool.Tool
com.sun.javatest.exec.ExecTool
- All Implemented Interfaces:
BasicSession.OrderedObserver, ExecModel, Session.Observer, ImageObserver, MenuContainer, Serializable, Accessible
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Tool
Tool.ObserverNested classes/interfaces inherited from class JPanel
JPanel.AccessibleJPanelNested classes/interfaces inherited from class JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
Fields inherited from class JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCauses a series of actions to be performed to complete configuration.static ContextManagervoiddispose()Release any resources this tool may be referencing.Get the test result table currently in use for display.Get a list of any test suites that are being used by this tool.Get the menu bar for a tool.protected JToolBargetUIF()protected voidinitGUI()booleanReturns true if the model is in the configuration stage, user is either selecting work directory or editing configuration.booleanintorder()BasicSession.OrderedObserver interface method.voidvoidprotected voidRestore information about a tool from a map, and configure the tool according this information.voidrunTests()Invoked after QSWvoidRun specified tests.protected voidSave information about a tool in a map, so that the tool can be restored in a later invocation of JT Harness.voidsetVisible(boolean f) voidsetWorkDir(WorkDirectory wd, boolean addToFileHistory) voidInvoked after QSWvoidshowConfigEditor(boolean runTests) Show the configuration editor for this tool, and optionally run the tests defined by the configuration when the editor is closed.voidshowMessage(ResourceBundle msgs, String key) voidvoidShow the configuration editor for this tool with current templatevoidshowWorkDirDialog(boolean allowTemplates) voidInvoked when manager orders to use new ipvoidupdate(WorkDirectory wd) Invoked when manager orders to use new wd.voidupdate(WorkDirectory wd, boolean updateConfig) Invoked when manager orders to use new wd.voidSession.Observer interface methodMethods inherited from class Tool
addObserver, getCloseAlerts, getCreationTime, getDesktop, getHelpBroker, getLoadedWorkDirectories, getManager, getShortTitle, getTitle, getToolDialogs, removeObserver, setHelp, setHelp, setHelpOnButton, setI18NTitle, setI18NTitle, setI18NTitle, setShortTitleMethods inherited from class JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods inherited from class JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, updateMethods inherited from class Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeMethods inherited from class Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Constructor Details
-
ExecTool
- Throws:
Session.Fault
-
-
Method Details
-
createContextManager
-
getUIF
-
getMenuBar
Description copied from class:ToolGet the menu bar for a tool. This should just contain the tool-specific menus. The desktop will automatically add and display the standard menus on the menu bar.- Specified by:
getMenuBarin classTool- Returns:
- a menu bar containing tool-specific menus
-
getToolBar
-
setVisible
public void setVisible(boolean f) - Overrides:
setVisiblein classJComponent
-
initGUI
protected void initGUI() -
save
Description copied from class:ToolSave information about a tool in a map, so that the tool can be restored in a later invocation of JT Harness. The tool must also implement the following methodpublic static Tool restore(Map m)which will be invoked to recreate the tool. -
restore
-
dispose
-
getTestSuite
- Specified by:
getTestSuitein interfaceExecModel
-
getLoadedTestSuites
Description copied from class:ToolGet a list of any test suites that are being used by this tool.- Overrides:
getLoadedTestSuitesin classTool- Returns:
- Array of 1 element - the current testSuite
-
getWorkDirectory
- Specified by:
getWorkDirectoryin interfaceExecModel
-
getInterviewParameters
- Specified by:
getInterviewParametersin interfaceExecModel
-
getFilterConfig
- Specified by:
getFilterConfigin interfaceExecModel
-
getContextManager
- Specified by:
getContextManagerin interfaceExecModel
-
getActiveTestResultTable
Description copied from interface:ExecModelGet the test result table currently in use for display. This value provides a temporary answer if the work directory does not exist yet. If a work directory is available, the query is forwarded to that object.- Specified by:
getActiveTestResultTablein interfaceExecModel- Returns:
- the test result table currently in use for display.
-
update
Invoked when manager orders to use new wd.- Parameters:
wd-- Throws:
Session.Fault- See Also:
-
update
Invoked when manager orders to use new wd.- Parameters:
wd- Work dir to update.updateConfig- - hint whether to reload the configuration from disk- Throws:
Session.Fault
-
update
Invoked when manager orders to use new ip- Parameters:
ip-- Throws:
Session.Fault
-
updated
Session.Observer interface method- Specified by:
updatedin interfaceSession.Observer- Parameters:
e-
-
order
public int order()BasicSession.OrderedObserver interface method.- Specified by:
orderin interfaceBasicSession.OrderedObserver
-
showWorkDirDialog
public void showWorkDirDialog(boolean allowTemplates) - Specified by:
showWorkDirDialogin interfaceExecModel
-
showConfigEditor
public void showConfigEditor(boolean runTests) Description copied from interface:ExecModelShow the configuration editor for this tool, and optionally run the tests defined by the configuration when the editor is closed.- Specified by:
showConfigEditorin interfaceExecModel- Parameters:
runTests- true if the tests should automatically be run when the user closes the configuration editor, and false otherwise.
-
showTemplateEditor
public void showTemplateEditor()Description copied from interface:ExecModelShow the configuration editor for this tool with current template- Specified by:
showTemplateEditorin interfaceExecModel
-
showConfigEditor
public void showConfigEditor()Invoked after QSW -
runTests
public void runTests()Invoked after QSW -
runTests
Description copied from interface:ExecModelRun specified tests. -
showMessage
- Specified by:
showMessagein interfaceExecModel
-
printSetup
public void printSetup()- Specified by:
printSetupin interfaceExecModel
-
print
-
setWorkDir
- Specified by:
setWorkDirin interfaceExecModel
-
configure
-
isConfiguring
public boolean isConfiguring()Description copied from interface:ExecModelReturns true if the model is in the configuration stage, user is either selecting work directory or editing configuration. One can relay on this method to disable/enable some actions.- Specified by:
isConfiguringin interfaceExecModel- Returns:
- true if configuring is in progress at the moment.
-
getExecToolManager
- Specified by:
getExecToolManagerin interfaceExecModel
-
showQuickStartWizard
public void showQuickStartWizard() -
isQuickStartWizardShowing
public boolean isQuickStartWizardShowing()
-