/** * @param componentId * Required component name attribute * @return True if the current markup element is an openclose tag with the given component name */ public boolean atOpenCloseTag(final String componentId) { return atOpenCloseTag() && componentId.equals(getTag().getId()); }
/** * @param componentId * Required component name attribute * @return True if the current markup element is an openclose tag with the given component name */ public boolean atOpenCloseTag(final String componentId) { return atOpenCloseTag() && componentId.equals(getTag().getId()); }
/** * @param id * Required component id attribute * @return True if the current markup element is an open tag with the given component name */ public boolean atOpenTag(final String id) { return atOpenTag() && id.equals(getTag().getId()); }
/** * @param id * Required component id attribute * @return True if the current markup element is an open tag with the given component name */ public boolean atOpenTag(final String id) { return atOpenTag() && id.equals(getTag().getId()); }
/** * @param componentId * Required component name attribute * @return True if the current markup element is an openclose tag with the given component name */ public boolean atOpenCloseTag(final String componentId) { return atOpenCloseTag() && componentId.equals(getTag().getId()); }
/** * @param id * Required component id attribute * @return True if the current markup element is an open tag with the given component name */ public boolean atOpenTag(final String id) { return atOpenTag() && id.equals(getTag().getId()); }
/** * @param componentId * Required component name attribute * @return True if the current markup element is an openclose tag with the given component name */ public boolean atOpenCloseTag(final String componentId) { return atOpenCloseTag() && componentId.equals(getTag().getId()); }
/** * @return True if current markup element is an open tag */ public boolean atOpenTag() { return atTag() && getTag().isOpen(); }
/** * @return True if current markup element is a close tag */ public boolean atCloseTag() { return atTag() && getTag().isClose(); }
/** * @return True if current markup element is an openclose tag */ public boolean atOpenCloseTag() { return atTag() && getTag().isOpenClose(); }
/** * @return True if current markup element is a close tag */ public boolean atCloseTag() { return atTag() && getTag().isClose(); }
/** * @return True if current markup element is an open tag */ public boolean atOpenTag() { return atTag() && getTag().isOpen(); }
/** * @return True if current markup element is an openclose tag */ public boolean atOpenCloseTag() { return atTag() && getTag().isOpenClose(); }
/** * @return True if current markup element is an open tag */ public boolean atOpenTag() { return atTag() && getTag().isOpen(); }
/** * @return True if current markup element is an openclose tag */ public boolean atOpenCloseTag() { return atTag() && getTag().isOpenClose(); }
/** * {@inheritDoc} */ @Override public ComponentTag getComponentTag(Component c) { IMarkupFragment markup = c.getMarkup(); MarkupStream stream = new MarkupStream(markup); return stream.getTag(); }
/** * @return True if current markup element is an openclose tag */ public boolean atOpenCloseTag() { return atTag() && getTag().isOpenClose(); }
/** * @return True if current markup element is an open tag */ public boolean atOpenTag() { return atTag() && getTag().isOpen(); }
/** * Gets the attribute with 'name' for the tag at the current position * * @param name * @param withWicketNamespace * @return null, if not found */ public final String getTagAttribute(final String name, final boolean withWicketNamespace) { String attr = (withWicketNamespace ? attr = getWicketNamespace() + ":" + name : name); return getTag().getAttributes().getString(attr); }
/** * Gets the attribute with 'name' for the tag at the current position * * @param name * @param withWicketNamespace * @return null, if not found */ public final String getTagAttribute(final String name, final boolean withWicketNamespace) { String attr = (withWicketNamespace ? attr = getWicketNamespace() + ":" + name : name); return getTag().getAttributes().getString(attr); }