| |
|
| org.netbeans.modules.visualweb.gravy.TopComponentOperator org.netbeans.modules.visualweb.gravy.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();
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. |
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 |
getPropertySheetTabOperator | public PropertySheetTabOperator getPropertySheetTabOperator(String tabName)(Code) | | Gets PropertySheetTabOperator with given name. It selects requested tab
if exist and it is not active.
Parameters: tabName - name of tab to find. instance of PropertySheetTabOperator |
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 |
tbpPropertySheetTabbedPane | public JTabbedPaneOperator tbpPropertySheetTabbedPane()(Code) | | Gets JTabbedPaneOperator of this property sheet.
instance of JTabbedPaneOperator |
txtDescription | public JTextAreaOperator txtDescription()(Code) | | Returns JTextAreaOperator representing text from description area.
instance of JTextAreaOperator |
verify | public void verify()(Code) | | Performs verification by accessing all sub-components
|
|
|
|