| org.netbeans.modules.visualweb.gravy.TopComponentOperator
All known Subclasses: org.netbeans.modules.visualweb.gravy.debugger.DebuggerWindowOperator, org.netbeans.modules.visualweb.gravy.debugger.BuildOutputOperator, org.netbeans.modules.visualweb.gravy.dataconnectivity.ServerExplorerOperator, org.netbeans.modules.visualweb.gravy.properties.PropertySheetOperator, org.netbeans.modules.visualweb.gravy.debugger.DebuggerConsoleOperator, org.netbeans.modules.visualweb.gravy.search.SearchResultsOperator, org.netbeans.modules.visualweb.gravy.PageTopComponentOperator, org.netbeans.modules.visualweb.gravy.EditorOperator,
TopComponentOperator | public class TopComponentOperator extends JComponentOperator (Code) | | Class for TopComponents.
|
Inner Class :public static class TopComponentChooser implements ComponentChooser | |
Constructor Summary | |
public | TopComponentOperator(ContainerOperator parent, String ID) Create TopComponentOperator with specified name in given container. | public | TopComponentOperator(ContainerOperator parent, ComponentChooser chooser) Create TopComponentOperator with chooser in given container. | public | TopComponentOperator(JComponent component) Create TopComponentOperator from given JComponent. |
Method Summary | |
public void | close() Closes this TopComponent instance by IDE API call and wait until
it is not closed. | public void | closeDiscard() Closes this TopComponent instance by IDE API call and wait until
it is not closed. | protected static JComponent | findTopComponent(ContainerOperator cont, String name, int index, ComponentChooser subchooser) Find TopComponent with specified name in given container with given subchooser.
Parameters: cont - Container where TopComponent will be looking for. Parameters: name - Name of the TopComponent. Parameters: subchooser - Subchooser for finding. | public void | save() Saves content of this TopComponent. | public void | waitClosed() Waits the topcomponent to be closed. | protected static JComponent | waitTopComponent(String name, int index) Waits for index-th TopComponent with given name in IDE registry. | protected static JComponent | waitTopComponent(ContainerOperator cont, String name, int index, ComponentChooser subchooser) Waits for index-th TopComponent with given name in IDE registry. |
TopComponentOperator | public TopComponentOperator(ContainerOperator parent, String ID)(Code) | | Create TopComponentOperator with specified name in given container.
Parameters: parent - Container where TopComponent will be looking for. Parameters: ID - Name of the TopComponent. |
TopComponentOperator | public TopComponentOperator(ContainerOperator parent, ComponentChooser chooser)(Code) | | Create TopComponentOperator with chooser in given container.
Parameters: parent - Container where TopComponent will be looking for. Parameters: chooser - Chooser for finding. |
TopComponentOperator | public TopComponentOperator(JComponent component)(Code) | | Create TopComponentOperator from given JComponent.
Parameters: component - JComponent from which TopComponentOperator will be created. |
close | public void close()(Code) | | Closes this TopComponent instance by IDE API call and wait until
it is not closed. If this TopComponent is modified (e.g. editor top
component), question dialog is shown and you have to close it. To close
this TopComponent and discard possible changes use
TopComponentOperator.closeDiscard method.
|
closeDiscard | public void closeDiscard()(Code) | | Closes this TopComponent instance by IDE API call and wait until
it is not closed. If this TopComponent is modified (e.g. editor top
component), it discards possible changes.
See Also: TopComponentOperator.close |
findTopComponent | protected static JComponent findTopComponent(ContainerOperator cont, String name, int index, ComponentChooser subchooser)(Code) | | Find TopComponent with specified name in given container with given subchooser.
Parameters: cont - Container where TopComponent will be looking for. Parameters: name - Name of the TopComponent. Parameters: subchooser - Subchooser for finding. JComponent Found component. |
save | public void save()(Code) | | Saves content of this TopComponent. If it is not applicable or content
of TopComponent is not modified, it does nothing.
|
waitClosed | public void waitClosed()(Code) | | Waits the topcomponent to be closed.
|
waitTopComponent | protected static JComponent waitTopComponent(String name, int index)(Code) | | Waits for index-th TopComponent with given name in IDE registry.
It throws JemmyException when TopComponent is not find until timeout
expires.
Parameters: name - name of TopComponent Parameters: index - index of TopComponent TopComponent instance or throws JemmyException if not found See Also: TopComponentOperator.findTopComponent |
waitTopComponent | protected static JComponent waitTopComponent(ContainerOperator cont, String name, int index, ComponentChooser subchooser)(Code) | | Waits for index-th TopComponent with given name in IDE registry.
It throws JemmyException when TopComponent is not find until timeout
expires.
Parameters: cont - container where to search Parameters: name - name of TopComponent Parameters: index - index of TopComponent Parameters: subchooser - ComponentChooser to determine exact TopComponent TopComponent instance or throws JemmyException if not found See Also: TopComponentOperator.findTopComponent |
|
|