| |
|
| org.netbeans.jellytools.TopComponentOperator org.netbeans.jellytools.properties.PropertySheetOperator
PropertySheetOperator | public class PropertySheetOperator extends TopComponentOperator (Code) | | Handles org.openide.explorer.propertysheet.PropertySheet which
represents IDE property sheet TopComponent.
It includes JTable with properties and optional description area.
Use
Property class or its descendants to work with properties.
Usage:
PropertySheetOperator pso = new PropertySheetOperator("Properties of MyClass");
new Property(pso, "Arguments").setValue("arg1 arg2");
pso.sortByName();
System.out.println("Number of properties="+pso.tblSheet().getRowCount());
pso.sortByCategory();
author: Jiri.Skrivanek@sun.com See Also: Property See Also: PropertiesAction See Also: SortByCategoryAction See Also: SortByNameAction See Also: ShowDescriptionAreaAction See Also: HelpAction |
Constructor Summary | |
public | PropertySheetOperator(JComponent sheet) | public | PropertySheetOperator() Waits for property sheet anywhere in IDE. | public | PropertySheetOperator(int mode) Waits for property sheet with name according to given mode ("No Properties",
"Properties of" or "Properties of Multiple Objects"). | public | PropertySheetOperator(int mode, String objectName) Waits for property sheet with name according to given mode ("No Properties",
"Properties of" or "Properties of Multiple Objects") plus objectName
in case of one object property sheet. | public | PropertySheetOperator(String sheetName) Waits for property sheet with given name. | public | PropertySheetOperator(ContainerOperator contOper, String sheetName) Waits for property sheet with given name in specified
container.
Parameters: contOper - where to find Parameters: sheetName - name of sheet to find (e.g. | public | PropertySheetOperator(ContainerOperator contOper) Waits for property sheet in specified ContainerOperator. | public | PropertySheetOperator(ContainerOperator contOper, int index) Waits for index-th property sheet in specified ContainerOperator. |
Method Summary | |
public JButtonOperator | btHelp() Returns JButtonOperator representing help button of description area. | public void | close() Closes this property sheet and waits until
it is not closed. | public String | getDescription() Gest description from description area. | public String | getDescriptionHeader() Gets text of header from description area. | public void | help() Shows help by calling popup menu on property sheet. | public static PropertySheetOperator | invoke() Invokes properties by default action on currently selected object. | public JLabelOperator | lblDescriptionHeader() Returns JLabelOperator representing header of description area. | public void | showDescriptionArea() Shows or hides description area depending on whether it is already shown
or not. | public void | sortByCategory() Sorts properties by category by calling of popup menu on property sheet. | public void | sortByName() Sorts properties by name by calling of popup menu on property sheet. | public JTableOperator | tblSheet() Returns JTableOperator representing SheetTable of this property sheet. | public JEditorPaneOperator | txtDescription() Returns JTextAreaOperator representing text from description area. | public void | verify() |
MODE_NO_PROPERTIES | final public static int MODE_NO_PROPERTIES(Code) | | "No Properties" property sheet.
|
MODE_PROPERTIES_OF_MULTIPLE_OBJECTS | final public static int MODE_PROPERTIES_OF_MULTIPLE_OBJECTS(Code) | | "Properties of Multiple Objects" property sheet.
|
MODE_PROPERTIES_OF_ONE_OBJECT | final public static int MODE_PROPERTIES_OF_ONE_OBJECT(Code) | | "Properties of" property sheet.
|
PropertySheetOperator | public PropertySheetOperator(JComponent sheet)(Code) | | Generic constructor
Parameters: sheet - instance of PropertySheet |
PropertySheetOperator | public PropertySheetOperator()(Code) | | Waits for property sheet anywhere in IDE.
|
PropertySheetOperator | public PropertySheetOperator(String sheetName)(Code) | | Waits for property sheet with given name. Typically sheet
name is used as window title.
Parameters: sheetName - name of sheet to find (e.g. "Properties of MyClass") |
PropertySheetOperator | public PropertySheetOperator(ContainerOperator contOper, String sheetName)(Code) | | Waits for property sheet with given name in specified
container.
Parameters: contOper - where to find Parameters: sheetName - name of sheet to find (e.g. "Properties of MyClass") |
PropertySheetOperator | public PropertySheetOperator(ContainerOperator contOper)(Code) | | Waits for property sheet in specified ContainerOperator.
It is for example PropertySheet in Options window.
Parameters: contOper - where to find |
PropertySheetOperator | public PropertySheetOperator(ContainerOperator contOper, int index)(Code) | | Waits for index-th property sheet in specified ContainerOperator.
Parameters: contOper - where to find Parameters: index - int index |
btHelp | public JButtonOperator btHelp()(Code) | | Returns JButtonOperator representing help button of description area.
instance of JButtonOperator |
close | public void close()(Code) | | Closes this property sheet and waits until
it is not closed. In fact it closes container in which this property
sheet is placed. It can be a TopComponent in the main window or in a separate
frame, or a dialog.
|
getDescription | public String getDescription()(Code) | | Gest description from description area.
description from description area. |
getDescriptionHeader | public String getDescriptionHeader()(Code) | | Gets text of header from description area.
text of header from description area |
help | public void help()(Code) | | Shows help by calling popup menu on property sheet.
|
lblDescriptionHeader | public JLabelOperator lblDescriptionHeader()(Code) | | Returns JLabelOperator representing header of description area.
instance of JLabelOperator |
showDescriptionArea | public void showDescriptionArea()(Code) | | Shows or hides description area depending on whether it is already shown
or not. It just invokes Show description area popup menu item.
|
sortByCategory | public void sortByCategory()(Code) | | Sorts properties by category by calling of popup menu on property sheet.
|
sortByName | public void sortByName()(Code) | | Sorts properties by name by calling of popup menu on property sheet.
|
tblSheet | public JTableOperator tblSheet()(Code) | | Returns JTableOperator representing SheetTable of this property sheet.
instance of JTableOperator |
txtDescription | public JEditorPaneOperator txtDescription()(Code) | | Returns JTextAreaOperator representing text from description area.
instance of JTextAreaOperator |
verify | public void verify()(Code) | | Performs verification by accessing all sub-components
|
Methods inherited from org.netbeans.jellytools.TopComponentOperator | public void attachTo(String targetTopComponentName, String side)(Code)(Java Doc) public void attachTo(TopComponentOperator targetTopComponentOperator, String side)(Code)(Java Doc) public void cloneDocument()(Code)(Java Doc) public void close()(Code)(Java Doc) public void closeAllDocuments()(Code)(Java Doc) public void closeDiscard()(Code)(Java Doc) public void closeWindow()(Code)(Java Doc) protected TopComponentOperator findParentTopComponent()(Code)(Java Doc) public static JComponent findTopComponent(String name, int index)(Code)(Java Doc) protected static JComponent findTopComponent(ContainerOperator cont, String name, int index, ComponentChooser subchooser)(Code)(Java Doc) public boolean isModified()(Code)(Java Doc) protected boolean isOpened()(Code)(Java Doc) public void makeComponentVisible()(Code)(Java Doc) public void maximize()(Code)(Java Doc) public void pushMenuOnTab(String popupPath)(Code)(Java Doc) public void restore()(Code)(Java Doc) public void save()(Code)(Java Doc) public void saveDocument()(Code)(Java Doc) public void setUnmodified()(Code)(Java Doc) public void waitClosed()(Code)(Java Doc) protected static JComponent waitTopComponent(String name, int index)(Code)(Java Doc) protected static JComponent waitTopComponent(ContainerOperator cont, String name, int index, ComponentChooser subchooser)(Code)(Java Doc)
|
|
|
|