public class WebAccordion extends WebAbstractComponent<com.haulmont.cuba.web.toolkit.ui.CubaAccordion> implements Accordion, Component.UiPermissionAware
Accordion.SelectedTabChangeEvent, Accordion.SelectedTabChangeListener, Accordion.TabChangeListener
Component.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.Wrapper
ICON_STYLE, UNIT_SYMBOLS
AUTO_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, unwrapComposition
addListener, addListener, fireEvent, hasListeners, removeListener, removeListener
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentNN
getFrame
getCaption, setCaption
getIcon, setIcon
isFocusable, setFocusable
addStyleName, 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, unwrapComposition
public void add(Component component)
add
in interface Component.Container
public void remove(Component component)
remove
in interface Component.Container
public void removeAll()
removeAll
in interface Component.Container
public Component getOwnComponent(java.lang.String id)
Component.Container
getOwnComponent
in interface Component.Container
@Nullable public Component getComponent(java.lang.String id)
Component.Container
getComponent
in interface Component.Container
public java.util.Collection<Component> getOwnComponents()
Component.Container
getOwnComponents
in interface Component.Container
public java.util.Collection<Component> getComponents()
Component.Container
getComponents
in interface Component.Container
public java.lang.String getDescription()
getDescription
in interface Component.HasCaption
getDescription
in class WebAbstractComponent<com.haulmont.cuba.web.toolkit.ui.CubaAccordion>
public void setDescription(java.lang.String description)
setDescription
in interface Component.HasCaption
setDescription
in class WebAbstractComponent<com.haulmont.cuba.web.toolkit.ui.CubaAccordion>
public void applyPermission(UiPermissionDescriptor permissionDescriptor)
Component.UiPermissionAware
permissionValue
.applyPermission
in interface Component.UiPermissionAware
permissionDescriptor
- 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.Focusable
HasTabIndex
component.getTabIndex
in interface Component.Focusable
HasTabIndex
componentpublic void setTabIndex(int tabIndex)
Component.Focusable
Focusable
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.Focusable
tabIndex
- tab indexpublic void removeTab(java.lang.String name)
Accordion
public void removeAllTabs()
Accordion
removeAllTabs
in interface Accordion
public Accordion.Tab addTab(java.lang.String name, Component childComponent)
Accordion
public void setDebugId(java.lang.String id)
Component
setDebugId
in interface Component
setDebugId
in class WebAbstractComponent<com.haulmont.cuba.web.toolkit.ui.CubaAccordion>
public Accordion.Tab addLazyTab(java.lang.String name, org.dom4j.Element descriptor, ComponentLoader loader)
Accordion
addLazyTab
in interface Accordion
public void setFrame(Frame frame)
setFrame
in interface Component.BelongToFrame
setFrame
in class WebAbstractComponent<com.haulmont.cuba.web.toolkit.ui.CubaAccordion>
public com.haulmont.cuba.web.gui.components.WebAccordion.Tab getSelectedTab()
Accordion
getSelectedTab
in interface Accordion
public void setSelectedTab(Accordion.Tab tab)
Accordion
setSelectedTab
in interface Accordion
tab
- tab instancepublic void setSelectedTab(java.lang.String name)
Accordion
setSelectedTab
in interface Accordion
name
- tab idpublic Accordion.Tab getTab(java.lang.String name)
Accordion
public Component getTabComponent(java.lang.String name)
Accordion
getTabComponent
in interface Accordion
name
- tab idpublic java.util.Collection<Accordion.Tab> getTabs()
Accordion
public boolean isTabCaptionsAsHtml()
isTabCaptionsAsHtml
in interface Accordion
public void setTabCaptionsAsHtml(boolean tabCaptionsAsHtml)
Accordion
setTabCaptionsAsHtml
in interface Accordion
tabCaptionsAsHtml
- true if the tab captions are rendered as HTML, false if rendered as plain textpublic void addListener(Accordion.TabChangeListener listener)
Accordion
addListener
in interface Accordion
public void removeListener(Accordion.TabChangeListener listener)
removeListener
in interface Accordion
public void addSelectedTabChangeListener(Accordion.SelectedTabChangeListener listener)
Accordion
addSelectedTabChangeListener
in interface Accordion
public void removeSelectedTabChangeListener(Accordion.SelectedTabChangeListener listener)
Accordion
removeSelectedTabChangeListener
in interface Accordion