@Type(tagName="a") public class Anchor extends Element
Modifier and Type | Class and Description |
---|---|
static class |
Anchor.Relationship
Specifies the relationship
|
static class |
Anchor.Target
Where to open the target URL
|
Constructor and Description |
---|
Anchor()
Default constructor
|
Anchor(java.lang.String href,
java.lang.String text)
Creates element with href and text properties
|
Modifier and Type | Method and Description |
---|---|
void |
drawAttributes()
Is drawing not null attributes: href, hrefflag, charset, type, rel, rev,
target.
|
java.lang.String |
getCharset()
Specifies the character-set of a linked document.
|
java.lang.String |
getHref()
Specifies the destination of a link.
|
java.lang.String |
getHreflang()
Specifies the language of a linked document.
|
Anchor.Relationship |
getRel()
Specifies the relationship between the current document and the linked
document.
|
Anchor.Relationship |
getRev()
Specifies the relationship between the linked document and the current
document.
|
Anchor.Target |
getTarget()
Specifies where to open the linked document: _blank, _parent, _self, _top
|
java.lang.String |
getType()
Specifies the MIME (Multipurpose Internet Mail Extensions) type of the
target URL.
|
Anchor |
setCharset(java.lang.String charset)
Set "charset" property and if element was draw call script at browser.
|
Anchor |
setHref(java.lang.String href)
Set "href" property and if element was draw call script at browser.
|
Anchor |
setHreflang(java.lang.String hreflang)
Set "hreflang" property and if element was draw call script at browser.
|
Anchor |
setRel(Anchor.Relationship rel)
Set "rel" property and if element was draw call removeAttribute script at
browser.
|
Anchor |
setRev(Anchor.Relationship rev)
Set "rev" property and if element was draw call removeAttribute script at
browser.
|
Anchor |
setTarget(Anchor.Target target)
Set "target" property and if element was draw call removeAttribute script
at browser.
|
Anchor |
setType(java.lang.String type)
Set "type" property and if element was draw call removeAttribute script
at browser.
|
add, addAllDropTargets, addDropTarget, addListener, addStyleClass, alert, assignText, callBack, callBack, callScript, clearDropTargets, clearElements, clearElements, confirm, confirm, drawAttribute, findElement, findParent, findViewElements, fireEvent, fireEvent, fireEventOnView, fireEventOnView, firePropertyChange, focus, getApplication, getBundle, getBundleObject, getCustomDragMove, getDir, getDragDropEventsOptions, getDropTargets, getElements, getElements, getEventListeners, getId, getLang, getParent, getStyle, getStyleClass, getTabIndex, getText, getTitle, insert, isChildrenSetChanged, isContenteditable, isDraggable, isDrawn, isEscapeText, isListening, isListening, isListening, print, prompt, prompt, remove, remove, removeAttribute, removeDropTarget, removeListener, removeListener, removeParent, removeStyleClass, replace, replaceStyleClass, retrieveListeners, retrieveListeners, setChangeChildrenSet, setContenteditable, setCustomDragMove, setDir, setDragDropEventsOptions, setDraggable, setDrawn, setEscapeText, setLang, setParent, setStyle, setStyleClass, setTabIndex, setText, setTitle, transformTagName
public Anchor()
public Anchor(java.lang.String href, java.lang.String text)
href
- propertytext
- property@InitializeAttributes public void drawAttributes()
public java.lang.String getCharset()
public Anchor setCharset(java.lang.String charset)
charset
- the charset to set. If is null call removeAttribute at
browser. If not null call set "charset" property to element at
browser.public java.lang.String getHref()
public Anchor setHref(java.lang.String href)
href
- the href to set. If is null call removeAttribute at browser.
If not null call set "href" property to element at browser.public java.lang.String getHreflang()
public Anchor setHreflang(java.lang.String hreflang)
hreflang
- the hreflang to set. If is null call removeAttribute at
browser. If not null call set "hreflang" property of element
at browser.public Anchor.Relationship getRel()
public Anchor setRel(Anchor.Relationship rel)
rel
- the rel to set. If is null call removeAttribute at browser. If
not null call set "rel" property of element at browser.public Anchor.Relationship getRev()
public Anchor setRev(Anchor.Relationship rev)
rev
- the rev to set. If is null call removeAttribute at browser. If
not null call set "rev" property of element at browser.public java.lang.String getType()
public Anchor setType(java.lang.String type)
type
- the type to set. If is null call removeAttribute at browser.
If not null call set "type" property of element at browser.public Anchor.Target getTarget()
public Anchor setTarget(Anchor.Target target)
target
- the target to set. If is null call removeAttribute at browser.
If not null call set "target" property of element at browser.