public abstract class EditingAppearance<T> extends Object
<div class="form-group">
<label class="control-label hal-form-label"></label>
<div class="hal-form-input">
<input-element/>
</div>
</div>
| 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 |
EditingAppearance(Set<Decoration> supportedDecorations,
elemental2.dom.HTMLInputElement inputElement) |
| 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) |
protected void |
applyExpression(org.jboss.hal.ballroom.form.AbstractFormItem.ExpressionContext expressionContext) |
elemental2.dom.HTMLElement |
asElement() |
default String |
asString(T value) |
void |
attach()
Sets the
attached flag to true. |
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() |
void |
setAccessKey(char key) |
void |
setFocus(boolean focused) |
void |
setId(String id) |
void |
setLabel(String label) |
void |
setName(String name) |
void |
setTabIndex(int index) |
default 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 EditingAppearance(Set<Decoration> supportedDecorations, elemental2.dom.HTMLInputElement inputElement)
public elemental2.dom.HTMLElement asElement()
public void attach()
attached flag to true. If you override this method, make sure to call super.attach() first!protected void applyExpression(org.jboss.hal.ballroom.form.AbstractFormItem.ExpressionContext expressionContext)
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 void showValue(T value)
public void showExpression(String expression)
public String asString(T value)
public void clearValue()
public void apply(Decoration decoration)
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.