|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.jsfunit.richclient.RichFacesClient
public class RichFacesClient
This class provides helper methods for RichFaces controls.
Constructor Summary | |
---|---|
RichFacesClient(JSFClientSession jsfClient)
|
Method Summary | |
---|---|
void |
clickInputNumberSpinnerDown(String componentID)
Click the down arrow on an InputNumberSpinner. |
void |
clickInputNumberSpinnerUp(String componentID)
Click the up arrow on an InputNumberSpinner. |
void |
clickTab(String tabComponentID)
Click a tab on a TabPanel. |
void |
clickTreeNodeHandle(String treeNodeKey,
String treeNodeId)
Click this handle icon for a node in a RichTree in order to toggle the open/closed state. |
void |
dragAndDrop(String dragComponentID,
String dropTargetComponentID)
Drag a component with rich:dragSupport to a component with rich:dropSupport. |
com.gargoylesoftware.htmlunit.html.HtmlElement |
getTreeHandle(String treeID,
String treeNodeID,
String nodeText)
Get the HtmlElement of the tree handle for a node in a RichTree. |
com.gargoylesoftware.htmlunit.html.HtmlElement |
getTreeNodeByText(String treeID,
String componentID,
String nodeText)
Get the HtmlElement of the tree node that contains the given text. |
boolean |
isTreeHandleExpanded(String treeID,
String treeNodeID,
String nodeText)
Find out if a tree handle is expanded. |
void |
setCalendarValue(String componentID,
String value)
Set a parameter value on a RichCalendar component. |
void |
setComboBox(String componentID,
String value)
Set a parameter value on a RichComboBox component. |
void |
setDataFilterSlider(String componentID,
String value)
Set a parameter value on a DataFilterSlider. |
void |
setInplaceInput(String componentID,
String value)
Set the value of a RichInplaceInput component. |
void |
setInplaceInput(String componentID,
String value,
String customSaveID)
Set the value of a RichInplaceInput component. |
void |
setInputNumberSlider(String componentID,
String value)
Set the value of an InputNumberSlider. |
void |
setInputNumberSpinner(String componentID,
String value)
Set the value of an InputNumberSpinner. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RichFacesClient(JSFClientSession jsfClient)
Method Detail |
---|
public void setDataFilterSlider(String componentID, String value)
componentID
- The JSF component ID or a suffix of the client ID.value
- The value to set before the form is submitted.
ComponentIDNotFoundException
- if the component can not be found
DuplicateClientIDException
- if more than one client ID matches the
componentID suffixpublic void setCalendarValue(String componentID, String value) throws IOException
componentID
- The JSF component ID or a suffix of the client ID.value
- The value to set before the form is submitted.
ComponentIDNotFoundException
- if the component can not be found
DuplicateClientIDException
- if more than one client ID matches the
componentID suffix
IOException
public void setInplaceInput(String componentID, String value, String customSaveID) throws IOException
componentID
- The JSF component ID or a suffix of the client ID.value
- The value to setcustomSaveID
- The JSF component ID or a suffix of a custom save button (null if not used)
IOException
public void setInplaceInput(String componentID, String value) throws IOException
componentID
- The JSF component ID or a suffix of the client ID.value
- The value to set
IOException
public void clickTreeNodeHandle(String treeNodeKey, String treeNodeId) throws IOException
treeNodeKey
- key value for the node to referencetreeNodeId
- id of the treeNode template
IOException
ComponentIDNotFoundException
- if the component can not be foundpublic void dragAndDrop(String dragComponentID, String dropTargetComponentID) throws IOException
dragComponentID
- The JSF component ID or a suffix of the client ID
for the rich:dragSupport component.dropTargetComponentID
- The JSF component ID or a suffix of the client ID
for the target rich:dropSupport component.
IOException
- if there is a problem submitting the form
ComponentIDNotFoundException
- if the component can not be found
DuplicateClientIDException
- if more than one client ID matches the
componentID suffixpublic void clickTab(String tabComponentID) throws IOException
tabPanelComponentID
- The JSF component ID or a suffix of the client ID
for the rich:tabPanel component.tabPanelComponentID
- The JSF component ID or a suffix of the client ID
for the rich:tab component.
IOException
- if there is a problem submitting the form
ComponentIDNotFoundException
- if the component can not be found
DuplicateClientIDException
- if more than one client ID matches the
componentID suffixpublic void setComboBox(String componentID, String value) throws IOException
componentID
- The JSF component ID or a suffix of the client ID.value
- The value to set before the form is submitted.
IOException
- if there is a problem submitting the form
ComponentIDNotFoundException
- if the component can not be found
DuplicateClientIDException
- if more than one client ID matches the
componentID suffixpublic void setInputNumberSpinner(String componentID, String value) throws IOException
componentID
- The JSF component ID or a suffix of the client ID.value
- The value to set before the form is submitted.
IOException
- if an internal refresh is needed and there is an
error sending a request to the server.
DuplicateClientIDException
- if more than one client ID matches the suffix
ClassCastException
- if the current page is not an HtmlPage.public void clickInputNumberSpinnerUp(String componentID) throws IOException
componentID
- The JSF component ID or a suffix of the client ID.
IOException
- if an internal refresh is needed and there is an
error sending a request to the server.
DuplicateClientIDException
- if more than one client ID matches the suffix
ClassCastException
- if the current page is not an HtmlPage.public void clickInputNumberSpinnerDown(String componentID) throws IOException
componentID
- The JSF component ID or a suffix of the client ID.
IOException
- if an internal refresh is needed and there is an
error sending a request to the server.
DuplicateClientIDException
- if more than one client ID matches the suffix
ClassCastException
- if the current page is not an HtmlPage.public void setInputNumberSlider(String componentID, String value) throws IOException
componentID
- The JSF component ID or a suffix of the client ID.value
- The value to set before the form is submitted.
IOException
- if an internal refresh is needed and there is an
error sending a request to the server.
DuplicateClientIDException
- if more than one client ID matches the suffix
ClassCastException
- if the current page is not an HtmlPage.public com.gargoylesoftware.htmlunit.html.HtmlElement getTreeHandle(String treeID, String treeNodeID, String nodeText) throws IOException
treeID
- id of the rich:treetreeNodeID
- id of the rich:treeNodenodeText
- text of the node
null
if not found.
IOException
ComponentIDNotFoundException
- if the component can not be foundpublic boolean isTreeHandleExpanded(String treeID, String treeNodeID, String nodeText) throws IOException
treeID
- id of the rich:treetreeNodeID
- id of the rich:treeNodenodeText
- text of the node
true
if the tree handle is exapanded, false
otherwise.
IOException
ComponentIDNotFoundException
- if the component can not be foundpublic com.gargoylesoftware.htmlunit.html.HtmlElement getTreeNodeByText(String treeID, String componentID, String nodeText) throws IOException
treeID
- id of the rich:treecomponentID
- id of the component inside the rich:treeNode that contains the text,
or the id of the rich:treeNode itself if the node
does not contain other JSF componentsnodeText
- text of the node
IOException
ComponentIDNotFoundException
- if the component can not be found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |