|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.markup.AbstractMarkupFragment
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)
Finds a markup fragment that spans a tag |
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(boolean markupOnly)
|
| Methods inherited from class org.apache.wicket.markup.AbstractMarkupFragment |
|---|
find, toString |
| 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
index - Index into markup list
public final IMarkupFragment find(String id)
IMarkupFragment
public final MarkupResourceStream getMarkupResourceStream()
IMarkupFragment
public final int size()
IMarkupFragment
public final Markup getRootMarkup()
public String toString(boolean markupOnly)
markupOnly - True if only the markup shall be returned
public Iterator<MarkupElement> iterator()
Iterable.iterator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||