|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eggframework2.view.elements.Element
org.eggframework2.view.elements.xhtml.XhtmlElement
org.eggframework2.view.elements.xhtml.tags.AttributableXhtmlElement
public abstract class AttributableXhtmlElement
[PL] Rozszerza klasę XhtmlElement o implementację metod z interfejsu
Attributable, Styleable oraz Eventable. Metody te
tak naprawdę delegują wykonanie do implementacji AttributableImpl,
StylableImpl oraz EventableImpl
| Constructor Summary | |
|---|---|
AttributableXhtmlElement(java.lang.String tagName)
|
|
| 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). |
java.lang.String |
getId()
[PL] Zwraca wartość atrybutu ID. |
java.lang.String |
getStyleProperty(java.lang.String name)
[PL] Zwraca wartość wskazanej właściwości w atrybucie "style" |
boolean |
isVisible()
[PL] Zwraca typ logiczny określający czy element jest widoczny na ekranie, tzn. |
Attributable |
setAttribute(java.lang.String name,
java.lang.String value)
[PL] Dodaje nowy lub aktualizuje istniejący atrybut |
void |
setId(java.lang.String value)
[PL] Ustawia atrybut ID. |
Styleable |
setStyleProperty(java.lang.String name,
java.lang.String value)
[PL] Ustawia właściwość w atrybucie "style" elementu. |
Styleable |
setVisible(boolean visible)
[PL] Ustawia właściwość o nazwie "visibility" atrybutu "style". |
| Methods inherited from class org.eggframework2.view.elements.xhtml.XhtmlElement |
|---|
getTagName |
| Methods inherited from class org.eggframework2.view.elements.Element |
|---|
marshal, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eggframework2.view.elements.IElement |
|---|
marshal |
| Methods inherited from interface org.eggframework2.view.elements.IElement |
|---|
marshal |
| Constructor Detail |
|---|
public AttributableXhtmlElement(java.lang.String tagName)
| Method Detail |
|---|
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 setId(java.lang.String value)
value - [PL] Wartość atrybutu IDAttributable.setAttribute(String, String)public java.lang.String getId()
Attributable.getAttribute(String)
public java.lang.String getStyleProperty(java.lang.String name)
throws java.lang.IllegalArgumentException
Styleable
getStyleProperty in interface Styleablename - [PL] Nazwa właściwości np. color, z-index
java.lang.IllegalArgumentException - [PL] Gdy nazwa właściwości jest null lub pustym stringiem.Styleable.setStyleProperty(String, String)public boolean isVisible()
Styleable
isVisible in interface StyleableStyleable.setStyleProperty(String, String)
public Styleable setStyleProperty(java.lang.String name,
java.lang.String value)
throws java.lang.IllegalArgumentException
Styleable
<div style="color: black; border:black solid thin">
<div style="color: red; border:black solid thin">
setStyleProperty in interface Styleablename - [PL] nazwa właściwości np. color, z-indexvalue - [PL] wartość właściwości wstawiona po dwukropku ":". Jeśli
null to usuwa właściwość
java.lang.IllegalArgumentException - [PL] Gdy nazwa właściwości jest null lub pustym stringiem.public Styleable setVisible(boolean visible)
Styleable
setVisible in interface Styleablevisible - [PL] Jeśli true to wstawia wartość "show". Jeśli false to
wstawia wartość "hidden".
Styleable.setStyleProperty(String, String)
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||