public final class Components extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
assertTag(org.apache.wicket.Component component,
org.apache.wicket.markup.ComponentTag tag,
Set<? extends String> tagNames)
checks if given tag has one of given tag names else a
MarkupException will be thrown. |
static void |
assertTag(org.apache.wicket.Component component,
org.apache.wicket.markup.ComponentTag tag,
String... tagNames)
checks if given tag has one of given tag names else a
MarkupException will be thrown. |
static boolean |
hasTagName(org.apache.wicket.markup.ComponentTag tag,
Set<? extends String> tagNames)
checks if given tag has one of given tag names.
|
static boolean |
hasTagName(org.apache.wicket.markup.ComponentTag tag,
String... tagNames)
checks if given tag has one of given tag names.
|
static void |
hideIfModelIsEmpty(org.apache.wicket.Component component)
checks given component' default model, if it's empty or null the component will be hidden.
|
static void |
show(org.apache.wicket.Component... components)
sets all given components visible
|
public static boolean hasTagName(org.apache.wicket.markup.ComponentTag tag,
String... tagNames)
tag - The component tagtagNames - the names that at least one must matchpublic static boolean hasTagName(org.apache.wicket.markup.ComponentTag tag,
Set<? extends String> tagNames)
tag - The component tagtagNames - the names that at least one must matchpublic static void assertTag(org.apache.wicket.Component component,
org.apache.wicket.markup.ComponentTag tag,
String... tagNames)
MarkupException will be thrown.component - The componenttag - The component tagtagNames - the names that at least one must matchorg.apache.wicket.markup.MarkupException - if given tag has none of given tag namespublic static void assertTag(org.apache.wicket.Component component,
org.apache.wicket.markup.ComponentTag tag,
Set<? extends String> tagNames)
MarkupException will be thrown.component - The componenttag - The component tagtagNames - the names that at least one must matchorg.apache.wicket.markup.MarkupException - if given tag has none of given tag namespublic static void hideIfModelIsEmpty(org.apache.wicket.Component component)
component - component to checkpublic static void show(org.apache.wicket.Component... components)
components - The components to showCopyright © 2013 agilecoders.de. All Rights Reserved.