@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 FormElementWithConfirmationSupport implements TableComponent<Button>, Styleable, 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.Component.ComponentAttr, Component.IGenerationUtilsStyleable.Style| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_LABEL |
static String |
ATTR_ON_CLICK |
static String |
ATTR_STYLE |
static String |
TYPE_NAME |
CONFIRATION_MSG_ATTRACCESSIBILITY, RESOLUTION_SIZEON_DROP_COMPONENT, ON_RESIZE_COMPONENT| 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<ActionBinding> |
getAvailablityAffectingActions() |
Optional<ActionBinding> |
getEventHandler(InMessageEventData eventData) |
String |
getType() |
void |
init() |
protected boolean |
processStyleBinding(ElementChanges elementChanges,
boolean refreshView) |
void |
setOnClick(ActionBinding onClick) |
IActionCallbackContext |
setOnClick(IActionCallback callback) |
ElementChanges |
updateView() |
getConfirmationMsg, getConfirmationMsgBinding, getConfirmOnEvent, processConfirmationMsgBinding, setConfirmationMsg, setConfirmationMsgBinding, setConfirmOnEvent, updateModelgetHeight, 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, 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, getCopygetLabelModelBindinggetOptionalFormatter, updateBinding, updateBinding, updateBindingForValue, updateBindingForValueisDesignActionAllowed, isDesignDeletableisModificationEventpublic 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 Button(Form form)
public void init()
init in class FormElementWithConfirmationSupportpublic Optional<ActionBinding> getEventHandler(InMessageEventData eventData)
getEventHandler in interface IEventSourcegetEventHandler in class Componentpublic ElementChanges updateView()
updateView in class FormElementWithConfirmationSupportprotected boolean processStyleBinding(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<ActionBinding> getAvailablityAffectingActions()
getAvailablityAffectingActions in class Componentpublic IActionCallbackContext setOnClick(IActionCallback callback)
public void setOnClick(ActionBinding onClick)
Copyright © 2020. All rights reserved.