public abstract class ReadOnlyAppearance<T> extends Object
<div class="form-group">
<label class="control-label hal-form-label"></label>
<div class="hal-form-input">
<value-element class="form-control-static"></p>
</div>
</div>
Unless you override safeApply(Decoration, Object) or safeUnapply(Decoration) the following
decorations are not supported by this read-only appearance:
| Modifier and Type | Field and Description |
|---|---|
protected static org.jboss.hal.resources.Constants |
CONSTANTS |
static String |
FORM_ITEM_GROUP
Used as a
data- attribute in the root element of the appearances. |
| Modifier | Constructor and Description |
|---|---|
protected |
ReadOnlyAppearance(Set<Decoration> supportedDecorations) |
| Modifier and Type | Method and Description |
|---|---|
default void |
apply(Decoration decoration) |
<C> void |
apply(Decoration decoration,
C context)
Calls
safeApply(Decoration, Object) if the decoration is supported and has not been applied yet. |
protected void |
applyDefaults(Set<Decoration> appliedDecorations) |
elemental2.dom.HTMLElement |
asElement() |
default String |
asString(T value) |
void |
attach() |
void |
clearValue() |
String |
getId() |
int |
getTabIndex() |
static elemental2.dom.HTMLElement |
helpBlock() |
static elemental2.dom.HTMLElement |
hintMarker() |
static elemental2.dom.HTMLElement |
inputGroup() |
protected abstract String |
name() |
static elemental2.dom.HTMLElement |
restrictedMarker() |
protected <C> void |
safeApply(Decoration decoration,
C context)
Safely applies a decoration.
|
protected void |
safeUnapply(Decoration decoration)
Safely unapplies a decoration.
|
void |
setAccessKey(char key) |
void |
setFocus(boolean focused) |
void |
setId(String id) |
void |
setLabel(String label) |
void |
setName(String name) |
void |
setTabIndex(int index) |
void |
showExpression(String expression) |
void |
showValue(T value) |
void |
unapply(Decoration decoration)
Calls
safeUnapply(Decoration) if the decoration is supported and has been applied. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdetachprotected static final org.jboss.hal.resources.Constants CONSTANTS
public static final String FORM_ITEM_GROUP
data- attribute in the root element of the appearances.protected ReadOnlyAppearance(Set<Decoration> supportedDecorations)
public elemental2.dom.HTMLElement asElement()
public void attach()
public void showValue(T value)
public void clearValue()
public void showExpression(String expression)
protected <C> void safeApply(Decoration decoration, C context)
protected void safeUnapply(Decoration decoration)
public void setId(String id)
public void setName(String name)
public int getTabIndex()
public void setAccessKey(char key)
public void setFocus(boolean focused)
public void setTabIndex(int index)
protected void applyDefaults(Set<Decoration> appliedDecorations)
public final <C> void apply(Decoration decoration, C context)
safeApply(Decoration, Object) if the decoration is supported and has not been applied yet.public final void unapply(Decoration decoration)
safeUnapply(Decoration) if the decoration is supported and has been applied.@NonNls protected abstract String name()
public String getId()
public void setLabel(String label)
public static elemental2.dom.HTMLElement inputGroup()
public static elemental2.dom.HTMLElement helpBlock()
public static elemental2.dom.HTMLElement restrictedMarker()
public static elemental2.dom.HTMLElement hintMarker()
public String asString(T value)
public void apply(Decoration decoration)
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.