@Control(parents={PanelGroup.class,Column.class,ColumnOptimized.class,Tab.class,pl.fhframework.model.forms.Form.class,ButtonGroup.class,Group.class,Row.class,Footer.class,Repeater.class},
invalidParents=Table.class,
canBeDesigned=true)
@DocumentedComponent(category=BUTTONS_AND_OTHER,
value="Button which represents HTML input",
icon="fa fa-square")
@DesignerControl(defaultWidth=2)
public class Button
extends pl.fhframework.model.forms.FormElementWithConfirmationSupport
implements TableComponent<Button>, Styleable, pl.fhframework.core.forms.IHasBoundableLabel
<Button label="button_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.Styleable.Style| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_LABEL |
static String |
ATTR_ON_CLICK |
static String |
ATTR_STYLE |
static String |
TYPE_NAME |
| Constructor and Description |
|---|
Button(pl.fhframework.model.forms.Form form) |
| Modifier and Type | Method and Description |
|---|---|
Button |
createNewSameComponent()
Create a new component of the same type.
|
void |
doCopy(Table table,
Map<String,String> iteratorReplacements,
Button clonedButton)
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() |
Optional<pl.fhframework.binding.ActionBinding> |
getEventHandler(pl.fhframework.model.dto.InMessageEventData eventData) |
String |
getType() |
void |
init() |
protected boolean |
processStyleBinding(pl.fhframework.model.dto.ElementChanges elementChanges,
boolean refreshView) |
void |
setOnClick(pl.fhframework.binding.ActionBinding onClick) |
pl.fhframework.binding.IActionCallbackContext |
setOnClick(pl.fhframework.binding.IActionCallback callback) |
pl.fhframework.model.dto.ElementChanges |
updateView() |
getConfirmationMsg, getConfirmationMsgBinding, getConfirmOnEvent, processConfirmationMsgBinding, setConfirmationMsg, setConfirmationMsgBinding, setConfirmOnEvent, updateModelgetHeight, 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, 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, getCopygetOptionalFormatter, updateBinding, updateBinding, updateBindingForValue, updateBindingForValuepublic static final String ATTR_LABEL
public static final String ATTR_STYLE
public static final String ATTR_ON_CLICK
public static final String TYPE_NAME
public void init()
init in class pl.fhframework.model.forms.FormElementWithConfirmationSupportpublic String getType()
getType in class pl.fhframework.model.forms.Componentpublic 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.Componentpublic pl.fhframework.model.dto.ElementChanges updateView()
updateView in class pl.fhframework.model.forms.FormElementWithConfirmationSupportprotected boolean processStyleBinding(pl.fhframework.model.dto.ElementChanges elementChanges,
boolean refreshView)
public Button createNewSameComponent()
TableComponentcreateNewSameComponent in interface TableComponent<Button>public void doCopy(Table table, Map<String,String> iteratorReplacements, Button clonedButton)
TableComponentdoCopy in interface TableComponent<Button>table - tableiteratorReplacements - iterator replacementsclonedButton - a new component of the same typeprotected 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)
Copyright © 2019. All rights reserved.