public class RunDolibarrPanel
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
RunDolibarrPanel(PopulateDolibarrDatabasePlugin populateDolibarrDatabasePlugin) |
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Element |
getElementByElementName(org.w3c.dom.Element parentElement,
java.lang.String clickType,
java.lang.String elementName,
java.lang.String parentElementName,
java.lang.String clickInstanceId) |
org.w3c.dom.Element |
getElementByTag(org.w3c.dom.Document document,
java.lang.String tagName,
int index) |
org.w3c.dom.Element |
getElementByTagAndAttributeValue(org.w3c.dom.Document document,
java.lang.String tagName,
java.lang.String attributeName,
java.lang.String attributeValue,
int index) |
org.w3c.dom.Element |
getElementByTagAndAttributeValue(org.w3c.dom.Element parentElement,
java.lang.String tagName,
java.lang.String attributeName,
java.lang.String attributeValue,
int index) |
org.w3c.dom.Element |
getElementByTagAndContent(org.w3c.dom.Document document,
java.lang.String tagName,
java.lang.String textContent,
int index) |
org.w3c.dom.Element |
getElementByTagAndContent(org.w3c.dom.Element parentElement,
java.lang.String tagName,
java.lang.String textContent,
int index) |
org.w3c.dom.Element |
getElementFromTable() |
java.util.List<org.w3c.dom.Element> |
getElementListByElementName(org.w3c.dom.Element parentElement,
java.lang.String clickType,
java.lang.String elementName,
java.lang.String parentElementName,
java.lang.String clickInstanceId)
get element list which satisfy the features (such as tag name and value, attribute name and value)
|
java.util.List<org.w3c.dom.Element> |
getElementListByTagAndAttributeValue(org.w3c.dom.Element parentElement,
java.lang.String tagName,
java.lang.String attributeName,
java.lang.String attributeValue)
get the element list in which each element's attribute value contains the input attributeValue,
e.g., if the value is qty, all the element on the page contain qty will be returned
|
java.util.List<org.w3c.dom.Element> |
getElementListByTagAndContent(org.w3c.dom.Element parentElement,
java.lang.String tagName,
java.lang.String textContent)
get the element list in which each element's tagName contains the input textContent, e.g., if the textContent is qty, all the element on the page contain qty will be returned
|
void |
loadURL(java.lang.String url) |
static void |
main(java.lang.String[] args) |
void |
polulateElement(org.w3c.dom.Element element,
java.lang.String type,
java.lang.String value) |
void |
printNodeInformation(org.w3c.dom.Node node) |
void |
setSelectionByIdAndContent(org.w3c.dom.Document document,
java.lang.String id,
java.lang.String textContent) |
void |
setValueById(org.w3c.dom.Document document,
java.lang.String id,
java.lang.String inputName,
java.lang.String inputValue) |
void |
setValueByTagAndAttributeValue(org.w3c.dom.Document document,
java.lang.String tagName,
java.lang.String attributeName,
java.lang.String attributeValue,
java.lang.String inputName,
java.lang.String inputValue,
int index) |
void |
setValueByTagAndAttributeValueContainment(org.w3c.dom.Document document,
java.lang.String tagName,
java.lang.String attributeName,
java.lang.String attributeValue,
java.lang.String inputName,
java.lang.String inputValue,
int index) |
void |
triggerClick(org.w3c.dom.Element element,
java.lang.String type) |
void |
updateRunningPanel(java.util.List<java.lang.String> clickList,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> clickInstanceVSElementNameVSValue) |
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
public RunDolibarrPanel(PopulateDolibarrDatabasePlugin populateDolibarrDatabasePlugin)
public void updateRunningPanel(java.util.List<java.lang.String> clickList, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> clickInstanceVSElementNameVSValue)
public void printNodeInformation(org.w3c.dom.Node node)
public org.w3c.dom.Element getElementByElementName(org.w3c.dom.Element parentElement, java.lang.String clickType, java.lang.String elementName, java.lang.String parentElementName, java.lang.String clickInstanceId)
public java.util.List<org.w3c.dom.Element> getElementListByElementName(org.w3c.dom.Element parentElement, java.lang.String clickType, java.lang.String elementName, java.lang.String parentElementName, java.lang.String clickInstanceId)
parentElement
- clickType
- elementName
- parentElementName
- clickInstanceId
- public void polulateElement(org.w3c.dom.Element element, java.lang.String type, java.lang.String value)
public void triggerClick(org.w3c.dom.Element element, java.lang.String type)
public org.w3c.dom.Element getElementByTag(org.w3c.dom.Document document, java.lang.String tagName, int index)
public org.w3c.dom.Element getElementFromTable()
public org.w3c.dom.Element getElementByTagAndContent(org.w3c.dom.Document document, java.lang.String tagName, java.lang.String textContent, int index)
document
- the DOM document of the pagetagName
- the tag name of the elementstextContent
- the text content of the elementsindex
- indicate which one (starting from 0) to choose if there a list of elements satisfying tag name and text contentpublic org.w3c.dom.Element getElementByTagAndContent(org.w3c.dom.Element parentElement, java.lang.String tagName, java.lang.String textContent, int index)
parentElement
- the parent elementtagName
- the tag name of the elementstextContent
- the text content of the elementsindex
- indicate which one (starting from 0) to choose if there a list of elements satisfying tag name and text contentpublic java.util.List<org.w3c.dom.Element> getElementListByTagAndContent(org.w3c.dom.Element parentElement, java.lang.String tagName, java.lang.String textContent)
parentElement
- the parent elementtagName
- the tag name of the elementstextContent
- the text content of the elementsindex
- indicate which one (starting from 0) to choose if there a list of elements satisfying tag name and text contentpublic org.w3c.dom.Element getElementByTagAndAttributeValue(org.w3c.dom.Document document, java.lang.String tagName, java.lang.String attributeName, java.lang.String attributeValue, int index)
document
- the DOM document of the pagetagName
- the tag name of the elementsattributeName
- a constraint attributeattributeValue
- the value of the constraint attributeindex
- indicate which one (starting from 0) to choose if there a list of elements satifying tag name and attribute name and valuepublic org.w3c.dom.Element getElementByTagAndAttributeValue(org.w3c.dom.Element parentElement, java.lang.String tagName, java.lang.String attributeName, java.lang.String attributeValue, int index)
parentElement
- the parent elementtagName
- the tag name of the elementsattributeName
- a constraint attributeattributeValue
- the value of the constraint attributeindex
- indicate which one (starting from 0) to choose if there a list of elements satifying tag name and attribute name and valuepublic java.util.List<org.w3c.dom.Element> getElementListByTagAndAttributeValue(org.w3c.dom.Element parentElement, java.lang.String tagName, java.lang.String attributeName, java.lang.String attributeValue)
parentElement
- the parent elementtagName
- the tag name of the elementsattributeName
- a constraint attributeattributeValue
- the value of the constraint attributeindex
- indicate which one (starting from 0) to choose if there a list of elements satifying tag name and attribute name and valuepublic void setSelectionByIdAndContent(org.w3c.dom.Document document, java.lang.String id, java.lang.String textContent)
document
- the DOM document of the pageid
- the id of the selection elementtextContent
- the text content of option which will be set selected
if no satisfied option, nothing changespublic void setValueById(org.w3c.dom.Document document, java.lang.String id, java.lang.String inputName, java.lang.String inputValue)
document
- the DOM document of the pageid
- the id of the selection elementinputName
- indicate which attribute will be modifiedinputValue
- indicate the new value for the attribute after modificationpublic void setValueByTagAndAttributeValue(org.w3c.dom.Document document, java.lang.String tagName, java.lang.String attributeName, java.lang.String attributeValue, java.lang.String inputName, java.lang.String inputValue, int index)
document
- the DOM document of the pagetagName
- the tag name of the elementsattributeName
- a constraint attributeattributeValue
- the value of the constraint attributeinputName
- indicate which attribute will be modifiedinputValue
- indicate the new value for the attribute after modificationindex
- indicate which one (starting from 0) to choose if there a list of elements satifying tag name and text contentpublic void setValueByTagAndAttributeValueContainment(org.w3c.dom.Document document, java.lang.String tagName, java.lang.String attributeName, java.lang.String attributeValue, java.lang.String inputName, java.lang.String inputValue, int index)
document
- the DOM document of the pagetagName
- the tag name of the elementsattributeName
- a constraint attributeattributeValue
- the value of the constraint attributeinputName
- indicate which attribute will be modifiedinputValue
- indicate the new value for the attribute after modificationindex
- indicate which one (starting from 0) to choose if there a list of elements satifying tag name and attribute name and value (be contained)public void loadURL(java.lang.String url)
public static void main(java.lang.String[] args)