|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eggframework2.view.elements.AttributableImpl
public class AttributableImpl
TODO [PL] Pomyslec nad nazwa tej klasy. [PL] Standardowa implementacja interfejsu Attributable.
| Constructor Summary | |
|---|---|
AttributableImpl(Attributable element)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAttribute(java.lang.String name)
[PL] Zwraca wartość atrybutu o podanej nazwie |
java.util.Set<java.lang.String> |
getAttributeNames()
[PL] Zwraca niemodyfikowalny zbiór nazw atrybutów (dodanie nowych/usunięcie istniejących nazw nie jest możliwe). |
void |
marshal(OutputBuilder builder)
[PL] Szereguje swoją zawartość do obiektu OutputBuilder |
Attributable |
setAttribute(java.lang.String name,
java.lang.String value)
[PL] Dodaje nowy lub aktualizuje istniejący atrybut |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttributableImpl(Attributable element)
| Method Detail |
|---|
public Attributable setAttribute(java.lang.String name,
java.lang.String value)
throws java.lang.IllegalArgumentException
Attributable
setAttribute in interface Attributablename - [PL] Nazwa atrybutu.value - [PL] Wartość atrybutu. Automatycznie konwertuje znaki
specjalne (&, >, <, ") do encji Xhtml. Jeśli null to usuwa
atrybut.
java.lang.IllegalArgumentException - [PL] Gdy nazwa jest null lub gdy nazwa atrybutu jest równa
"id" i wartośc jest pustym łańcuchem tekstowym "".
public java.lang.String getAttribute(java.lang.String name)
throws java.lang.IllegalArgumentException
Attributable
getAttribute in interface Attributablejava.lang.IllegalArgumentException - Gdy name jest nullpublic java.util.Set<java.lang.String> getAttributeNames()
Attributable
getAttributeNames in interface Attributablepublic void marshal(OutputBuilder builder)
IElementOutputBuilder
marshal in interface IElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||