public class WDSPCGUI
extends javax.swing.JPanel
implements java.awt.event.ActionListener, java.awt.event.MouseListener, java.awt.event.WindowListener, javax.swing.event.TreeSelectionListener
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
(package private) javax.swing.JPanel |
bottom |
(package private) java.util.Vector<javax.swing.JFrame> |
frames |
(package private) javax.swing.JComboBox<java.lang.String> |
jcb_curwindows |
(package private) javax.swing.JComboBox<java.lang.String> |
jcb_frames |
(package private) javax.swing.JComboBox<java.lang.String> |
jcb_url |
(package private) javax.swing.JPanel |
middle |
(package private) javax.swing.JPanel |
middle1 |
(package private) javax.swing.JPanel |
middle2 |
(package private) javax.swing.JPanel |
statusPanel |
(package private) javax.swing.JPanel |
top |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
boolean |
addFrameRS(java.lang.String frameRS) |
boolean |
addFrameRSToCache(org.openqa.selenium.WebElement element,
java.lang.String frameXpath,
java.lang.String windowContext) |
java.lang.String |
appendFrameRS(java.lang.String rs) |
java.lang.String |
getFrameRS() |
boolean |
insertComponentInTree(org.openqa.selenium.WebElement element,
java.lang.String fullxpath,
java.lang.String parentNode) |
static void |
main(java.lang.String[] args)
Allows the view of the non-functioning GUI only.
|
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent arg0) |
void |
mouseExited(java.awt.event.MouseEvent arg0) |
void |
mousePressed(java.awt.event.MouseEvent arg0) |
void |
mouseReleased(java.awt.event.MouseEvent arg0) |
void |
setBackgroundBusy() |
void |
setBackgroundPrep() |
void |
setBackgroundReady() |
(package private) void |
setGUIForAfterResetFrameRS() |
(package private) void |
setGUIForReady() |
(package private) void |
setGUIForSearching() |
(package private) void |
setGUIForStart() |
(package private) void |
setGUIRunning() |
void |
setStatus(java.lang.String status,
java.awt.Color foreground) |
void |
updateData(SPCTreeNode pframe,
java.util.List<org.openqa.selenium.WebElement> data,
java.util.List<java.lang.String> xpaths) |
void |
updateWindows(java.lang.String[] titles) |
boolean |
useShortStrings() |
boolean |
useVisibleOnly() |
void |
valueChanged(javax.swing.event.TreeSelectionEvent arg0)
AUG 10, 2012 (Lei Wang) During getting the Recognition String according to a node's xpath,
try to get property value id and name of HTML element and set them to tree node.
|
void |
windowActivated(java.awt.event.WindowEvent arg0) |
void |
windowClosed(java.awt.event.WindowEvent arg0) |
void |
windowClosing(java.awt.event.WindowEvent arg0) |
void |
windowDeactivated(java.awt.event.WindowEvent arg0) |
void |
windowDeiconified(java.awt.event.WindowEvent arg0) |
void |
windowIconified(java.awt.event.WindowEvent arg0) |
void |
windowOpened(java.awt.event.WindowEvent arg0) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, setVisible, unregisterKeyboardAction, update
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, validateTree
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, 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, transferFocusBackward, transferFocusUpCycle
javax.swing.JComboBox<java.lang.String> jcb_curwindows
javax.swing.JComboBox<java.lang.String> jcb_url
javax.swing.JComboBox<java.lang.String> jcb_frames
javax.swing.JPanel top
javax.swing.JPanel middle
javax.swing.JPanel middle1
javax.swing.JPanel middle2
javax.swing.JPanel bottom
javax.swing.JPanel statusPanel
java.util.Vector<javax.swing.JFrame> frames
public WDSPCGUI(WDSPC spc)
public void setStatus(java.lang.String status, java.awt.Color foreground)
status
- text messageforeground
- Color, can be null.public void setBackgroundBusy()
public void setBackgroundPrep()
public void setBackgroundReady()
public boolean useVisibleOnly()
public boolean useShortStrings()
void setGUIForReady()
void setGUIForStart()
void setGUIForAfterResetFrameRS()
void setGUIForSearching()
void setGUIRunning()
public boolean addFrameRS(java.lang.String frameRS)
rs
- public java.lang.String getFrameRS()
public java.lang.String appendFrameRS(java.lang.String rs)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void updateData(SPCTreeNode pframe, java.util.List<org.openqa.selenium.WebElement> data, java.util.List<java.lang.String> xpaths)
pframe
- the Frame node for all web elements. Can be null.data
- xpaths
- public void updateWindows(java.lang.String[] titles)
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent arg0)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent arg0)
mouseExited
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent arg0)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent arg0)
mouseReleased
in interface java.awt.event.MouseListener
public void windowActivated(java.awt.event.WindowEvent arg0)
windowActivated
in interface java.awt.event.WindowListener
public void windowClosed(java.awt.event.WindowEvent arg0)
windowClosed
in interface java.awt.event.WindowListener
public void windowClosing(java.awt.event.WindowEvent arg0)
windowClosing
in interface java.awt.event.WindowListener
public void windowDeactivated(java.awt.event.WindowEvent arg0)
windowDeactivated
in interface java.awt.event.WindowListener
public void windowDeiconified(java.awt.event.WindowEvent arg0)
windowDeiconified
in interface java.awt.event.WindowListener
public void windowIconified(java.awt.event.WindowEvent arg0)
windowIconified
in interface java.awt.event.WindowListener
public void windowOpened(java.awt.event.WindowEvent arg0)
windowOpened
in interface java.awt.event.WindowListener
public boolean insertComponentInTree(org.openqa.selenium.WebElement element, java.lang.String fullxpath, java.lang.String parentNode)
public void valueChanged(javax.swing.event.TreeSelectionEvent arg0)
valueChanged
in interface javax.swing.event.TreeSelectionListener
public boolean addFrameRSToCache(org.openqa.selenium.WebElement element, java.lang.String frameXpath, java.lang.String windowContext)
public static void main(java.lang.String[] args)
args
- Copyright © SAS Institute. All Rights Reserved.