@DesignerControl(defaultWidth=6) @Control(parents={PanelGroup.class,Column.class,ColumnOptimized.class,Tab.class,Row.class,pl.fhframework.model.forms.Form.class,Group.class,Widget.class,Repeater.class}, invalidParents=Table.class, canBeDesigned=true) @DocumentedComponent(category=IMAGE_HTML_MD, value="Image component for displaying image and marking points on it (optionally)", icon="fa fa-image") public class Image extends FormElement implements TableComponent<Image>
Example <Image src="src_1" zr="bindSource_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_ALT |
static String |
ATTR_IMAGE_AREAS |
static String |
ATTR_LABEL |
static String |
ATTR_ON_AREA_CLICK |
static String |
ATTR_ON_CLICK |
static String |
ATTR_SRC |
ACCESSIBILITY, RESOLUTION_SIZEON_DROP_COMPONENT, ON_RESIZE_COMPONENT| Modifier and Type | Method and Description |
|---|---|
Image |
createNewSameComponent()
Create a new component of the same type.
|
void |
doCopy(Table table,
Map<String,String> iteratorReplacements,
Image clone)
Copies values of attributes with replaced iterators in bindings and actions to a new component of the same type.
|
Optional<ActionBinding> |
getEventHandler(InMessageEventData eventData) |
void |
init() |
void |
setOnAreaClick(ActionBinding onAreaClick) |
IActionCallbackContext |
setOnAreaClick(IActionCallback onAreaClick) |
void |
setOnClick(ActionBinding onClick) |
IActionCallbackContext |
setOnClick(IActionCallback onClick) |
ElementChanges |
updateView() |
getHeight, getHint, getHintBinding, getHintPlacement, getHintTrigger, getHintType, getHorizontalAlign, getHtmlAccessibilityRole, getInlineStyle, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getStyleClasses, getVerticalAlign, getWidth, getWrapperStyle, isPush, refreshElementToForm, refreshView, refreshView, setHeight, setHintBinding, setHintPlacement, setHintTrigger, setHintType, setHorizontalAlign, setHtmlAccessibilityRole, 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, getAvailablityAffectingActions, 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, getCopyisDesignActionAllowed, isDesignDeletableisModificationEventpublic static final String ATTR_SRC
public static final String ATTR_ALT
public static final String ATTR_ON_AREA_CLICK
public static final String ATTR_ON_CLICK
public static final String ATTR_IMAGE_AREAS
public static final String ATTR_LABEL
public Image(Form form)
public void init()
init in class FormElementpublic Optional<ActionBinding> getEventHandler(InMessageEventData eventData)
getEventHandler in interface IEventSourcegetEventHandler in class Componentpublic ElementChanges updateView()
updateView in class FormElementpublic Image createNewSameComponent()
TableComponentcreateNewSameComponent in interface TableComponent<Image>public void doCopy(Table table, Map<String,String> iteratorReplacements, Image clone)
TableComponentdoCopy in interface TableComponent<Image>table - tableiteratorReplacements - iterator replacementsclone - a new component of the same typepublic void setOnClick(ActionBinding onClick)
public IActionCallbackContext setOnClick(IActionCallback onClick)
public void setOnAreaClick(ActionBinding onAreaClick)
public IActionCallbackContext setOnAreaClick(IActionCallback onAreaClick)
Copyright © 2020. All rights reserved.