|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.jemmy.operators.Operator
org.netbeans.jemmy.operators.ComponentOperator
org.netbeans.jemmy.operators.ContainerOperator
org.netbeans.jemmy.operators.JComponentOperator
org.netbeans.jemmy.operators.JLabelOperator
public class JLabelOperator
Timeouts used:
ComponentOperator.WaitComponentTimeout - time to wait component displayed
ComponentOperator.WaitStateTimeout - time to wait for text
.
Timeouts
Nested Class Summary | |
---|---|
static class |
JLabelOperator.JLabelByLabelFinder
Allows to find component by text. |
static class |
JLabelOperator.JLabelFinder
Checks component type. |
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.JComponentOperator |
---|
JComponentOperator.JComponentByTipFinder, JComponentOperator.JComponentFinder |
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.ContainerOperator |
---|
ContainerOperator.ContainerFinder |
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.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 | |
---|---|
static java.lang.String |
TEXT_DPROP
Identifier for a "text" property. |
Fields inherited from class org.netbeans.jemmy.operators.JComponentOperator |
---|
A11Y_DATA, A11Y_DESCRIPTION_DPROP, A11Y_NAME_DPROP, TOOLTIP_TEXT_DPROP |
Fields inherited from class org.netbeans.jemmy.operators.ComponentOperator |
---|
HEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROP |
Fields inherited from class org.netbeans.jemmy.operators.Operator |
---|
CLASS_DPROP, TO_STRING_DPROP |
Constructor Summary | |
---|---|
JLabelOperator(ContainerOperator cont)
Constructor. |
|
JLabelOperator(ContainerOperator cont,
ComponentChooser chooser)
Constructs a JLabelOperator object. |
|
JLabelOperator(ContainerOperator cont,
ComponentChooser chooser,
int index)
Constructs a JLabelOperator object. |
|
JLabelOperator(ContainerOperator cont,
int index)
Constructor. |
|
JLabelOperator(ContainerOperator cont,
java.lang.String text)
Constructor. |
|
JLabelOperator(ContainerOperator cont,
java.lang.String text,
int index)
Constructor. |
|
JLabelOperator(javax.swing.JLabel b)
Constructor. |
Method Summary | |
---|---|
static javax.swing.JLabel |
findJLabel(java.awt.Container cont,
ComponentChooser chooser)
Searches JLabel in container. |
static javax.swing.JLabel |
findJLabel(java.awt.Container cont,
ComponentChooser chooser,
int index)
Searches JLabel in container. |
static javax.swing.JLabel |
findJLabel(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs)
Searches JLabel by text. |
static javax.swing.JLabel |
findJLabel(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs,
int index)
Searches JLabel by text. |
javax.swing.Icon |
getDisabledIcon()
Maps JLabel.getDisabledIcon() through queue |
int |
getDisplayedMnemonic()
Maps JLabel.getDisplayedMnemonic() through queue |
java.util.Hashtable |
getDump()
Returns information about component. |
int |
getHorizontalAlignment()
Maps JLabel.getHorizontalAlignment() through queue |
int |
getHorizontalTextPosition()
Maps JLabel.getHorizontalTextPosition() through queue |
javax.swing.Icon |
getIcon()
Maps JLabel.getIcon() through queue |
int |
getIconTextGap()
Maps JLabel.getIconTextGap() through queue |
java.awt.Component |
getLabelFor()
Maps JLabel.getLabelFor() through queue |
java.lang.String |
getText()
Maps JLabel.getText() through queue |
javax.swing.plaf.LabelUI |
getUI()
Maps JLabel.getUI() through queue |
int |
getVerticalAlignment()
Maps JLabel.getVerticalAlignment() through queue |
int |
getVerticalTextPosition()
Maps JLabel.getVerticalTextPosition() through queue |
void |
setDisabledIcon(javax.swing.Icon icon)
Maps JLabel.setDisabledIcon(Icon) through queue |
void |
setDisplayedMnemonic(char c)
Maps JLabel.setDisplayedMnemonic(char) through queue |
void |
setDisplayedMnemonic(int i)
Maps JLabel.setDisplayedMnemonic(int) through queue |
void |
setHorizontalAlignment(int i)
Maps JLabel.setHorizontalAlignment(int) through queue |
void |
setHorizontalTextPosition(int i)
Maps JLabel.setHorizontalTextPosition(int) through queue |
void |
setIcon(javax.swing.Icon icon)
Maps JLabel.setIcon(Icon) through queue |
void |
setIconTextGap(int i)
Maps JLabel.setIconTextGap(int) through queue |
void |
setLabelFor(java.awt.Component component)
Maps JLabel.setLabelFor(Component) through queue |
void |
setText(java.lang.String string)
Maps JLabel.setText(String) through queue |
void |
setUI(javax.swing.plaf.LabelUI labelUI)
Maps JLabel.setUI(LabelUI) through queue |
void |
setVerticalAlignment(int i)
Maps JLabel.setVerticalAlignment(int) through queue |
void |
setVerticalTextPosition(int i)
Maps JLabel.setVerticalTextPosition(int) through queue |
static javax.swing.JLabel |
waitJLabel(java.awt.Container cont,
ComponentChooser chooser)
Waits JLabel in container. |
static javax.swing.JLabel |
waitJLabel(java.awt.Container cont,
ComponentChooser chooser,
int index)
Waits JLabel in container. |
static javax.swing.JLabel |
waitJLabel(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs)
Waits JLabel by text. |
static javax.swing.JLabel |
waitJLabel(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs,
int index)
Waits JLabel by text. |
void |
waitText(java.lang.String text)
Waits for text. |
Methods inherited from class org.netbeans.jemmy.operators.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, waitSubComponent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TEXT_DPROP
getDump()
,
Constant Field ValuesConstructor Detail |
---|
public JLabelOperator(javax.swing.JLabel b)
b
- a componentpublic JLabelOperator(ContainerOperator cont, ComponentChooser chooser, int index)
cont
- a containerchooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public JLabelOperator(ContainerOperator cont, ComponentChooser chooser)
cont
- a containerchooser
- a component chooser specifying searching criteria.public JLabelOperator(ContainerOperator cont, java.lang.String text, int index)
cont
- a containertext
- Button text.index
- Ordinal component index.Operator.isCaptionEqual(String, String, boolean, boolean)
public JLabelOperator(ContainerOperator cont, java.lang.String text)
cont
- a containertext
- Button text.Operator.isCaptionEqual(String, String, boolean, boolean)
public JLabelOperator(ContainerOperator cont, int index)
cont
- a containerindex
- Ordinal component index.public JLabelOperator(ContainerOperator cont)
cont
- a containerMethod Detail |
---|
public static javax.swing.JLabel findJLabel(java.awt.Container cont, ComponentChooser chooser, int index)
cont
- Container to search component in.chooser
- a component chooser specifying searching criteria.index
- Ordinal component index.
public static javax.swing.JLabel findJLabel(java.awt.Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- a component chooser specifying searching criteria.
public static javax.swing.JLabel findJLabel(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int index)
cont
- Container to search component in.text
- Component text.ce
- Compare text exactly.ccs
- Compare text case sensitively.index
- Ordinal component index.
Operator.isCaptionEqual(String, String, boolean, boolean)
public static javax.swing.JLabel findJLabel(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs)
cont
- Container to search component in.text
- Component text.ce
- Compare text exactly.ccs
- Compare text case sensitively.
Operator.isCaptionEqual(String, String, boolean, boolean)
public static javax.swing.JLabel waitJLabel(java.awt.Container cont, ComponentChooser chooser, int index)
cont
- Container to search component in.chooser
- a component chooser specifying searching criteria.index
- Ordinal component index.
public static javax.swing.JLabel waitJLabel(java.awt.Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- a component chooser specifying searching criteria.
public static javax.swing.JLabel waitJLabel(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int index)
cont
- Container to search component in.text
- Component text.ce
- Compare text exactly.ccs
- Compare text case sensitively.index
- Ordinal component index.
Operator.isCaptionEqual(String, String, boolean, boolean)
public static javax.swing.JLabel waitJLabel(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs)
cont
- Container to search component in.text
- Component text.ce
- Compare text exactly.ccs
- Compare text case sensitively.
Operator.isCaptionEqual(String, String, boolean, boolean)
public void waitText(java.lang.String text)
text
- Text to wait for.public java.util.Hashtable getDump()
getDump
in class JComponentOperator
public javax.swing.Icon getDisabledIcon()
JLabel.getDisabledIcon()
through queue
public int getDisplayedMnemonic()
JLabel.getDisplayedMnemonic()
through queue
public int getHorizontalAlignment()
JLabel.getHorizontalAlignment()
through queue
public int getHorizontalTextPosition()
JLabel.getHorizontalTextPosition()
through queue
public javax.swing.Icon getIcon()
JLabel.getIcon()
through queue
public int getIconTextGap()
JLabel.getIconTextGap()
through queue
public java.awt.Component getLabelFor()
JLabel.getLabelFor()
through queue
public java.lang.String getText()
JLabel.getText()
through queue
public javax.swing.plaf.LabelUI getUI()
JLabel.getUI()
through queue
public int getVerticalAlignment()
JLabel.getVerticalAlignment()
through queue
public int getVerticalTextPosition()
JLabel.getVerticalTextPosition()
through queue
public void setDisabledIcon(javax.swing.Icon icon)
JLabel.setDisabledIcon(Icon)
through queue
public void setDisplayedMnemonic(char c)
JLabel.setDisplayedMnemonic(char)
through queue
public void setDisplayedMnemonic(int i)
JLabel.setDisplayedMnemonic(int)
through queue
public void setHorizontalAlignment(int i)
JLabel.setHorizontalAlignment(int)
through queue
public void setHorizontalTextPosition(int i)
JLabel.setHorizontalTextPosition(int)
through queue
public void setIcon(javax.swing.Icon icon)
JLabel.setIcon(Icon)
through queue
public void setIconTextGap(int i)
JLabel.setIconTextGap(int)
through queue
public void setLabelFor(java.awt.Component component)
JLabel.setLabelFor(Component)
through queue
public void setText(java.lang.String string)
JLabel.setText(String)
through queue
public void setUI(javax.swing.plaf.LabelUI labelUI)
JLabel.setUI(LabelUI)
through queue
public void setVerticalAlignment(int i)
JLabel.setVerticalAlignment(int)
through queue
public void setVerticalTextPosition(int i)
JLabel.setVerticalTextPosition(int)
through queue
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |