Package org.apache.wicket
Class DequeueContext
java.lang.Object
org.apache.wicket.DequeueContext
Context for component dequeueing. Keeps track of markup position and container stack.
- Author:
- igor
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A bookmark for the DequeueContext stack -
Constructor Summary
ConstructorDescriptionDequeueContext
(IMarkupFragment markup, MarkupContainer root, boolean skipFirst) -
Method Summary
Modifier and TypeMethodDescriptionSearches the container stack for a component that can be dequeudeboolean
Checks if the tag returned bypeekTag()
is either open or open-close.Retrieves the container on the top of the containers stackpeekTag()
Peeks markup tag that would be retrieved by call totakeTag()
Pops a container from the container stackvoid
pushContainer
(MarkupContainer container) Pushes a container onto the container stackvoid
restore
(DequeueContext.Bookmark bookmark) Restores the state of the context from the bookmarksave()
Saves the state of the context into a bookmark which can later be used to restore it.void
Skips to the closing tag of the tag retrieved from last call totakeTag()
takeTag()
Retrieves the next markup tag
-
Constructor Details
-
DequeueContext
-
-
Method Details
-
save
Saves the state of the context into a bookmark which can later be used to restore it. -
restore
Restores the state of the context from the bookmark- Parameters:
bookmark
-
-
peekTag
Peeks markup tag that would be retrieved by call totakeTag()
- Returns:
-
takeTag
Retrieves the next markup tag- Returns:
-
skipToCloseTag
Skips to the closing tag of the tag retrieved from last call totakeTag()
-
isAtOpenOrOpenCloseTag
Checks if the tag returned bypeekTag()
is either open or open-close.- Returns:
-
peekContainer
Retrieves the container on the top of the containers stack- Returns:
-
pushContainer
Pushes a container onto the container stack- Parameters:
container
-
-
popContainer
Pops a container from the container stack- Returns:
-
findComponentToDequeue
Searches the container stack for a component that can be dequeude- Parameters:
tag
-- Returns:
-