@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=ARRANGEMENT,
value="TabContainer component which represents a containrt containing a single tabs",
icon="fas fa-window-maximize")
public class TabContainer
extends pl.fhframework.model.forms.GroupingComponent<Tab>
implements pl.fhframework.model.forms.IChangeableByClient, pl.fhframework.model.forms.Boundable, pl.fhframework.model.forms.CompactLayout, pl.fhframework.model.forms.designer.IDesignerEventListener
GroupingComponent class. It does not
contains attributes in xml. Additionally it contains information about currently active tab
index. This field can be used inside Group, Column, Tab, Form.
Example: <TabContainer></TabContainer>
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_ACTIVE_TAB_ID |
static String |
ATTR_ACTIVE_TAB_INDEX |
static String |
ON_TAB_CHANGE |
static String |
TYPE_NAME |
| Constructor and Description |
|---|
TabContainer(pl.fhframework.model.forms.Form form) |
| Modifier and Type | Method and Description |
|---|---|
Optional<pl.fhframework.binding.ActionBinding> |
getEventHandler(pl.fhframework.model.dto.InMessageEventData eventData) |
Integer |
getFirstVisibleTab(Integer activeTabIndex) |
String |
getType() |
void |
init() |
boolean |
isModificationEvent(String eventType) |
void |
onDesignerAddDefaultSubcomponent(pl.fhframework.model.forms.SpacerService spacerService) |
void |
onDesignerBeforeAdding(pl.fhframework.model.forms.IGroupingComponent<?> parent,
pl.fhframework.model.forms.SpacerService spacerService) |
void |
setOnTabChange(pl.fhframework.binding.ActionBinding onTabChange) |
pl.fhframework.binding.IActionCallbackContext |
setOnTabChange(pl.fhframework.binding.IActionCallback onTabChange) |
void |
updateModel(pl.fhframework.model.dto.ValueChange valueChange) |
protected pl.fhframework.model.dto.ElementChanges |
updateView() |
void |
validateActiveTabIndexVisibility() |
addSubcomponent, getComponentStateSaver, getNonVisualSubcomponents, getSubcomponents, isProcessComponentChange, processComponentChange, removeSubcomponent, setComponentStateSaver, setNonVisualSubcomponents, setProcessComponentStateChangegetHeight, 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, getAvailablityAffectingActions, 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, waitgetOptionalFormatter, updateBinding, updateBinding, updateBindingForValue, updateBindingForValuepublic static final String TYPE_NAME
public static final String ATTR_ACTIVE_TAB_INDEX
public static final String ATTR_ACTIVE_TAB_ID
public static final String ON_TAB_CHANGE
public void init()
init in class pl.fhframework.model.forms.FormElementpublic void validateActiveTabIndexVisibility()
public 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 void updateModel(pl.fhframework.model.dto.ValueChange valueChange)
updateModel in interface pl.fhframework.model.forms.IChangeableByClientprotected pl.fhframework.model.dto.ElementChanges updateView()
updateView in class pl.fhframework.model.forms.GroupingComponent<Tab>public void onDesignerAddDefaultSubcomponent(pl.fhframework.model.forms.SpacerService spacerService)
onDesignerAddDefaultSubcomponent in interface pl.fhframework.model.forms.designer.IDesignerEventListenerpublic void onDesignerBeforeAdding(pl.fhframework.model.forms.IGroupingComponent<?> parent,
pl.fhframework.model.forms.SpacerService spacerService)
onDesignerBeforeAdding in interface pl.fhframework.model.forms.designer.IDesignerEventListenerpublic void setOnTabChange(pl.fhframework.binding.ActionBinding onTabChange)
public pl.fhframework.binding.IActionCallbackContext setOnTabChange(pl.fhframework.binding.IActionCallback onTabChange)
public boolean isModificationEvent(String eventType)
isModificationEvent in interface pl.fhframework.events.IEventSourceCopyright © 2019. All rights reserved.