@DesignerControl(defaultWidth=12) @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,Widget.class}, canBeDesigned=true) @DocumentedComponent(category=IMAGE_HTML_MD, documentationExample=true, value="Md file viewer component for displaying *.md files. Allow inside navigation to other md file.", icon="fa fa-eye") public class MdFileViewer extends FormElement implements TableComponent<MdFileViewer>
Example <MdFileViewer src="src_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_LABEL |
static String |
ATTR_SRC |
ACCESSIBILITY, RESOLUTION_SIZEON_DROP_COMPONENT, ON_RESIZE_COMPONENT| Constructor and Description |
|---|
MdFileViewer(Form form) |
| Modifier and Type | Method and Description |
|---|---|
MdFileViewer |
createNewSameComponent()
Create a new component of the same type.
|
void |
doCopy(Table table,
Map<String,String> iteratorReplacements,
MdFileViewer clone)
Copies values of attributes with replaced iterators in bindings and actions to a new component of the same type.
|
void |
init() |
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, getEventHandler, 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_LABEL
public MdFileViewer(Form form)
public void init()
init in class FormElementpublic ElementChanges updateView()
updateView in class FormElementpublic MdFileViewer createNewSameComponent()
TableComponentcreateNewSameComponent in interface TableComponent<MdFileViewer>public void doCopy(Table table, Map<String,String> iteratorReplacements, MdFileViewer clone)
TableComponentdoCopy in interface TableComponent<MdFileViewer>table - tableiteratorReplacements - iterator replacementsclone - a new component of the same typeCopyright © 2020. All rights reserved.