@Component(tag="tab", widgetModule="fujion-tabview", widgetClass="Tab", content=AS_CHILD, parentTag="tabview", childTag=@Component.ChildTag(value="*"), description="A single tab in a tab view.") public class Tab extends BaseLabeledImageComponent<BaseLabeledComponent.LabelPositionNone>
BaseLabeledComponent.ILabelPosition, BaseLabeledComponent.LabelPositionAll, BaseLabeledComponent.LabelPositionHorz, BaseLabeledComponent.LabelPositionNoneBaseComponent.SubComponentlog| 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 state 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 state 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, onDestroyTracked, print, print, removeClass, removeMask, removeStyle, reportSize, 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, addComposite, addEventForward, addEventForward, addEventForward, addEventForward, addEventListener, addEventListener, addEventListener, addEventListener, afterAddChild, afterSetParent, areEqual, beforeAddChild, beforeRemoveChild, beforeSetParent, bind, defaultify, destroy, destroyChildren, detach, detachChildren, finalize, findAllNamed, findAttribute, findByName, findByName, findChildByData, findChildByLabel, fireEvent, fireEvent, fireEventToClient, fireEventToClient, getAncestor, getAncestor, getAttribute, getAttribute, getAttributes, getChild, getChildAt, getChildCount, getChildCount, getChildren, getChildren, getContent, getController, getControllers, getData, getData, getDefinition, getFirstChild, getId, getIndex, getLastChild, getLastController, getName, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, hasChildren, hasEventListener, hasEventListener, invoke, invoke, invoke, invoke, invoke, invokeIfAttached, isAncestor, isContainer, isContentSynced, isDead, isNamespace, isRendered, loadModule, loadModule, notifyAncestors, notifyDescendants, nullify, onAttach, onDestroy, propertyChange, removeChild, removeEventForward, removeEventForward, removeEventForward, removeEventForward, removeEventListener, removeEventListener, removeEventListener, removeEventListener, setContent, setContentSynced, setData, setIndex, setName, setNamespace, setParent, sub, swapChildren, swapTrackedComponents, sync, toString, trackComponent, trimify, untrackComponent, validate, validate, validateChild, validateIsChild, validateName, validatePage, validateParent, wireController, wireControllerclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waittransformForClientgetAttribute, hasAttribute, removeAttribute, setAttributepublic Tab()
public Tab(String label)
@Component.PropertyGetter(value="closable", description="True if the tab is closable. A closable tab has an icon that, when clicked, removes and destroys the tab.") public boolean isClosable()
@Component.PropertySetter(value="closable", defaultValue="false", description="True if the tab is closable. A closable tab has an icon that, when clicked, removes and destroys the tab.") public void setClosable(boolean closable)
closable - If true, the tab is closable.onCanClose@Component.PropertyGetter(value="selected", description="The selection state of the tab.") public boolean isSelected()
@Component.PropertySetter(value="selected", defaultValue="false", description="The selection state of the tab.") public void setSelected(boolean selected)
selected - The selection state 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 © 2018 Fujion Framework. All rights reserved.