|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JTabbedPane edu.sdsc.inca.incat
public class incat
Nested Class Summary | |
---|---|
static class |
incat.IncatAgentClient
|
Nested classes/interfaces inherited from class javax.swing.JTabbedPane |
---|
javax.swing.JTabbedPane.AccessibleJTabbedPane, javax.swing.JTabbedPane.ModelListener |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected javax.swing.JDialog |
aboutDialog
|
protected edu.sdsc.inca.AgentClient |
ac
|
protected IncatEditMenu |
editMenu
|
protected IncatHelpBrowser |
helpBrowser
|
protected WrapConfig |
lastCommittedConfig
|
protected WrapConfig |
lastSavedConfig
|
protected java.lang.String |
path
|
protected IncatRepositoryTab |
repositoryTab
|
protected IncatResourceTab |
resourceTab
|
protected IncatSuiteTab |
suiteTab
|
protected java.awt.Frame |
waitDialog
|
protected java.awt.Label |
waitMessage
|
Fields inherited from class javax.swing.JTabbedPane |
---|
changeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUT |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
incat(edu.sdsc.inca.AgentClient ac,
java.lang.String path)
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent ae)
Responds to user GUI actions. |
protected void |
addOrEditListElement(boolean add)
An event method: either adds a new element to the selected list or edits the currently-selected element. |
protected void |
cloneListElement()
An event method: clones the currently-selected list element. |
protected static void |
createAndShowGUI(edu.sdsc.inca.AgentClient ac,
java.lang.String path)
Create the GUI and show it. |
protected void |
deleteListElement()
An event method: deletes the currently-selected list element. |
java.util.Properties[] |
getCatalog(java.lang.String repositoryUrl)
Retrieves a repository catalog from the agent. |
protected WrapConfig |
getConfig()
Gets the Inca configuration from the display. |
java.util.ArrayList |
getDescendants(WrapResource resource,
boolean includeSelf,
boolean leavesOnly)
Returns an ArrayList of resources included, recursively, in the member pattern of a resource. |
IncatEditMenu |
getEditMenu()
Returns the edit menu associcated with this incat GUI. |
WrapReporter[] |
getReporters()
Returns an array of all reporters defined in any repository. |
WrapResource |
getResource(java.lang.String name)
Returns the resource with a specified name, null if none. |
WrapResource[] |
getResources(boolean addHosts)
Returns an array of the resources shown in the resource tab. |
static void |
main(java.lang.String[] args)
|
protected void |
readFromAgent(boolean prompt)
Get configuration from the Agent and store it in lastCommittedConfig. |
protected boolean |
readFromFile(boolean prompt)
Get configuration from an XML file and store it in lastSavedConfig. |
void |
runSeries(WrapSeries s,
java.lang.String resource)
Ask the agent to run a series immediately. |
protected void |
setConfig(WrapConfig config)
Sets the display to represent a specified Inca configuration. |
void |
setEditMenu(IncatEditMenu menu)
Sets the edit menu associcated with this incat GUI. |
void |
setHelpSection(java.lang.String section)
Sets the help dialog to show a specified section. |
void |
showErrorMessage(java.lang.String message)
Informs the user of an error. |
protected void |
showWaitMessage(java.lang.String message)
Set the message in the incat wait dialog. |
void |
stateChanged(javax.swing.event.ChangeEvent e)
Invoked when the user clicks a tab. |
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
Transforms window closing into an action event. |
void |
windowDeactivated(java.awt.event.WindowEvent e)
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
|
void |
windowIconified(java.awt.event.WindowEvent e)
|
void |
windowOpened(java.awt.event.WindowEvent e)
|
protected void |
writeToAgent()
Sends the current configuration to the connected Agent. |
protected void |
writeToFile(boolean prompt)
Writes the current configuration to a file. |
Methods inherited from class javax.swing.JTabbedPane |
---|
add, add, add, add, add, addChangeListener, addTab, addTab, addTab, createChangeListener, fireStateChanged, getAccessibleContext, getBackgroundAt, getBoundsAt, getChangeListeners, getComponentAt, getDisabledIconAt, getDisplayedMnemonicIndexAt, getForegroundAt, getIconAt, getMnemonicAt, getModel, getSelectedComponent, getSelectedIndex, getTabCount, getTabLayoutPolicy, getTabPlacement, getTabRunCount, getTitleAt, getToolTipText, getToolTipTextAt, getUI, getUIClassID, indexAtLocation, indexOfComponent, indexOfTab, indexOfTab, insertTab, isEnabledAt, paramString, remove, remove, removeAll, removeChangeListener, removeTabAt, setBackgroundAt, setComponentAt, setDisabledIconAt, setDisplayedMnemonicIndexAt, setEnabledAt, setForegroundAt, setIconAt, setMnemonicAt, setModel, setSelectedComponent, setSelectedIndex, setTabLayoutPolicy, setTabPlacement, setTitleAt, setToolTipTextAt, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, 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, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, 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, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
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, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, 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, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected javax.swing.JDialog aboutDialog
protected edu.sdsc.inca.AgentClient ac
protected IncatEditMenu editMenu
protected IncatHelpBrowser helpBrowser
protected WrapConfig lastSavedConfig
protected WrapConfig lastCommittedConfig
protected java.lang.String path
protected IncatRepositoryTab repositoryTab
protected IncatResourceTab resourceTab
protected IncatSuiteTab suiteTab
protected java.awt.Frame waitDialog
protected java.awt.Label waitMessage
Constructor Detail |
---|
public incat(edu.sdsc.inca.AgentClient ac, java.lang.String path)
Method Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent ae)
actionPerformed
in interface java.awt.event.ActionListener
protected void addOrEditListElement(boolean add)
add
- whether to add a new elementprotected void cloneListElement()
protected void deleteListElement()
public java.util.Properties[] getCatalog(java.lang.String repositoryUrl)
repositoryUrl
- the URL of the repository
protected WrapConfig getConfig()
public java.util.ArrayList getDescendants(WrapResource resource, boolean includeSelf, boolean leavesOnly)
resource
- the resource to searchincludeSelf
- include the resource itself as a descendant?leavesOnly
- whether to return all descendants, or only those that
refer to hosts
public IncatEditMenu getEditMenu()
public WrapReporter[] getReporters()
public WrapResource getResource(java.lang.String name)
name
- the resource name
public WrapResource[] getResources(boolean addHosts)
addHosts
- whether to include in the returned value resources for the
member hosts of the resources shown
protected void readFromAgent(boolean prompt)
prompt
- indicates whether to prompt the user for an agent specprotected boolean readFromFile(boolean prompt)
prompt
- indicates whether to prompt the user for a file path
public void runSeries(WrapSeries s, java.lang.String resource)
s
- the series to runresource
- the name of the resource to run the series onprotected void setConfig(WrapConfig config)
config
- the Inca configurationpublic void setEditMenu(IncatEditMenu menu)
menu
- the GUI edit menupublic void setHelpSection(java.lang.String section)
section
- the help section to showpublic void showErrorMessage(java.lang.String message)
message
- the error messageprotected void showWaitMessage(java.lang.String message)
message
- the message to display, null for noneprotected void writeToAgent()
protected void writeToFile(boolean prompt)
prompt
- indicates whether to prompt the user for a file pathpublic void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
public void windowActivated(java.awt.event.WindowEvent e)
windowActivated
in interface java.awt.event.WindowListener
public void windowClosed(java.awt.event.WindowEvent e)
windowClosed
in interface java.awt.event.WindowListener
public void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated
in interface java.awt.event.WindowListener
public void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified
in interface java.awt.event.WindowListener
public void windowIconified(java.awt.event.WindowEvent e)
windowIconified
in interface java.awt.event.WindowListener
public void windowOpened(java.awt.event.WindowEvent e)
windowOpened
in interface java.awt.event.WindowListener
protected static void createAndShowGUI(edu.sdsc.inca.AgentClient ac, java.lang.String path)
ac
- client for Inca agent we should communicate withpath
- path to config file we should read/writepublic static void main(java.lang.String[] args)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |