@Component(tag="tab", widgetModule="fujion-tabview", widgetClass="Tab", content=AS_CHILD, parentTag="tabview", childTag=@Component.ChildTag(value="*")) public class Tab extends BaseLabeledImageComponent<BaseLabeledComponent.LabelPositionNone>
BaseLabeledComponent.ILabelPosition, BaseLabeledComponent.LabelPositionAll, BaseLabeledComponent.LabelPositionHorz, BaseLabeledComponent.LabelPositionNoneBaseComponent.SubComponent| Modifier and Type | Method and Description |
|---|---|
protected void |
_setSelected(boolean selected,
boolean notifyParent)
Sets the tabs selected status.
|
void |
bringToFront()
Override to cause a UI component to be brought to the forefront of the UI.
|
boolean |
canClose()
Invokes the
canClose logic and returns the result. |
boolean |
close()
Request the tab to be closed.
|
BooleanSupplier |
getOnCanClose()
Returns the functional interface that determines whether tab closure is permitted.
|
Tabview |
getTabview() |
boolean |
isClosable()
Returns true if the tab is closable.
|
boolean |
isSelected()
Returns the selection status of the tab.
|
void |
setClosable(boolean closable)
Set to true to make the tab closable.
|
void |
setOnCanClose(boolean canClose)
Sets whether tab closure is permitted using a simple Boolean value.
|
void |
setOnCanClose(BooleanSupplier onCanClose)
Sets the functional interface that will determine if tab closure is permitted.
|
void |
setSelected(boolean selected)
Sets the selection status of the tab.
|
getImage, setImagegetLabel, getPosition, setLabel, setPosition_syncClasses, _syncStyles, addClass, addMask, addMask, addMask, addStyle, addStyles, afterRemoveChild, focus, getBalloon, getClasses, getContext, getCss, getDragid, getDropid, getFirstVisibleChild, getFirstVisibleChild, getFlex, getHeight, getHint, getKeycapture, getPopup, getStyle, getStyles, getTabindex, getWidth, hide, isDisabled, isVisible, removeClass, removeMask, removeStyle, scrollIntoView, setBalloon, setClasses, setContext, setCss, setDisabled, setDragid, setDropid, setFlex, setFocus, setHeight, setHint, setKeycapture, setPopup, setStyles, setTabindex, setVisible, setWidth, show, toggleClass_attach, _initProps, addChild, addChild, addChild, addChildren, addEventForward, addEventForward, addEventListener, addEventListener, addEventListener, addEventListener, afterAddChild, afterSetParent, areEqual, beforeAddChild, beforeRemoveChild, beforeSetParent, defaultify, destroy, destroyChildren, detach, finalize, findAttribute, findByName, findByName, findChildByData, findChildByLabel, fireEvent, fireEvent, getAncestor, getAncestor, getAttribute, getAttribute, getAttribute, getAttributes, getChild, getChildAt, getChildCount, getChildCount, getChildren, getChildren, getContent, getData, getData, getDefinition, getFirstChild, getId, getIndex, getLastChild, getName, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, hasAttribute, hasEventListener, hasEventListener, invoke, invoke, invokeIfAttached, isAncestor, isContainer, isContentSynced, isDead, isNamespace, notifyAncestors, notifyDescendants, nullify, onAttach, onDestroy, removeAttribute, removeChild, removeEventForward, removeEventForward, removeEventListener, removeEventListener, removeEventListener, removeEventListener, setAttribute, setContent, setContentSynced, setData, setIndex, setName, setParent, sub, swapChildren, sync, toString, trimify, validate, validate, validateChild, validateIsChild, validatePage, validateParent, wireControllerpublic Tab()
public Tab(String label)
@Component.PropertyGetter(value="closable") public boolean isClosable()
@Component.PropertySetter(value="closable") public void setClosable(boolean closable)
closable - If true, the tab is closable.onCanClose@Component.PropertyGetter(value="selected") public boolean isSelected()
@Component.PropertySetter(value="selected") public void setSelected(boolean selected)
selected - The selection status of the tab.protected void _setSelected(boolean selected,
boolean notifyParent)
selected - The new selected status.notifyParent - If true, notify the parent tab view of the status change.public boolean close()
public boolean canClose()
canClose logic and returns the result.canClose logic.public Tabview getTabview()
public BooleanSupplier getOnCanClose()
public void setOnCanClose(boolean canClose)
setOnCanClose(boolean) with a functional interface that returns a fixed Boolean
value.canClose - If true, the tab may be closed.public void setOnCanClose(BooleanSupplier onCanClose)
onCanClose - The functional interface that will determine if tab closure is permitted.public void bringToFront()
BaseComponentbringToFront in class BaseComponentCopyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.