abk.html
Class AOptionElement

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

public class AOptionElement
extends AElementNode<AOptionElement>
implements IDisableable

See Also:
Serialized Form

Field Summary
private  boolean iDisabled
           
private  String iLabel
           
private  boolean iSelected
           
private  String iValue
           
 
Fields inherited from class abk.html.ANodeObject
iClass
 
Constructor Summary
AOptionElement(String tagName)
           
AOptionElement(String tagName, IOptionItem item)
           
 
Method Summary
 boolean disabled()
           
 AOptionElement disabled(boolean disabled)
          Establece el valor del atributo disabled del objeto.
protected  void doDisabled(StringBuilder sb)
           
protected  void doLabel(StringBuilder sb)
           
protected  void doSelected(StringBuilder sb)
           
protected  void doTagStart(StringBuilder sb)
          Escribe los atributos del elemento.
protected  void doValue(StringBuilder sb)
           
 String label()
           
 AOptionElement label(String label)
           
 AOptionElement reset()
          Establece el valor de los atributos className, id y title a cadenas vacías.
 boolean selected()
           
 AOptionElement selected(boolean selected)
           
 String value()
           
 AOptionElement value(boolean value)
           
 AOptionElement value(byte value)
           
 AOptionElement value(char value)
           
 AOptionElement value(double value)
           
 AOptionElement value(Enum<?> value)
           
 AOptionElement value(float value)
           
 AOptionElement value(int value)
           
 AOptionElement value(long value)
           
 AOptionElement value(Serializable value)
           
 AOptionElement value(short value)
           
 AOptionElement value(String value)
           
 
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

iValue

private String iValue

iLabel

private String iLabel

iDisabled

private boolean iDisabled

iSelected

private boolean iSelected
Constructor Detail

AOptionElement

public AOptionElement(String tagName)

AOptionElement

public AOptionElement(String tagName,
                      IOptionItem item)
Method Detail

reset

public AOptionElement 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<AOptionElement>
Returns:
El propio objeto instanciado.

value

public AOptionElement value(String value)

value

public AOptionElement value(Enum<?> value)

value

public AOptionElement value(Serializable value)

value

public final AOptionElement value(boolean value)

value

public final AOptionElement value(int value)

value

public final AOptionElement value(long value)

value

public final AOptionElement value(short value)

value

public final AOptionElement value(byte value)

value

public final AOptionElement value(char value)

value

public final AOptionElement value(float value)

value

public final AOptionElement value(double value)

value

public String value()

doValue

protected void doValue(StringBuilder sb)

label

public AOptionElement label(String label)

label

public String label()

doLabel

protected void doLabel(StringBuilder sb)

disabled

public AOptionElement 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.

disabled

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

doDisabled

protected void doDisabled(StringBuilder sb)

selected

public AOptionElement selected(boolean selected)

selected

public boolean selected()

doSelected

protected void doSelected(StringBuilder sb)

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<AOptionElement>
Parameters:
sb - Objeto utilizado para la serialización.


Copyright © 2024. All rights reserved.