Class JLabelOperator
java.lang.Object
org.netbeans.jemmy.operators.Operator
org.netbeans.jemmy.operators.ComponentOperator
org.netbeans.jemmy.operators.ContainerOperator
org.netbeans.jemmy.operators.JComponentOperator
org.netbeans.jemmy.operators.JLabelOperator
- All Implemented Interfaces:
Outputable, Timeoutable
Timeouts used:
ComponentOperator.WaitComponentTimeout - time to wait component displayed
ComponentOperator.WaitStateTimeout - time to wait for text
.
- Author:
- Alexandre Iline (alexandre.iline@sun.com)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAllows to find component by text.static classChecks component type.Nested classes/interfaces inherited from class JComponentOperator
JComponentOperator.JComponentByTipFinder, JComponentOperator.JComponentFinderNested classes/interfaces inherited from class ContainerOperator
ContainerOperator.ContainerFinderNested classes/interfaces inherited from class Operator
Operator.ComponentVisualizer, Operator.DefaultPathParser, Operator.DefaultStringComparator, Operator.Finder, Operator.MapAction, Operator.MapBooleanAction, Operator.MapByteAction, Operator.MapCharacterAction, Operator.MapDoubleAction, Operator.MapFloatAction, Operator.MapIntegerAction, Operator.MapLongAction, Operator.MapVoidAction, Operator.NoBlockingAction, Operator.PathParser, Operator.StringComparator -
Field Summary
FieldsFields inherited from class JComponentOperator
A11Y_DATA, A11Y_DESCRIPTION_DPROP, A11Y_NAME_DPROP, TOOLTIP_TEXT_DPROPFields inherited from class ComponentOperator
HEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROPFields inherited from class Operator
CLASS_DPROP, TO_STRING_DPROP -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.Constructor.JLabelOperator(ContainerOperator cont, int index) Constructor.JLabelOperator(ContainerOperator cont, String text) Constructor.JLabelOperator(ContainerOperator cont, String text, int index) Constructor.JLabelOperator(ContainerOperator cont, ComponentChooser chooser) Constructs a JLabelOperator object.JLabelOperator(ContainerOperator cont, ComponentChooser chooser, int index) Constructs a JLabelOperator object. -
Method Summary
Modifier and TypeMethodDescriptionstatic JLabelfindJLabel(Container cont, String text, boolean ce, boolean ccs) Searches JLabel by text.static JLabelfindJLabel(Container cont, String text, boolean ce, boolean ccs, int index) Searches JLabel by text.static JLabelfindJLabel(Container cont, ComponentChooser chooser) Searches JLabel in container.static JLabelfindJLabel(Container cont, ComponentChooser chooser, int index) Searches JLabel in container.MapsJLabel.getDisabledIcon()through queueintMapsJLabel.getDisplayedMnemonic()through queuegetDump()Returns information about component.intMapsJLabel.getHorizontalAlignment()through queueintMapsJLabel.getHorizontalTextPosition()through queuegetIcon()MapsJLabel.getIcon()through queueintMapsJLabel.getIconTextGap()through queueMapsJLabel.getLabelFor()through queuegetText()MapsJLabel.getText()through queuegetUI()MapsJLabel.getUI()through queueintMapsJLabel.getVerticalAlignment()through queueintMapsJLabel.getVerticalTextPosition()through queuevoidsetDisabledIcon(Icon icon) MapsJLabel.setDisabledIcon(Icon)through queuevoidsetDisplayedMnemonic(char c) MapsJLabel.setDisplayedMnemonic(char)through queuevoidsetDisplayedMnemonic(int i) MapsJLabel.setDisplayedMnemonic(int)through queuevoidsetHorizontalAlignment(int i) MapsJLabel.setHorizontalAlignment(int)through queuevoidsetHorizontalTextPosition(int i) MapsJLabel.setHorizontalTextPosition(int)through queuevoidMapsJLabel.setIcon(Icon)through queuevoidsetIconTextGap(int i) MapsJLabel.setIconTextGap(int)through queuevoidsetLabelFor(Component component) MapsJLabel.setLabelFor(Component)through queuevoidMapsJLabel.setText(String)through queuevoidMapsJLabel.setUI(LabelUI)through queuevoidsetVerticalAlignment(int i) MapsJLabel.setVerticalAlignment(int)through queuevoidsetVerticalTextPosition(int i) MapsJLabel.setVerticalTextPosition(int)through queuestatic JLabelwaitJLabel(Container cont, String text, boolean ce, boolean ccs) Waits JLabel by text.static JLabelwaitJLabel(Container cont, String text, boolean ce, boolean ccs, int index) Waits JLabel by text.static JLabelwaitJLabel(Container cont, ComponentChooser chooser) Waits JLabel in container.static JLabelwaitJLabel(Container cont, ComponentChooser chooser, int index) Waits JLabel in container.voidWaits for text.Methods inherited from class JComponentOperator
addAncestorListener, addVetoableChangeListener, computeVisibleRect, createToolTip, findJComponent, findJComponent, findJComponent, findJComponent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getActionForKeyStroke, getAutoscrolls, getBorder, getCenterXForClick, getCenterYForClick, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getInsets, getNextFocusableComponent, getOutput, getRegisteredKeyStrokes, getRootPane, getTimeouts, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVisibleRect, getWindowContainerOperator, grabFocus, isFocusCycleRoot, isManagingFocus, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintImmediately, paintImmediately, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, requestDefaultFocus, resetKeyboardActions, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setOutput, setPreferredSize, setRequestFocusEnabled, setTimeouts, setToolTipText, showToolTip, unregisterKeyboardAction, updateUI, waitJComponent, waitJComponent, waitJComponent, waitJComponent, waitToolTipMethods inherited from class ContainerOperator
add, add, add, add, add, addContainerListener, createSubOperator, createSubOperator, findComponentAt, findComponentAt, findContainer, findContainer, findContainer, findContainer, findContainerUnder, findContainerUnder, findSubComponent, findSubComponent, getComponent, getComponentCount, getComponents, getInsets, getLayout, isAncestorOf, paintComponents, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, waitContainer, waitContainer, waitContainer, waitContainer, waitSubComponent, waitSubComponentMethods inherited from class ComponentOperator
activateWindow, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, checkImage, checkImage, clickForPopup, clickForPopup, clickForPopup, clickForPopup, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, contains, contains, copyEnvironment, createImage, createImage, dispatchEvent, doLayout, dragMouse, dragMouse, dragMouse, dragNDrop, dragNDrop, dragNDrop, enableInputMethods, enterMouse, exitMouse, findComponent, findComponent, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getCenterX, getCenterY, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getContainer, getContainers, getCursor, getDropTarget, getEventDispatcher, getFocus, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getSize, getSource, getToolkit, getTreeLock, getWidth, getWindow, getX, getY, hasFocus, imageUpdate, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, list, list, list, list, list, makeComponentVisible, moveMouse, paint, paintAll, prepareImage, prepareImage, pressKey, pressKey, pressMouse, pressMouse, print, printAll, pushKey, pushKey, releaseKey, releaseKey, releaseMouse, releaseMouse, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, transferFocus, typeKey, typeKey, typeKey, update, validate, waitComponent, waitComponent, waitComponent, waitComponent, waitComponentEnabled, waitComponentShowing, waitComponentVisible, waitHasFocus, wtComponentEnabledMethods inherited from class Operator
addOperatorPackage, addToDump, addToDump, createOperator, getCharBindingMap, getCharKey, getCharModifiers, getCharsKeys, getCharsKeys, getCharsModifiers, getCharsModifiers, getComparator, getDefaultComponentVisualizer, getDefaultMouseButton, getDefaultPathParser, getDefaultStringComparator, getDefaultVerification, getEnvironmentOperator, getParentPath, getParentPath, getPathParser, getPopupMouseButton, getProperties, getQueueTool, getVerification, getVisualizer, isCaptionEqual, isCaptionEqual, isCaptionEqual, lockQueue, parseString, parseString, printDump, produceNoBlocking, produceNoBlocking, produceTimeRestricted, produceTimeRestricted, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, setCharBindingMap, setComparator, setDefaultComponentVisualizer, setDefaultPathParser, setDefaultStringComparator, setDefaultVerification, setPathParser, setProperties, setVerification, setVisualizer, toStringSource, unlockAndThrow, unlockQueue, waitState
-
Field Details
-
TEXT_DPROP
-
-
Constructor Details
-
JLabelOperator
-
JLabelOperator
Constructs a JLabelOperator object.- Parameters:
cont- a containerchooser- a component chooser specifying searching criteria.index- an index between appropriate ones.
-
JLabelOperator
Constructs a JLabelOperator object.- Parameters:
cont- a containerchooser- a component chooser specifying searching criteria.
-
JLabelOperator
Constructor. Waits component in container first. Uses cont's timeout and output for waiting and to init operator.- Parameters:
cont- a containertext- Button text.index- Ordinal component index.- See Also:
-
JLabelOperator
Constructor. Waits component in container first. Uses cont's timeout and output for waiting and to init operator.- Parameters:
cont- a containertext- Button text.- See Also:
-
JLabelOperator
Constructor. Waits component in container first. Uses cont's timeout and output for waiting and to init operator.- Parameters:
cont- a containerindex- Ordinal component index.
-
JLabelOperator
Constructor. Waits component in container first. Uses cont's timeout and output for waiting and to init operator.- Parameters:
cont- a container
-
-
Method Details
-
findJLabel
Searches JLabel in container.- Parameters:
cont- Container to search component in.chooser- a component chooser specifying searching criteria.index- Ordinal component index.- Returns:
- JLabel instance or null if component was not found.
-
findJLabel
Searches JLabel in container.- Parameters:
cont- Container to search component in.chooser- a component chooser specifying searching criteria.- Returns:
- JLabel instance or null if component was not found.
-
findJLabel
Searches JLabel by text.- Parameters:
cont- Container to search component in.text- Component text.ce- Compare text exactly.ccs- Compare text case sensitively.index- Ordinal component index.- Returns:
- JLabel instance or null if component was not found.
- See Also:
-
findJLabel
Searches JLabel by text.- Parameters:
cont- Container to search component in.text- Component text.ce- Compare text exactly.ccs- Compare text case sensitively.- Returns:
- JLabel instance or null if component was not found.
- See Also:
-
waitJLabel
Waits JLabel in container.- Parameters:
cont- Container to search component in.chooser- a component chooser specifying searching criteria.index- Ordinal component index.- Returns:
- JLabel instance.
-
waitJLabel
Waits JLabel in container.- Parameters:
cont- Container to search component in.chooser- a component chooser specifying searching criteria.- Returns:
- JLabel instance.
-
waitJLabel
Waits JLabel by text.- Parameters:
cont- Container to search component in.text- Component text.ce- Compare text exactly.ccs- Compare text case sensitively.index- Ordinal component index.- Returns:
- JLabel instance.
- See Also:
-
waitJLabel
-
waitText
Waits for text. Uses getComparator() comparator.- Parameters:
text- Text to wait for.
-
getDump
Returns information about component.- Overrides:
getDumpin classJComponentOperator- Returns:
- a Hashtable containing name-value pairs.
-
getDisabledIcon
MapsJLabel.getDisabledIcon()through queue -
getDisplayedMnemonic
public int getDisplayedMnemonic()MapsJLabel.getDisplayedMnemonic()through queue -
getHorizontalAlignment
public int getHorizontalAlignment()MapsJLabel.getHorizontalAlignment()through queue -
getHorizontalTextPosition
public int getHorizontalTextPosition()MapsJLabel.getHorizontalTextPosition()through queue -
getIcon
MapsJLabel.getIcon()through queue -
getIconTextGap
public int getIconTextGap()MapsJLabel.getIconTextGap()through queue -
getLabelFor
MapsJLabel.getLabelFor()through queue -
getText
MapsJLabel.getText()through queue -
getUI
MapsJLabel.getUI()through queue -
getVerticalAlignment
public int getVerticalAlignment()MapsJLabel.getVerticalAlignment()through queue -
getVerticalTextPosition
public int getVerticalTextPosition()MapsJLabel.getVerticalTextPosition()through queue -
setDisabledIcon
MapsJLabel.setDisabledIcon(Icon)through queue -
setDisplayedMnemonic
public void setDisplayedMnemonic(char c) MapsJLabel.setDisplayedMnemonic(char)through queue -
setDisplayedMnemonic
public void setDisplayedMnemonic(int i) MapsJLabel.setDisplayedMnemonic(int)through queue -
setHorizontalAlignment
public void setHorizontalAlignment(int i) MapsJLabel.setHorizontalAlignment(int)through queue -
setHorizontalTextPosition
public void setHorizontalTextPosition(int i) MapsJLabel.setHorizontalTextPosition(int)through queue -
setIcon
MapsJLabel.setIcon(Icon)through queue -
setIconTextGap
public void setIconTextGap(int i) MapsJLabel.setIconTextGap(int)through queue -
setLabelFor
MapsJLabel.setLabelFor(Component)through queue -
setText
MapsJLabel.setText(String)through queue -
setUI
MapsJLabel.setUI(LabelUI)through queue -
setVerticalAlignment
public void setVerticalAlignment(int i) MapsJLabel.setVerticalAlignment(int)through queue -
setVerticalTextPosition
public void setVerticalTextPosition(int i) MapsJLabel.setVerticalTextPosition(int)through queue
-