abk.html
Class AAnchorElement

java.lang.Object
  extended by abk.html.ANodeObject<T>
      extended by abk.html.AElementNode<AAnchorElement>
          extended by abk.html.AAnchorElement
All Implemented Interfaces:
IDisableable, Serializable

public class AAnchorElement
extends AElementNode<AAnchorElement>
implements IDisableable

See Also:
Serialized Form

Field Summary
private  boolean iDisabled
           
private  String iHRef
           
private  String iRel
           
 
Fields inherited from class abk.html.ANodeObject
iClass
 
Constructor Summary
protected AAnchorElement(String tagName)
           
 
Method Summary
 boolean disabled()
           
 AAnchorElement disabled(boolean disabled)
          Establece el valor del atributo disabled del objeto.
protected  void doHref(StringBuilder sb)
          Serializa el atributo href del elemento anchor, pero únicamente si disabled vale false.
protected  void doRel(StringBuilder sb)
           
protected  void doTagStart(StringBuilder sb)
          Escribe los atributos del elemento.
 String href()
           
 AAnchorElement href(String name)
           
 String rel()
           
 AAnchorElement rel(String attr)
           
 AAnchorElement reset()
          Establece el valor de los atributos className, id y title a cadenas vacías.
 
Methods inherited from class abk.html.AElementNode
_tagAttribute, A, addClass, adoptNode, append, append, B, BR, BUTTON, CHECKBOX, children, classList, clearChildren, DIV, doClass, doId, doLang, doStyle, doTitle, EM, getTagName, HIDDEN, I, id, id, INPUT, insert, isEndTagForbidden, klass, klass, LABEL, lang, lang, P, PRE, remove, removeClass, SELECT, setEndTagForbidden, SPAN, STRONG, style, style, TABLE, tagAttribute, tagAttribute, text, TEXTAREA, textContent, textContent, title, title, U, VAR, write
 
Methods inherited from class abk.html.ANodeObject
appendTo, parent, parent, self, stringify, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

iHRef

private String iHRef

iRel

private String iRel

iDisabled

private boolean iDisabled
Constructor Detail

AAnchorElement

protected AAnchorElement(String tagName)
Method Detail

reset

public AAnchorElement reset()
Description copied from class: AElementNode
Establece el valor de los atributos className, id y title a cadenas vacías.

Overrides:
reset in class AElementNode<AAnchorElement>
Returns:
El propio objeto instanciado.

href

public AAnchorElement href(String name)

href

public String href()

doHref

protected void doHref(StringBuilder sb)
Serializa el atributo href del elemento anchor, pero únicamente si disabled vale false.

Parameters:
sb - Constructor de la cadena de texto a la que se añade el atributo.

rel

public AAnchorElement rel(String attr)

rel

public String rel()

doRel

protected void doRel(StringBuilder sb)

disabled

public boolean disabled()
Specified by:
disabled in interface IDisableable
Returns:
El valor actual del atributo disabled.

disabled

public AAnchorElement disabled(boolean disabled)
Description copied from interface: IDisableable
Establece el valor del atributo disabled del objeto.

Specified by:
disabled in interface IDisableable
Parameters:
disabled - Valor a poner.
Returns:
El propio objeto instanciado.

doTagStart

protected void doTagStart(StringBuilder sb)
Description copied from class: AElementNode
Escribe los atributos del elemento. Este método debe ser sobrecargado por los elementos descendientes de AElementNode para incluir sus atributos en la serialización de la etiqueta.

Overrides:
doTagStart in class AElementNode<AAnchorElement>
Parameters:
sb - Objeto utilizado para la serialización.


Copyright © 2024. All rights reserved.