Class SheetJsniUtil
java.lang.Object
com.vaadin.addon.spreadsheet.client.SheetJsniUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearCSSRules(com.google.gwt.dom.client.StyleElement stylesheet) Clears the rules starting from the given indexfinal StringconvertUnicodeIntoCharacter(int charCode) voiddeleteRule(com.google.gwt.dom.client.StyleElement stylesheet, int ruleindex) static com.google.gwt.dom.client.Element[]getAssignedElements(com.google.gwt.dom.client.Element slot) static com.google.gwt.dom.client.Element[]getComposedPath(com.google.gwt.user.client.Event event) String[]getOverlayRules(com.google.gwt.dom.client.StyleElement stylesheet, String[] overlaySelectors) Gets all Overlay rulesintintstatic com.google.gwt.dom.client.ElementgetVirtualChild(String nodeId, String appId) intinsertRule(com.google.gwt.dom.client.StyleElement stylesheet, String css) Insert one CSS rule to the end of given stylesheetfinal intreturns 1 for row 2 for column 0 for not headerfinal voidparseColRow(String str) final intparseHeaderIndex(String str) returns the header indexstatic DOMTokenListpartOf(com.google.gwt.dom.client.Element element) Gets the part attribute of the given element as aDOMTokenList.intreplaceSelector(com.google.gwt.dom.client.StyleElement stylesheet, String selector, int ruleindex)
-
Constructor Details
-
SheetJsniUtil
public SheetJsniUtil()
-
-
Method Details
-
parseColRow
-
getParsedCol
public int getParsedCol() -
getParsedRow
public int getParsedRow() -
isHeader
returns 1 for row 2 for column 0 for not header -
parseHeaderIndex
returns the header index -
convertUnicodeIntoCharacter
-
insertRule
Insert one CSS rule to the end of given stylesheet -
deleteRule
public void deleteRule(com.google.gwt.dom.client.StyleElement stylesheet, int ruleindex) -
replaceSelector
public int replaceSelector(com.google.gwt.dom.client.StyleElement stylesheet, String selector, int ruleindex) -
clearCSSRules
public void clearCSSRules(com.google.gwt.dom.client.StyleElement stylesheet) Clears the rules starting from the given index -
getOverlayRules
public String[] getOverlayRules(com.google.gwt.dom.client.StyleElement stylesheet, String[] overlaySelectors) Gets all Overlay rules -
getVirtualChild
-
getComposedPath
public static com.google.gwt.dom.client.Element[] getComposedPath(com.google.gwt.user.client.Event event) -
getAssignedElements
public static com.google.gwt.dom.client.Element[] getAssignedElements(com.google.gwt.dom.client.Element slot) -
partOf
Gets the part attribute of the given element as aDOMTokenList. This is a helper method to access the 'part' property of a web component, which is not directly available on the standardElementAPI.- Parameters:
element- The element from which to retrieve the part names.- Returns:
- A
DOMTokenListcontaining the part names of the element.
-