|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.markup.Markup
public class Markup
The content of a markup file, consisting of a list of markup elements.
MarkupResourceStream
,
MarkupElement
,
ComponentTag
,
RawMarkup
Field Summary | |
---|---|
static Markup |
NO_MARKUP
Placeholder that indicates no markup |
Constructor Summary | |
---|---|
Markup(CharSequence markup)
Constructor |
|
Markup(MarkupResourceStream markupResourceStream)
Constructor |
Method Summary | |
---|---|
void |
addMarkupElement(int pos,
MarkupElement markupElement)
Add a MarkupElement |
void |
addMarkupElement(MarkupElement markupElement)
Add a MarkupElement |
IMarkupFragment |
find(String id)
Find the markup element index of the component with 'path' |
MarkupElement |
get(int index)
Get the MarkupElement at the index provided. |
MarkupResourceStream |
getMarkupResourceStream()
Get the underlying markup resource stream, which might contain more than just the markup portion represented by the IMarkupFragment. |
String |
locationAsString()
|
void |
makeImmutable()
Make all tags immutable and the list of elements unmodifiable. |
int |
size()
The number of markup elements. |
String |
toString()
|
String |
toString(boolean markupOnly)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Markup NO_MARKUP
Constructor Detail |
---|
public Markup(CharSequence markup)
markup
- The associated Markuppublic Markup(MarkupResourceStream markupResourceStream)
markupResourceStream
- The associated MarkupMethod Detail |
---|
public final MarkupElement get(int index)
IMarkupFragment
get
in interface IMarkupFragment
index
- Index into markup list
public final MarkupResourceStream getMarkupResourceStream()
IMarkupFragment
getMarkupResourceStream
in interface IMarkupFragment
public String locationAsString()
public final int size()
IMarkupFragment
size
in interface IMarkupFragment
public final void addMarkupElement(MarkupElement markupElement)
markupElement
- public final void addMarkupElement(int pos, MarkupElement markupElement)
pos
- markupElement
- public final void makeImmutable()
public final IMarkupFragment find(String id)
IMarkupFragment
find
in interface IMarkupFragment
id
- The component's id to search for
public final String toString()
toString
in class Object
public final String toString(boolean markupOnly)
toString
in interface IMarkupFragment
markupOnly
- True, if only the markup shall be returned
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |