|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 fragment 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 IMarkupFragmentindex - Index into markup list
public final IMarkupFragment find(String id)
IMarkupFragment
find in interface IMarkupFragmentid - The component's id to search for
public final MarkupResourceStream getMarkupResourceStream()
IMarkupFragment
getMarkupResourceStream in interface IMarkupFragmentpublic final int size()
IMarkupFragment
size in interface IMarkupFragmentpublic final Markup getRootMarkup()
public String toString()
toString in class Objectpublic String toString(boolean markupOnly)
toString in interface IMarkupFragmentmarkupOnly - 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 | |||||||||