|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eggframework2.view.elements.xhtml.EventableImpl
public class EventableImpl
| Constructor Summary | |
|---|---|
EventableImpl(Eventable element)
|
|
| Method Summary | |
|---|---|
void |
addEventAttribute(EventType event,
boolean onTheEnd,
JavascriptCode code)
[PL] Dodaje kod JavaScript do atrybutu zdarzenia w podanym miejscu. |
void |
addEventAttribute(EventType event,
boolean onTheEnd,
java.lang.String javascript)
[PL] Dodaje kod JavaScript do atrybutu zdarzenia w podanym miejscu. |
void |
addEventAttribute(EventType event,
JavascriptCode code)
[PL] Dodaje kod JavaScript na końcu atrybutu zdarzenia (za średnikiem). |
void |
addEventAttribute(EventType event,
java.lang.String javascript)
[PL] Dodaje kod JavaScript na końcu atrybutu zdarzenia (za średnikiem). |
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 EventableImpl(Eventable element)
| Method Detail |
|---|
public void addEventAttribute(EventType event,
boolean onTheEnd,
java.lang.String javascript)
throws java.lang.IllegalArgumentException
Eventable
addEventAttribute in interface Eventableevent - [PL] Typ zdarzeniaonTheEnd - [PL] Jeśli true to kod zostanie wstawiony na końcu, za
średnikiemjavascript - [PL] Kod JavaScript
java.lang.IllegalArgumentException
public void addEventAttribute(EventType event,
boolean onTheEnd,
JavascriptCode code)
throws java.lang.IllegalArgumentException
Eventable
addEventAttribute in interface Eventableevent - [PL] Typ zdarzeniaonTheEnd - [PL] Jeśli true to kod zostanie wstawiony na końcu, za
średnikiemcode - [PL] Kod JavaScript
java.lang.IllegalArgumentException
public void addEventAttribute(EventType event,
java.lang.String javascript)
throws java.lang.IllegalArgumentException
Eventable
addEventAttribute in interface Eventableevent - [PL] Typ zdarzenia średnikiemjavascript - [PL] Kod JavaScript
java.lang.IllegalArgumentException
public void addEventAttribute(EventType event,
JavascriptCode code)
throws java.lang.IllegalArgumentException
Eventable
addEventAttribute in interface Eventableevent - [PL] Typ zdarzenia średnikiemcode - [PL] Kod JavaScript
java.lang.IllegalArgumentException
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 Attributable
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 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 | |||||||||