public class WebAccordion extends WebAbstractComponent<com.haulmont.cuba.web.toolkit.ui.CubaAccordion> implements Accordion, Component.UiPermissionAware
Accordion.SelectedTabChangeEvent, Accordion.SelectedTabChangeListener, Accordion.TabChangeListenerComponent.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener, Component.WrapperICON_STYLE, UNIT_SYMBOLSAUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS| Constructor and Description |
|---|
WebAccordion() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Component component) |
Accordion.Tab |
addLazyTab(java.lang.String name,
org.dom4j.Element descriptor,
ComponentLoader loader)
INTERNAL.
|
void |
addListener(Accordion.TabChangeListener listener)
Add a listener that will be notified when a selected tab is changed.
|
void |
addSelectedTabChangeListener(Accordion.SelectedTabChangeListener listener)
Add a listener that will be notified when a selected tab is changed.
|
Accordion.Tab |
addTab(java.lang.String name,
Component childComponent)
Add a new tab to the component.
|
void |
applyPermission(UiPermissionDescriptor permissionDescriptor)
Change state of subcomponent according to the
permissionValue. |
Component |
getComponent(java.lang.String id)
Get component belonging to the whole components tree below this container.
|
java.util.Collection<Component> |
getComponents()
Get all components belonging to the whole components tree below this container
|
java.lang.String |
getDescription() |
Component |
getOwnComponent(java.lang.String id)
Get component directly owned by this container.
|
java.util.Collection<Component> |
getOwnComponents()
Get all components directly owned by this container
|
com.haulmont.cuba.web.gui.components.WebAccordion.Tab |
getSelectedTab()
Get selected tab.
|
Accordion.Tab |
getTab(java.lang.String name)
Get tab with the provided id.
|
Component |
getTabComponent(java.lang.String name)
Get a component that is a content of the tab.
|
int |
getTabIndex()
Gets the tabulator index of the
HasTabIndex component. |
java.util.Collection<Accordion.Tab> |
getTabs()
Get all tabs.
|
boolean |
isTabCaptionsAsHtml() |
void |
remove(Component component) |
void |
removeAll() |
void |
removeAllTabs()
Remove all tabs.
|
void |
removeListener(Accordion.TabChangeListener listener) |
void |
removeSelectedTabChangeListener(Accordion.SelectedTabChangeListener listener)
Remove previously added SelectedTabChangeListener.
|
void |
removeTab(java.lang.String name)
Remove tab.
|
void |
setDebugId(java.lang.String id)
INTERNAL.
|
void |
setDescription(java.lang.String description) |
void |
setFrame(Frame frame) |
void |
setSelectedTab(Accordion.Tab tab)
Set selected tab.
|
void |
setSelectedTab(java.lang.String name)
Set selected tab.
|
void |
setTabCaptionsAsHtml(boolean tabCaptionsAsHtml)
Sets whether HTML is allowed in the tab captions.
|
void |
setTabIndex(int tabIndex)
Sets the tabulator index of the
Focusable component. |
addStyleName, assignAutoDebugId, getAlignment, getCaption, getComponent, getComponentEnabledFlag, getComponentVisibleFlag, getComposition, getDebugId, getFrame, getHeight, getHeightUnits, getIcon, getId, getParent, getStyleName, getWidth, getWidthUnits, getXmlDescriptor, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setCaption, setEnabled, setHeight, setIcon, setId, setParent, setResponsive, setStyleName, setVisible, setWidth, setXmlDescriptor, unwrap, unwrapCompositionaddListener, addListener, fireEvent, hasListeners, removeListener, removeListenerequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponentNNgetFramegetCaption, setCaptiongetIcon, setIconisFocusable, setFocusableaddStyleName, getAlignment, getDebugId, getHeight, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthUnits, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapCompositionpublic void add(Component component)
add in interface Component.Containerpublic void remove(Component component)
remove in interface Component.Containerpublic void removeAll()
removeAll in interface Component.Containerpublic Component getOwnComponent(java.lang.String id)
Component.ContainergetOwnComponent in interface Component.Container@Nullable public Component getComponent(java.lang.String id)
Component.ContainergetComponent in interface Component.Containerpublic java.util.Collection<Component> getOwnComponents()
Component.ContainergetOwnComponents in interface Component.Containerpublic java.util.Collection<Component> getComponents()
Component.ContainergetComponents in interface Component.Containerpublic java.lang.String getDescription()
getDescription in interface Component.HasCaptiongetDescription in class WebAbstractComponent<com.haulmont.cuba.web.toolkit.ui.CubaAccordion>public void setDescription(java.lang.String description)
setDescription in interface Component.HasCaptionsetDescription in class WebAbstractComponent<com.haulmont.cuba.web.toolkit.ui.CubaAccordion>public void applyPermission(UiPermissionDescriptor permissionDescriptor)
Component.UiPermissionAwarepermissionValue.applyPermission in interface Component.UiPermissionAwarepermissionDescriptor - descriptor which contains id of subcomponent and UI permission value
which will be applied to this subcomponent or ids of subcomponent and its action
and UI permission value which will be applied to subcomponent's actionpublic int getTabIndex()
Component.FocusableHasTabIndex component.getTabIndex in interface Component.FocusableHasTabIndex componentpublic void setTabIndex(int tabIndex)
Component.FocusableFocusable component.
The tab index property is used to specify the order in which the
fields are focused when the user presses the Tab key. Components with
a defined tab index are focused sequentially first, and then the
components with no tab index.setTabIndex in interface Component.FocusabletabIndex - tab indexpublic void removeTab(java.lang.String name)
Accordionpublic void removeAllTabs()
AccordionremoveAllTabs in interface Accordionpublic Accordion.Tab addTab(java.lang.String name, Component childComponent)
Accordionpublic void setDebugId(java.lang.String id)
ComponentsetDebugId in interface ComponentsetDebugId in class WebAbstractComponent<com.haulmont.cuba.web.toolkit.ui.CubaAccordion>public Accordion.Tab addLazyTab(java.lang.String name, org.dom4j.Element descriptor, ComponentLoader loader)
AccordionaddLazyTab in interface Accordionpublic void setFrame(Frame frame)
setFrame in interface Component.BelongToFramesetFrame in class WebAbstractComponent<com.haulmont.cuba.web.toolkit.ui.CubaAccordion>public com.haulmont.cuba.web.gui.components.WebAccordion.Tab getSelectedTab()
AccordiongetSelectedTab in interface Accordionpublic void setSelectedTab(Accordion.Tab tab)
AccordionsetSelectedTab in interface Accordiontab - tab instancepublic void setSelectedTab(java.lang.String name)
AccordionsetSelectedTab in interface Accordionname - tab idpublic Accordion.Tab getTab(java.lang.String name)
Accordionpublic Component getTabComponent(java.lang.String name)
AccordiongetTabComponent in interface Accordionname - tab idpublic java.util.Collection<Accordion.Tab> getTabs()
Accordionpublic boolean isTabCaptionsAsHtml()
isTabCaptionsAsHtml in interface Accordionpublic void setTabCaptionsAsHtml(boolean tabCaptionsAsHtml)
AccordionsetTabCaptionsAsHtml in interface AccordiontabCaptionsAsHtml - true if the tab captions are rendered as HTML, false if rendered as plain textpublic void addListener(Accordion.TabChangeListener listener)
AccordionaddListener in interface Accordionpublic void removeListener(Accordion.TabChangeListener listener)
removeListener in interface Accordionpublic void addSelectedTabChangeListener(Accordion.SelectedTabChangeListener listener)
AccordionaddSelectedTabChangeListener in interface Accordionpublic void removeSelectedTabChangeListener(Accordion.SelectedTabChangeListener listener)
AccordionremoveSelectedTabChangeListener in interface Accordion