@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 pl.fhframework.model.forms.FormElement
implements TableComponent<OutputLabel>, Iconable, pl.fhframework.tools.loading.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.| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_ON_CLICK |
static String |
ATTR_VALUE |
| Constructor and Description |
|---|
OutputLabel(pl.fhframework.model.forms.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<pl.fhframework.binding.ActionBinding> |
getAvailablityAffectingActions() |
String |
getBodyAttributeName() |
Optional<pl.fhframework.binding.ActionBinding> |
getEventHandler(pl.fhframework.model.dto.InMessageEventData eventData) |
pl.fhframework.binding.ModelBinding |
getIconBinding() |
void |
init() |
boolean |
isModificationEvent(String eventType) |
void |
setBody(String body) |
void |
setOnClick(pl.fhframework.binding.ActionBinding onClick) |
pl.fhframework.binding.IActionCallbackContext |
setOnClick(pl.fhframework.binding.IActionCallback callback) |
void |
setValueBindingAdHoc(String binding)
Deprecated.
|
pl.fhframework.model.dto.ElementChanges |
updateView() |
getHeight, getHint, getHintBinding, getHintPlacement, getHintTrigger, getHorizontalAlign, getInlineStyle, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getStyleClasses, getVerticalAlign, getWidth, getWrapperStyle, isPush, refreshElementToForm, refreshView, refreshView, setHeight, setHintBinding, setHintPlacement, setHintTrigger, 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, getGroupingParentComponent, getId, getOnDesignerToolboxDrop, getRawId, getType, hashCode, isArtificial, isGeneratedId, isInitDone, isInvisible, isStopProcessingUpdateView, onProcessingFinish, onProcessingStart, postClone, preConfigureClear, prepareEventDataArgument, refreshAvailability, resetInitDone, setArtificial, setAvailability, setAvailabilityModelBinding, setBindingContext, setGroupingParentComponent, setId, setInvisible, setOnDesignerToolboxDrop, setOnDesignerToolboxDrop, setRawId, setStopProcessingUpdateView, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitdoCopy, getCopy, getCopygetIcon, getIconAlignment, resolveIconBindingpublic static final String ATTR_VALUE
public static final String ATTR_ON_CLICK
public void init()
init in class pl.fhframework.model.forms.FormElementpublic pl.fhframework.model.dto.ElementChanges updateView()
updateView in class pl.fhframework.model.forms.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 void setBody(String body)
setBody in interface pl.fhframework.tools.loading.IBodyXmlpublic String getBodyAttributeName()
getBodyAttributeName in interface pl.fhframework.tools.loading.IBodyXmlpublic pl.fhframework.binding.ModelBinding getIconBinding()
getIconBinding in interface Iconablepublic Optional<pl.fhframework.binding.ActionBinding> getEventHandler(pl.fhframework.model.dto.InMessageEventData eventData)
getEventHandler in interface pl.fhframework.events.IEventSourcegetEventHandler in class pl.fhframework.model.forms.Componentprotected List<pl.fhframework.binding.ActionBinding> getAvailablityAffectingActions()
getAvailablityAffectingActions in class pl.fhframework.model.forms.Componentpublic pl.fhframework.binding.IActionCallbackContext setOnClick(pl.fhframework.binding.IActionCallback callback)
public void setOnClick(pl.fhframework.binding.ActionBinding onClick)
public boolean isModificationEvent(String eventType)
isModificationEvent in interface pl.fhframework.events.IEventSourceCopyright © 2019. All rights reserved.