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.FertileNode
DOM 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 Main
appendChild(int index, com.hp.gagawa.java.Node child)
Appends a child node at the given indexMain
appendChild(com.hp.gagawa.java.Node child)
Appends a child node to the end of this element's DOM treeMain
appendChild(com.hp.gagawa.java.Node... children)
Appends the given children in the order givenMain
appendChild(List<com.hp.gagawa.java.Node> children)
Appends a list of children in the order given in the list.Main
appendText(String text)
Convenience method which appends a text node to this element.String
getCSSClass()
Gets the value of the class attribute, raw (unescaped).String
getDir()
Gets the value of the dir attribute, raw (unescaped).String
getId()
Gets the value of the id attribute, raw (unescaped).String
getLang()
Gets the value of the lang attribute, raw (unescaped).String
getStyle()
Gets the value of the style attribute, raw (unescaped).String
getTitle()
Gets the value of the title attribute, raw (unescaped).Main
removeChild(com.hp.gagawa.java.Node child)
Removes the given child nodeMain
removeChildren()
Removes all child nodesboolean
removeCSSClass()
Removes the class attribute.boolean
removeDir()
Removes the dir attribute.boolean
removeId()
Removes the ID attribute.boolean
removeLang()
Removes the lang attribute.boolean
removeStyle()
Removes the style attribute.boolean
removeTitle()
Removes the title attribute.Main
setCSSClass(String value)
Sets the value of the class attribute, raw (unescaped).Main
setDir(String value)
Sets the value of the dir attribute, raw (unescaped).Main
setId(String value)
Sets the value of the ID attribute, raw (unescaped).Main
setLang(String value)
Sets the value of the lang attribute, raw (unescaped).Main
setStyle(String value)
Sets the value of the style attribute, raw (unescaped).Main
setTitle(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).
-
-