|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.uispec4j.AbstractUIComponent
org.uispec4j.Panel
General container for UI components.
This class offers a set of "getXxx" methods for retrieving the different kinds of UIComponent instances laid out in a GUI panel.
It also provides a set of generic find/get methods, with the following naming logic:
getPanel(String) method only components of type JPanel JInternalFrame, etc. will be
considered.
| Field Summary | |
static Class[] |
SWING_CLASSES
|
static String |
TYPE_NAME
|
| Constructor Summary | |
Panel(Container container)
|
|
| Methods inherited from class org.uispec4j.AbstractUIComponent |
addAttributes, backgroundEquals, foregroundEquals, getDescription, getDescription, getLabel, getName, getSubDescription, isEnabled, isVisible |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String TYPE_NAME
public static final Class[] SWING_CLASSES
| Constructor Detail |
public Panel(Container container)
| Method Detail |
public String getDescriptionTypeName()
UIComponentUIComponent.getDescription().
public Component getAwtComponent()
UIComponent
public Container getAwtContainer()
public Button getButton(String name)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public Button getButton()
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public Button getButton(ComponentMatcher matcher)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public ToggleButton getToggleButton(String name)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public ToggleButton getToggleButton()
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public ToggleButton getToggleButton(ComponentMatcher matcher)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public CheckBox getCheckBox(String name)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public CheckBox getCheckBox()
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public CheckBox getCheckBox(ComponentMatcher matcher)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public Panel getPanel()
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public Panel getPanel(String name)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public Panel getPanel(ComponentMatcher matcher)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public ProgressBar getProgressBar(String name)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public ProgressBar getProgressBar()
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public ProgressBar getProgressBar(ComponentMatcher matcher)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public Desktop getDesktop(String name)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public Desktop getDesktop()
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public Desktop getDesktop(ComponentMatcher matcher)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public TextBox getTextBox(String name)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public TextBox getTextBox()
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public TextBox getTextBox(ComponentMatcher matcher)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public TextBox getInputTextBox(String name)
throws ComponentAmbiguityException,
ItemNotFoundException
"Input text boxes" are defined as subclasses of the JTextComponent class - in other words, JLabel components are excluded from the search. Please note that the is is not necessarily visible from the user, since JTextComponent subclasses can be customized to look as ordinary, read-only labels.
ComponentAmbiguityException
ItemNotFoundException
public TextBox getInputTextBox()
throws ComponentAmbiguityException,
ItemNotFoundException
ComponentAmbiguityException
ItemNotFoundExceptiongetInputTextBox(String)
public TabGroup getTabGroup(String name)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public TabGroup getTabGroup()
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public TabGroup getTabGroup(ComponentMatcher matcher)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public ComboBox getComboBox(String name)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public ComboBox getComboBox()
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public ComboBox getComboBox(ComponentMatcher matcher)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public Spinner getSpinner()
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public Spinner getSpinner(String name)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public Spinner getSpinner(ComponentMatcher matcher)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public DateSpinner getDateSpinner()
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityExceptionpublic DateSpinner getDateSpinner(String componentName)
public DateSpinner getDateSpinner(ComponentMatcher matcher)
public ListSpinner getListSpinner()
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityExceptionpublic ListSpinner getListSpinner(String componentName)
public ListSpinner getListSpinner(ComponentMatcher matcher)
public NumberSpinner getNumberSpinner()
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityExceptionpublic NumberSpinner getNumberSpinner(String componentName)
public NumberSpinner getNumberSpinner(ComponentMatcher matcher)
public Slider getSlider()
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public Slider getSlider(String name)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public Slider getSlider(ComponentMatcher matcher)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public Table getTable(String name)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public Table getTable()
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public Table getTable(ComponentMatcher matcher)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public Tree getTree(String name)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public Tree getTree()
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public Tree getTree(ComponentMatcher matcher)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public RadioButton getRadioButton(String name)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public RadioButton getRadioButton()
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public RadioButton getRadioButton(ComponentMatcher matcher)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public ListBox getListBox(String name)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public ListBox getListBox()
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public ListBox getListBox(ComponentMatcher matcher)
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityException
public PasswordField getPasswordField()
throws ItemNotFoundException,
ComponentAmbiguityException
ItemNotFoundException
ComponentAmbiguityExceptionpublic PasswordField getPasswordField(ComponentMatcher matcher)
public PasswordField getPasswordField(String componentName)
public UIComponent[] getUIComponents(Class uiComponentClass)
public UIComponent[] getUIComponents(Class uiComponentClass,
String name)
public UIComponent[] getUIComponents(ComponentMatcher matcher)
public UIComponent findUIComponent(Class uiComponentClass)
throws ComponentAmbiguityException
ComponentAmbiguityException
public UIComponent findUIComponent(Class uiComponentClass,
String name)
throws ComponentAmbiguityException
ComponentAmbiguityException
public UIComponent findUIComponent(ComponentMatcher matcher)
throws ComponentAmbiguityException
ComponentAmbiguityExceptionpublic Component[] getSwingComponents(Class swingComponentClass)
public Component[] getSwingComponents(Class swingComponentClass,
String name)
public Component[] getSwingComponents(ComponentMatcher matcher)
public Component findSwingComponent(Class swingComponentClass)
throws ComponentAmbiguityException
ComponentAmbiguityException
public Component findSwingComponent(Class swingComponentClass,
String componentName)
throws ComponentAmbiguityException
ComponentAmbiguityException
public Component findSwingComponent(ComponentMatcher matcher)
throws ComponentAmbiguityException
ComponentAmbiguityExceptionpublic Assertion containsUIComponent(Class uicomponentClass)
public Assertion containsSwingComponent(Class swingComponentClass)
public Assertion containsUIComponent(Class uiComponentClass,
String name)
public Assertion containsSwingComponent(Class swingComponentClass,
String name)
public Assertion containsComponent(ComponentMatcher matcher)
public Assertion containsLabel(String text)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||