|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.markup.MarkupFragment
public class MarkupFragment
Represents a portion of a markup file, but always spans a complete tag. E.g.
open-body-close: <span>body</span> open-close: <span/> open-no-close: <input ...>body
Markup
,
MarkupElement
Constructor Summary | |
---|---|
MarkupFragment(IMarkupFragment markup,
int startIndex)
Construct. |
Method Summary | |
---|---|
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. |
Markup |
getRootMarkup()
|
Iterator<MarkupElement> |
iterator()
|
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 |
Constructor Detail |
---|
public MarkupFragment(IMarkupFragment markup, int startIndex)
markup
- The parent markup. May not be null.startIndex
- The start index of the child markup
IndexOutOfBoundsException
- if the index is out of range (index < 0 || index >= size())Method Detail |
---|
public final MarkupElement get(int index)
IMarkupFragment
get
in interface IMarkupFragment
index
- Index into markup list
public final IMarkupFragment find(String id)
IMarkupFragment
find
in interface IMarkupFragment
id
- The component's id to search for
public final MarkupResourceStream getMarkupResourceStream()
IMarkupFragment
getMarkupResourceStream
in interface IMarkupFragment
public final int size()
IMarkupFragment
size
in interface IMarkupFragment
public final Markup getRootMarkup()
public String toString()
toString
in class Object
public String toString(boolean markupOnly)
toString
in interface IMarkupFragment
markupOnly
- True if only the markup shall be returned
public Iterator<MarkupElement> iterator()
iterator
in interface Iterable<MarkupElement>
Iterable.iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |