@Control(parents={PanelGroup.class,Column.class,ColumnOptimized.class,Tab.class,Row.class,pl.fhframework.model.forms.Form.class,Repeater.class,Group.class}, invalidParents=Table.class, canBeDesigned=true) @DocumentedComponent(category=INPUTS_AND_VALIDATION, value="Label component is responsible for displaying value.", icon="fa fa-font") @DesignerControl(defaultWidth=2) public class OutputLabel extends FormElement implements TableComponent<OutputLabel>, Iconable, IBodyXml
<OutputLabel value="{value_1}"/>. Every field is parsed as json for
javascript. If field should be ingored by JSON, use @JsonIgnore. There can be used
any annotations for json generator.Component.ComponentAttr, Component.IGenerationUtils| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_ON_CLICK |
static String |
ATTR_VALUE |
ACCESSIBILITY, RESOLUTION_SIZEON_DROP_COMPONENT, ON_RESIZE_COMPONENT| Constructor and Description |
|---|
OutputLabel(Form form) |
| Modifier and Type | Method and Description |
|---|---|
OutputLabel |
createNewSameComponent()
Create a new component of the same type.
|
void |
doCopy(Table table,
Map<String,String> iteratorReplacements,
OutputLabel clone)
Copies values of attributes with replaced iterators in bindings and actions to a new component of the same type.
|
protected List<ActionBinding> |
getAvailablityAffectingActions() |
String |
getBodyAttributeName() |
Optional<ActionBinding> |
getEventHandler(InMessageEventData eventData) |
ModelBinding |
getIconBinding() |
void |
init() |
boolean |
isModificationEvent(String eventType) |
void |
setBody(String body) |
void |
setOnClick(ActionBinding onClick) |
IActionCallbackContext |
setOnClick(IActionCallback callback) |
void |
setValueBindingAdHoc(String binding)
Deprecated.
|
ElementChanges |
updateView() |
getHeight, getHint, getHintBinding, getHintPlacement, getHintTrigger, getHintType, getHorizontalAlign, getInlineStyle, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getStyleClasses, getVerticalAlign, getWidth, getWrapperStyle, isPush, refreshElementToForm, refreshView, refreshView, setHeight, setHintBinding, setHintPlacement, setHintTrigger, setHintType, setHorizontalAlign, setInlineStyle, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPush, setStyleClasses, setVerticalAlign, setWidth, setWrapperStyle, tryParseAttributeInPixelOrPercentageUnit, tryParseAttributeInPixelUnit, tryParseAttributeInPixelUnitareModelValuesTheSame, areValuesTheSame, calculateAvailability, clone, convertBindingValueToString, convertBindingValueToString, convertValue, convertValueToString, convertValueToString, createAdHocModelBinding, equals, finalizeReading, generateId, getAccessibilityRules, getAvailability, getAvailabilityModelBinding, getBindingContext, getEventProcessingForm, getForm, getGeneratedIdPrefix, getGenerationUtils, getGroupingParentComponent, getId, getOnDesignerToolboxDrop, getRawId, getType, hashCode, isArtificial, isGeneratedId, isInitDone, isInvisible, isStopProcessingUpdateView, onProcessingFinish, onProcessingStart, postClone, preConfigureClear, prepareEventDataArgument, refreshAvailability, resetInitDone, setArtificial, setAvailability, setAvailabilityModelBinding, setBindingContext, setGenerationUtils, setGroupingParentComponent, setId, setInvisible, setOnDesignerToolboxDrop, setOnDesignerToolboxDrop, setRawId, setStopProcessingUpdateView, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitdoCopy, getCopy, getCopygetIcon, getIconAlignment, resolveIconBindingshouldWriteToBodyisDesignActionAllowed, isDesignDeletablepublic static final String ATTR_VALUE
public static final String ATTR_ON_CLICK
public OutputLabel(Form form)
public void init()
init in class FormElementpublic ElementChanges updateView()
updateView in class FormElement@Deprecated public void setValueBindingAdHoc(String binding)
public OutputLabel createNewSameComponent()
TableComponentcreateNewSameComponent in interface TableComponent<OutputLabel>public void doCopy(Table table, Map<String,String> iteratorReplacements, OutputLabel clone)
TableComponentdoCopy in interface TableComponent<OutputLabel>table - tableiteratorReplacements - iterator replacementsclone - a new component of the same typepublic String getBodyAttributeName()
getBodyAttributeName in interface IBodyXmlpublic ModelBinding getIconBinding()
getIconBinding in interface Iconablepublic Optional<ActionBinding> getEventHandler(InMessageEventData eventData)
getEventHandler in interface IEventSourcegetEventHandler in class Componentprotected List<ActionBinding> getAvailablityAffectingActions()
getAvailablityAffectingActions in class Componentpublic IActionCallbackContext setOnClick(IActionCallback callback)
public void setOnClick(ActionBinding onClick)
public boolean isModificationEvent(String eventType)
isModificationEvent in interface IEventSourceCopyright © 2020. All rights reserved.