public class HtmlElement extends Object
| Constructor and Description |
|---|
HtmlElement(AbstractComponent component) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttribute(String attributeName)
Gets html attribute value for this element
|
List<HtmlAttribute> |
getAttributes()
Gets all attributes declared on this DOM element with their values.
|
boolean |
getDraggable()
Gets the Draggable property of the element
|
boolean |
getHidden()
Gets the Hidden property of the element
|
String |
getInnerHtml()
Gets the innerHTML property of the element
|
String |
getOuterHtml()
Gets the outerHTML property of the element
|
Map<String,String> |
getStyle()
Gets the computed style of the element.
|
String |
getStyle(String key)
Gets the style value by a specific key
|
int |
getTabIndex()
Gets the Tab Index of the element
|
String |
getTagName()
Gets the Tag Name of the element
|
String |
getTitle()
Gets the Title property of the element, also known as hint text
|
void |
setDraggable(boolean value)
Sets the Draggable property of the element
|
void |
setHidden(boolean value)
Sets the Hidden property of the element
|
void |
setInnerHtml(String value)
Sets the innerHTML property of the element
|
void |
setOuterHtml(String value)
Sets the outerHTML property of the element
|
void |
setTabIndex(int value)
Sets the Tab Index of the element
|
void |
setTitle(String value)
Sets the Title property of the element, also known as hint text
|
public HtmlElement(AbstractComponent component)
public List<HtmlAttribute> getAttributes()
public String getAttribute(String attributeName)
attributeName - name of the attribute to be retrievedpublic Map<String,String> getStyle()
public String getStyle(String key)
key - to get style forpublic String getInnerHtml()
public void setInnerHtml(String value)
value - - new value of the innerHTMLpublic String getOuterHtml()
public void setOuterHtml(String value)
value - - new value of the outerHTMLpublic String getTagName()
public boolean getHidden()
public void setHidden(boolean value)
value - - boolean valuepublic int getTabIndex()
public void setTabIndex(int value)
value - - int indexpublic String getTitle()
public void setTitle(String value)
value - - string titlepublic boolean getDraggable()
public void setDraggable(boolean value)
value - - boolean true to enable draggableCopyright © 2020. All rights reserved.