|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.uispec4j.AbstractUIComponent
Base class for UIComponent implementations.
| Constructor Summary | |
AbstractUIComponent()
|
|
| Method Summary | |
protected void |
addAttributes(Component component,
org.uispec4j.xml.XmlWriter.Tag tag)
|
Assertion |
backgroundEquals(String expectedColor)
Checks the background color of the component The color can be given in either hexadecimal ("FF45C0") or human-readable ("red") format. |
Assertion |
foregroundEquals(String expectedColor)
Checks the foreground color of the component. |
String |
getDescription()
Returns an XML representation of the component and its subcomponents. |
protected void |
getDescription(Component component,
org.uispec4j.xml.XmlWriter.Tag tag,
boolean showVisibleOnly)
|
String |
getLabel()
Returns the label displayed on this component, or null if this has no sense for this kind of components. |
String |
getName()
Returns the internal name with which can be used to identify the component. |
protected void |
getSubDescription(Container container,
org.uispec4j.xml.XmlWriter.Tag tag)
|
Assertion |
isEnabled()
Checks if the component is enabled. |
Assertion |
isVisible()
|
| 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 String getDescription()
UIComponent
getDescription in interface UIComponent
protected void getSubDescription(Container container,
org.uispec4j.xml.XmlWriter.Tag tag)
protected void getDescription(Component component,
org.uispec4j.xml.XmlWriter.Tag tag,
boolean showVisibleOnly)
protected void addAttributes(Component component,
org.uispec4j.xml.XmlWriter.Tag tag)
public String getName()
UIComponent
getName in interface UIComponentpublic String getLabel()
UIComponent
getLabel in interface UIComponentpublic Assertion isVisible()
public Assertion isEnabled()
UIComponent
isEnabled in interface UIComponentpublic Assertion foregroundEquals(String expectedColor)
public Assertion backgroundEquals(String expectedColor)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||