|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.uispec4j.AbstractUIComponent
public abstract class AbstractUIComponent
Base class for UIComponent implementations.
| Constructor Summary | |
|---|---|
AbstractUIComponent()
|
|
| Method Summary | |
|---|---|
protected void |
addAttributes(java.awt.Component component,
XmlWriter.Tag tag)
|
Assertion |
backgroundEquals(java.lang.String expectedColor)
Checks the background color of the component The color can be given in either hexadecimal ("FF45C0") or human-readable ("red") format. |
Assertion |
backgroundNear(java.lang.String expectedColor)
Checks that the background color of the component is close to the given value. |
Assertion |
foregroundEquals(java.lang.String expectedColor)
Checks the foreground color of the component. |
Assertion |
foregroundNear(java.lang.String expectedColor)
Checks that the foreground color of the component is close to the given value. |
Panel |
getContainer()
|
Panel |
getContainer(java.lang.String parentName)
Returns the first container named parentName or null if not found |
java.lang.String |
getDescription()
Returns an XML representation of the component and its subcomponents. |
protected void |
getDescription(java.awt.Component component,
XmlWriter.Tag tag,
boolean showVisibleOnly)
|
java.lang.String |
getLabel()
Returns the label displayed on this component, or null if this has no sense for this kind of components. |
java.lang.String |
getName()
Returns the internal name with which can be used to identify the component. |
protected void |
getSubDescription(java.awt.Container container,
XmlWriter.Tag tag)
|
Assertion |
isEnabled()
|
Assertion |
isVisible()
|
AbstractUIComponent |
pressKey(Key key)
Simulates pressing a key while the focus is on the component. |
AbstractUIComponent |
releaseKey(Key key)
Simulates releasing a key while the focus is on the component. |
AbstractUIComponent |
typeKey(Key key)
Simulates typing a key while the focus is on the component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.uispec4j.UIComponent |
|---|
getAwtComponent, getDescriptionTypeName |
| Constructor Detail |
|---|
public AbstractUIComponent()
| Method Detail |
|---|
public final java.lang.String getDescription()
UIComponent
getDescription in interface UIComponent
protected void getSubDescription(java.awt.Container container,
XmlWriter.Tag tag)
protected void getDescription(java.awt.Component component,
XmlWriter.Tag tag,
boolean showVisibleOnly)
protected void addAttributes(java.awt.Component component,
XmlWriter.Tag tag)
public java.lang.String getName()
UIComponent
getName in interface UIComponentpublic java.lang.String getLabel()
UIComponent
getLabel in interface UIComponentpublic Assertion isVisible()
isVisible in interface UIComponentpublic Assertion isEnabled()
isEnabled in interface UIComponentpublic Assertion foregroundEquals(java.lang.String expectedColor)
public Assertion foregroundNear(java.lang.String expectedColor)
public Assertion backgroundEquals(java.lang.String expectedColor)
public Assertion backgroundNear(java.lang.String expectedColor)
public Panel getContainer()
public Panel getContainer(java.lang.String parentName)
UIComponent
getContainer in interface UIComponentpublic AbstractUIComponent typeKey(Key key)
UIComponent
typeKey in interface UIComponentpublic AbstractUIComponent pressKey(Key key)
UIComponent
pressKey in interface UIComponentpublic AbstractUIComponent releaseKey(Key key)
UIComponent
releaseKey in interface UIComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||