Package de.xima.fc.form.common
Class Main
- java.lang.Object
-
- com.hp.gagawa.java.Node
-
- com.hp.gagawa.java.FertileNode
-
- de.xima.fc.form.common.Main
-
public class Main extends com.hp.gagawa.java.FertileNodeDOM node representing the main element.- Since:
- 8.2.0
-
-
Constructor Summary
Constructors Constructor Description Main()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MainappendChild(int index, com.hp.gagawa.java.Node child)Appends a child node at the given indexMainappendChild(com.hp.gagawa.java.Node child)Appends a child node to the end of this element's DOM treeMainappendChild(com.hp.gagawa.java.Node... children)Appends the given children in the order givenMainappendChild(List<com.hp.gagawa.java.Node> children)Appends a list of children in the order given in the list.MainappendText(String text)Convenience method which appends a text node to this element.StringgetCSSClass()Gets the value of the class attribute, raw (unescaped).StringgetDir()Gets the value of the dir attribute, raw (unescaped).StringgetId()Gets the value of the id attribute, raw (unescaped).StringgetLang()Gets the value of the lang attribute, raw (unescaped).StringgetStyle()Gets the value of the style attribute, raw (unescaped).StringgetTitle()Gets the value of the title attribute, raw (unescaped).MainremoveChild(com.hp.gagawa.java.Node child)Removes the given child nodeMainremoveChildren()Removes all child nodesbooleanremoveCSSClass()Removes the class attribute.booleanremoveDir()Removes the dir attribute.booleanremoveId()Removes the ID attribute.booleanremoveLang()Removes the lang attribute.booleanremoveStyle()Removes the style attribute.booleanremoveTitle()Removes the title attribute.MainsetCSSClass(String value)Sets the value of the class attribute, raw (unescaped).MainsetDir(String value)Sets the value of the dir attribute, raw (unescaped).MainsetId(String value)Sets the value of the ID attribute, raw (unescaped).MainsetLang(String value)Sets the value of the lang attribute, raw (unescaped).MainsetStyle(String value)Sets the value of the style attribute, raw (unescaped).MainsetTitle(String value)Sets the value of the title attribute, raw (unescaped).
-
-
-
Method Detail
-
appendChild
public Main appendChild(com.hp.gagawa.java.Node child)
Appends a child node to the end of this element's DOM tree- Parameters:
child- The node to be appended- Returns:
- This node for chaining method calls.
-
appendChild
public Main appendChild(int index, com.hp.gagawa.java.Node child)
Appends a child node at the given index- Parameters:
index- Insertion pointchild- The node to be appended- Returns:
- This node for chaining method calls.
-
appendChild
public Main appendChild(List<com.hp.gagawa.java.Node> children)
Appends a list of children in the order given in the list.- Parameters:
children- Nodes to be appended- Returns:
- This node for chaining method calls.
-
appendChild
public Main appendChild(com.hp.gagawa.java.Node... children)
Appends the given children in the order given- Parameters:
children- The nodes to be appended- Returns:
- This node for chaining method calls.
-
appendText
public Main appendText(String text)
Convenience method which appends a text node to this element. The text is appended raw, without escaping. You must ensure the text is correctly escaped.- Parameters:
text- The raw text to be appended- Returns:
- This node for chaining method calls.
-
getCSSClass
public String getCSSClass()
Gets the value of the class attribute, raw (unescaped).- Returns:
- The value of the class attribute, raw (unescaped).
-
setCSSClass
public Main setCSSClass(String value)
Sets the value of the class attribute, raw (unescaped).- Parameters:
value- The value of the class attribute, raw (unescaped).- Returns:
- This node for chaining method calls.
-
getDir
public String getDir()
Gets the value of the dir attribute, raw (unescaped).- Returns:
- The value of the dir attribute, raw (unescaped).
-
setDir
public Main setDir(String value)
Sets the value of the dir attribute, raw (unescaped).- Parameters:
value- The value of the dir attribute, raw (unescaped).- Returns:
- This node for chaining method calls.
-
getId
public String getId()
Gets the value of the id attribute, raw (unescaped).- Returns:
- The value of the id attribute, raw (unescaped).
-
setId
public Main setId(String value)
Sets the value of the ID attribute, raw (unescaped).- Parameters:
value- The value of the ID attribute, raw (unescaped).- Returns:
- This node for chaining method calls.
-
getLang
public String getLang()
Gets the value of the lang attribute, raw (unescaped).- Returns:
- The value of the lang attribute, raw (unescaped).
-
setLang
public Main setLang(String value)
Sets the value of the lang attribute, raw (unescaped).- Parameters:
value- The value of the lang attribute, raw (unescaped).- Returns:
- This node for chaining method calls.
-
getStyle
public String getStyle()
Gets the value of the style attribute, raw (unescaped).- Returns:
- The value of the style attribute, raw (unescaped).
-
setStyle
public Main setStyle(String value)
Sets the value of the style attribute, raw (unescaped).- Parameters:
value- The value of the style attribute, raw (unescaped).- Returns:
- This node for chaining method calls.
-
getTitle
public String getTitle()
Gets the value of the title attribute, raw (unescaped).- Returns:
- The value of the title attribute, raw (unescaped).
-
setTitle
public Main setTitle(String value)
Sets the value of the title attribute, raw (unescaped).- Parameters:
value- The value of the title attribute, raw (unescaped).- Returns:
- This node for chaining method calls.
-
removeCSSClass
public boolean removeCSSClass()
Removes the class attribute.- Returns:
- Whether the attribute was removed (i.e. whether it was present).
-
removeChild
public Main removeChild(com.hp.gagawa.java.Node child)
Removes the given child node- Parameters:
child- The node to be removed- Returns:
- This node for chaining method calls.
-
removeChildren
public Main removeChildren()
Removes all child nodes- Returns:
- This node for chaining method calls.
-
removeDir
public boolean removeDir()
Removes the dir attribute.- Returns:
- Whether the attribute was removed (i.e. whether it was present).
-
removeId
public boolean removeId()
Removes the ID attribute.- Returns:
- Whether the attribute was removed (i.e. whether it was present).
-
removeLang
public boolean removeLang()
Removes the lang attribute.- Returns:
- Whether the attribute was removed (i.e. whether it was present).
-
removeStyle
public boolean removeStyle()
Removes the style attribute.- Returns:
- Whether the attribute was removed (i.e. whether it was present).
-
removeTitle
public boolean removeTitle()
Removes the title attribute.- Returns:
- Whether the attribute was removed (i.e. whether it was present).
-
-