|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.markup.parser.AbstractMarkupFilter org.apache.wicket.markup.parser.filter.InlineEnclosureHandler
public final class InlineEnclosureHandler
This is a markup inline filter. It identifies enclosures as attribute, for example: <tr
wicket:enclosure="">. The <tr> tag used in the example can be replaced with any html tag
that can contain child elements. If the 'child' attribute is empty it determines the wicket:id of
the child component automatically by analyzing the wicket component (in this case one wicket
component is allowed) in between the open and close tags. If the enclosure tag has a 'child'
attribute like <tr
wicket:enclosure="controllingChildId">
than more than just one wicket component inside
the enclosure tags are allowed and the child component which determines the visibility of the
enclosure is identified by the 'child' attribute value which must be equal to the relative child
id path.
InlineEnclosure
,
Serialized FormField Summary | |
---|---|
static String |
INLINE_ENCLOSURE_ATTRIBUTE_NAME
Attribute to identify inline enclosures |
static String |
INLINE_ENCLOSURE_ID_PREFIX
The Component id prefix. |
Constructor Summary | |
---|---|
InlineEnclosureHandler()
Construct. |
|
InlineEnclosureHandler(MarkupResourceStream resourceStream)
|
Method Summary | |
---|---|
static String |
getInlineEnclosureAttribute(ComponentTag tag)
Deprecated. This method always uses 'wicket:' as a namespace. It will be removed in Wicket 7 |
protected MarkupElement |
onComponentTag(ComponentTag tag)
Invoked when a ComponentTag was found. |
Component |
resolve(MarkupContainer container,
MarkupStream markupStream,
ComponentTag tag)
Try to resolve a component. |
Methods inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter |
---|
getMarkupResourceStream, getNextFilter, getWicketNamespace, getWicketNamespace, nextElement, onSpecialTag, postProcess, setNextFilter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String INLINE_ENCLOSURE_ID_PREFIX
public static final String INLINE_ENCLOSURE_ATTRIBUTE_NAME
Constructor Detail |
---|
public InlineEnclosureHandler()
public InlineEnclosureHandler(MarkupResourceStream resourceStream)
Method Detail |
---|
protected MarkupElement onComponentTag(ComponentTag tag) throws ParseException
AbstractMarkupFilter
By default this method is also called for WicketTags.
onComponentTag
in class AbstractMarkupFilter
ParseException
@Deprecated public static final String getInlineEnclosureAttribute(ComponentTag tag)
tag
- The ComponentTag of the markup element with wicket:enclosure attribute
public Component resolve(MarkupContainer container, MarkupStream markupStream, ComponentTag tag)
IComponentResolver
resolve
in interface IComponentResolver
container
- The container parsing its markupmarkupStream
- The current markupStreamtag
- The current component tag while parsing the markup
null
if not found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |