| java.lang.Object org.netbeans.modules.visualweb.designer.jsf.JsfSupportUtilities
JsfSupportUtilities | final public class JsfSupportUtilities (Code) | | Utilities class for the JSF support module.
author: Peter Zavadsky |
findPropertyNode | public static Node findPropertyNode(Node root, String xpaths)(Code) | | Return the given node corresponding to the given xpath.
NOTE: The xpath parameter may actually contain multiple xpaths
separated by colons.
NOTE: Only a simple subset of XPATH is supported/implemented!!
I support EXACTLY the following formats:
//tagname
//tagname[@attribute='value']
and
/tagname1/tagname2/.../tagnameN
/tagname1/tagname2/.../tagnameN[@attribute='value']
Note - combinations of these (e.g. //foo/bar[@baz='boo']/nei are not valid yet).
|
getComponentRootElementForDesignBean | public static Element getComponentRootElementForDesignBean(DesignBean designBean)(Code) | | |
getComponentRootElementForElement | public static Element getComponentRootElementForElement(Element element)(Code) | | |
getComponentRootElementForMarkupDesignBean | public static Element getComponentRootElementForMarkupDesignBean(MarkupDesignBean markupDesignBean)(Code) | | |
getComponentRootElementFromNode | public static Element getComponentRootElementFromNode(org.openide.nodes.Node node)(Code) | | |
getNodeRepresentation | public static org.openide.nodes.Node getNodeRepresentation(Element componentRootElement)(Code) | | |
isSpecialComponent | public static boolean isSpecialComponent(Element componentRootElement)(Code) | | |
isTrayComponent | public static boolean isTrayComponent(Element componentRootElement)(Code) | | |
isWebFormDataObject | public static boolean isWebFormDataObject(DataObject dataObject)(Code) | | |
isWebFormFileObject | public static boolean isWebFormFileObject(FileObject fileObject)(Code) | | |
onlyWhitespace | public static boolean onlyWhitespace(String s)(Code) | | Return true iff the string contains only whitespace
|
setStyleAttribute | public static boolean setStyleAttribute(Element componentRootElement, String attribute, int value)(Code) | | |
translateCoordinates | public static Point translateCoordinates(Box parentBox, int x, int y)(Code) | | Given absolute coordinates x,y in the viewport, compute
the CSS coordinates to assign to a box if it's parented by
the given parentBox such that the coordinates will result
in a box showing up at the absolute coordinates.
That was a really convoluted explanation, so to be specific:
If you have an absolutely positioned at 100, 100,
and you drag a button into it such that it's its child,
and you drag it to screen coordinate 75, 150, then, in order
for the button to be rendered at 75, 150 and be a child of
the div its top/left coordinates must be -25, 50.
|
updateLocalStyleValuesForElement | public static void updateLocalStyleValuesForElement(Element e, StyleData[] setStyleData, StyleData[] removeStyleData)(Code) | | |
|
|