Example usage for Java org.apache.wicket.markup.html.basic Label fields, constructors, methods, implement or subclass
The text is from its open source code.
Label(final String id, Serializable label) Convenience constructor. | |
Label(final String id, IModel> model) | |
Label(final String id) Constructor |
Component | add(final Behavior... behaviors) Adds a behavior modifier to the component. |
Z | findParent(final Class Finds the first container parent of this component of the given class. |
List extends Behavior> | getBehaviors() Gets the currently coupled Behavior s as a unmodifiable list. |
IModel> | getDefaultModel() Gets the model. |
Object | getDefaultModelObject() Gets the backing model object. |
String | getDefaultModelObjectAsString() Gets a model object as a string. |
String | getId() Gets the id of this component. |
String | getMarkupId() Retrieves id by which this component is represented within the markup. |
String | getMarkupId(boolean createIfDoesNotExist) Retrieves id by which this component is represented within the markup. |
MarkupContainer | getParent() Gets any parent container, or null if there is none. |
boolean | isVisible() Gets whether this component and any children are visible. |
void | render() Render this component and all its children. |
Component | replaceWith(Component replacement) Replaces this component with another. |
Component | setDefaultModel(final IModel> model) Sets the given model. |
Component | setDefaultModelObject(final Object object) Sets the backing model object. |
Component | setEnabled(final boolean enabled) Sets whether this component is enabled. |
Component | setEscapeModelStrings(final boolean escapeMarkup) Sets whether model strings should be escaped. |
void | setMarkupId(Component comp) Copy markupId |
Component | setOutputMarkupId(final boolean output) Sets whether or not component will output id attribute into the markup. |
Component | setOutputMarkupPlaceholderTag(final boolean outputTag) Render a placeholder tag when the component is not visible. |
Component | setRenderBodyOnly(final boolean renderTag) If false the component's tag will be printed as well as its body (which is default). |
Component | setVersioned(boolean versioned) |
Component | setVisibilityAllowed(boolean allowed) Sets whether or not this component is allowed to be visible. |
Component | setVisible(final boolean visible) Sets whether this component and any children are visible. |