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 | 
|---|---|
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, addStyleClass, alert, assignText, callBack, callScript, clearDropTargets, clearElements, clearElements, confirm, findElement, findEventOptions, findParent, findViewElements, fireEvent, fireEvent, fireEventOnView, fireEventOnView, firePropertyChange, focus, getApplication, getContenteditableValue, getDir, getDropTargets, getElements, getElements, getEventListeners, getId, getLang, getParent, getStyle, getStyle, getStyleClass, getStyles, getTabIndex, getText, getTitle, getTypeEvents, insert, isChildrenSetChanged, isContenteditable, isDraggable, isDrawn, isListening, listenerOff, listenerOn, print, prompt, remove, remove, removeDropTarget, removeEventOptions, removeParent, removeStyle, removeStyleClass, removeStyles, replace, replaceStyleClass, setChangeChildrenSet, setContenteditable, setDir, setDrawn, setEventOptions, setLang, setParent, setStyle, setStyleClass, setStyles, setTabIndex, setText, setTitlepublic Anchor()
public Anchor(java.lang.String href,
              java.lang.String text)
href - propertytext - propertypublic 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.