@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, documentationExample=true, value="TabContainer component which represents a containrt containing a single tabs", icon="fas fa-window-maximize") public class TabContainer extends GroupingComponent<Tab> implements IChangeableByClient, Boundable, CompactLayout, 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>
Component.ComponentAttr, Component.IGenerationUtils| 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 |
ACCESSIBILITY, RESOLUTION_SIZEON_DROP_COMPONENT, ON_RESIZE_COMPONENT| Constructor and Description |
|---|
TabContainer(Form form) |
| Modifier and Type | Method and Description |
|---|---|
Optional<ActionBinding> |
getEventHandler(InMessageEventData eventData) |
Integer |
getFirstVisibleTab(Integer activeTabIndex) |
String |
getType() |
void |
init() |
boolean |
isModificationEvent(String eventType) |
void |
onDesignerAddDefaultSubcomponent(SpacerService spacerService) |
void |
onDesignerBeforeAdding(IGroupingComponent<?> parent,
SpacerService spacerService) |
void |
setOnTabChange(ActionBinding onTabChange) |
IActionCallbackContext |
setOnTabChange(IActionCallback onTabChange) |
void |
updateModel(ValueChange valueChange) |
protected ElementChanges |
updateView() |
void |
validateActiveTabIndexVisibility() |
addSubcomponent, getComponentStateSaver, getNonVisualSubcomponents, getSubcomponents, isProcessComponentChange, processComponentChange, removeSubcomponent, setComponentStateSaver, setNonVisualSubcomponents, setProcessComponentStateChangegetHeight, 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, 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, waitgetOptionalFormatter, updateBinding, updateBinding, updateBindingForValue, updateBindingForValuemove, movedoActionForEveryActiveSubcomponent, doActionForEverySubcomponent, doActionForEverySubcomponent, doActionForEverySubcomponentInlcudingRepeated, getGroupingComponent, processComponentsisDesignActionAllowed, isDesignDeletablepublic 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 TabContainer(Form form)
public void init()
init in class FormElementpublic void validateActiveTabIndexVisibility()
public Optional<ActionBinding> getEventHandler(InMessageEventData eventData)
getEventHandler in interface IEventSourcegetEventHandler in class Componentpublic void updateModel(ValueChange valueChange)
updateModel in interface IChangeableByClientprotected ElementChanges updateView()
updateView in class GroupingComponent<Tab>public void onDesignerAddDefaultSubcomponent(SpacerService spacerService)
onDesignerAddDefaultSubcomponent in interface IDesignerEventListenerpublic void onDesignerBeforeAdding(IGroupingComponent<?> parent, SpacerService spacerService)
onDesignerBeforeAdding in interface IDesignerEventListenerpublic void setOnTabChange(ActionBinding onTabChange)
public IActionCallbackContext setOnTabChange(IActionCallback onTabChange)
public boolean isModificationEvent(String eventType)
isModificationEvent in interface IEventSourceCopyright © 2020. All rights reserved.