| org.netbeans.modules.visualweb.gravy.designer.DesignerPaneOperator
DesignerPaneOperator | public class DesignerPaneOperator extends JComponentOperator (Code) | | This class implements test functionality for the Design View of a project web-page.
|
Inner Class :public static class DesignerPaneChooser implements ComponentChooser | |
Method Summary | |
public void | addComponent(String component, int x, int y) Adds a component on Design View. | public void | addComponent(String component, int x, int y, String id, String value) Adds a component on Design View. | public void | addComponentFromPalette(String component, int x, int y, String id, String value, String palName) Adds a component on Design View. | public void | clickForPopup(String comp_id) Invokes a popup menu, related to a component, placed on Design View. | public void | clickMouse(String comp_id, int clickCount) Clicks mouse on a component, placed on Design View. | public Point | getComponentCenter(String comp_id) Returns a center coordinate of component, placed on Design View. | public Point | getComponentLocation(String componentID) Returns a coordinate of component top-left corner, placed on Design View. | public Rectangle | getComponentRectangle(String componentID) Returns measurements of a component, placed on Design View. | public Point | getCoords() Extracts and returns a coordinate of a component from a window "Properties". | public ContainerOperator | getDesignerView() Returns a Design View of a project web-page. | public void | makeComponentVisible() | public void | select(String comp_id) Selects a component on Design View. | public void | setBraveHeartPalette() Sets a component palette "BraveHeart" as a current palette. | public static void | setDefaultBraveHeartPalette() Sets a component palette "BraveHeart" as a default palette. | public static void | setDefaultPalette(String palName) Sets a component palette used by default. | public static void | setDefaultStandardPalette() Sets a component palette "Standard" as a default palette. | public void | setImage(String componentID, String imagePath) Sets an image to a component via Image customizer. | public void | setImage(int x, int y, String imagePath) Sets an image to a component via Image customizer. | public void | setPalette(String palName) Sets a current component palette. | public void | setStandardPalette() Sets a component palette "Standard" as a current palette. | public static void | switchToDesignerPane() Switch to Design View of web-page. | public static void | switchToJSPSource() Switch to JSP Editor of web-page. | public static void | switchToJavaSource() Switch to Java Editor of web-page. |
DesignerPaneOperator | public DesignerPaneOperator(ContainerOperator cont)(Code) | | Creates a new instance of this class
Parameters: cont - an object ContainerOperator related to container, which includes window of web-page. |
DesignerPaneOperator | public DesignerPaneOperator(ContainerOperator cont, int index)(Code) | | Creates a new instance of this class
Parameters: cont - an object ContainerOperator related to container, which includes window of web-page. Parameters: index - a number of desired component if container includes severalsimilar components |
DesignerPaneOperator | public DesignerPaneOperator()(Code) | | Creates a new instance of this class
|
addComponent | public void addComponent(String component, int x, int y)(Code) | | Adds a component on Design View.
Parameters: component - a component name Parameters: x - coordinate x of top-left component corner on Design View Parameters: y - coordinate y of top-left component corner on Design View |
addComponent | public void addComponent(String component, int x, int y, String id, String value)(Code) | | Adds a component on Design View.
Parameters: component - a component name Parameters: x - coordinate x of top-left component corner on Design View Parameters: y - coordinate y of top-left component corner on Design View Parameters: id - a name of modified component property Parameters: value - a value of modified component property |
addComponentFromPalette | public void addComponentFromPalette(String component, int x, int y, String id, String value, String palName)(Code) | | Adds a component on Design View.
Parameters: component - a component name Parameters: x - coordinate x of top-left component corner on Design View Parameters: y - coordinate y of top-left component corner on Design View Parameters: id - a name of modified component property Parameters: value - a value of modified component property Parameters: palName - a palette name |
clickForPopup | public void clickForPopup(String comp_id)(Code) | | Invokes a popup menu, related to a component, placed on Design View.
Parameters: comp_id - a component identifier |
clickMouse | public void clickMouse(String comp_id, int clickCount)(Code) | | Clicks mouse on a component, placed on Design View.
Parameters: comp_id - a component identifier Parameters: clickCount - a number of clicks |
getComponentCenter | public Point getComponentCenter(String comp_id)(Code) | | Returns a center coordinate of component, placed on Design View.
Parameters: comp_id - a component identifier an object Point |
getComponentLocation | public Point getComponentLocation(String componentID)(Code) | | Returns a coordinate of component top-left corner, placed on Design View.
Parameters: componentID - a component identifier an object Point |
getComponentRectangle | public Rectangle getComponentRectangle(String componentID)(Code) | | Returns measurements of a component, placed on Design View.
Parameters: componentID - a component identifier an object Rectangle |
getCoords | public Point getCoords()(Code) | | Extracts and returns a coordinate of a component from a window "Properties".
an object Point |
getDesignerView | public ContainerOperator getDesignerView()(Code) | | Returns a Design View of a project web-page.
an object ContainerOperator |
makeComponentVisible | public void makeComponentVisible()(Code) | | |
select | public void select(String comp_id)(Code) | | Selects a component on Design View.
Parameters: comp_id - a component identifier |
setBraveHeartPalette | public void setBraveHeartPalette()(Code) | | Sets a component palette "BraveHeart" as a current palette.
|
setDefaultBraveHeartPalette | public static void setDefaultBraveHeartPalette()(Code) | | Sets a component palette "BraveHeart" as a default palette.
|
setDefaultPalette | public static void setDefaultPalette(String palName)(Code) | | Sets a component palette used by default.
Parameters: palName - a palette name |
setDefaultStandardPalette | public static void setDefaultStandardPalette()(Code) | | Sets a component palette "Standard" as a default palette.
|
setImage | public void setImage(String componentID, String imagePath)(Code) | | Sets an image to a component via Image customizer.
Parameters: componentID - a component identifier Parameters: imagePath - a path to an image file |
setImage | public void setImage(int x, int y, String imagePath)(Code) | | Sets an image to a component via Image customizer.
Parameters: x - coordinate x of top-left component corner on Design View Parameters: y - coordinate y of top-left component corner on Design View Parameters: imagePath - a path to an image file |
setPalette | public void setPalette(String palName)(Code) | | Sets a current component palette.
Parameters: palName - a palette name |
setStandardPalette | public void setStandardPalette()(Code) | | Sets a component palette "Standard" as a current palette.
|
switchToDesignerPane | public static void switchToDesignerPane()(Code) | | Switch to Design View of web-page.
|
switchToJSPSource | public static void switchToJSPSource()(Code) | | Switch to JSP Editor of web-page.
|
switchToJavaSource | public static void switchToJavaSource()(Code) | | Switch to Java Editor of web-page.
|
|
|