public interface Accordion extends Component.Container, Component.BelongToFrame, Component.HasCaption, Component.HasIcon, Component.Focusable
TabSheet
, but with a vertical orientation and the selected component
presented between tabs.Modifier and Type | Interface and Description |
---|---|
static class |
Accordion.SelectedTabChangeEvent
SelectedTabChangeEvents are fired when a selected tab is changed.
|
static interface |
Accordion.SelectedTabChangeListener
Listener that will be notified when a selected tab is changed.
|
static interface |
Accordion.Tab
Tab interface.
|
static interface |
Accordion.TabChangeListener
Deprecated.
Use
Accordion.SelectedTabChangeListener instead |
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
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
AUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS
Modifier and Type | Method and Description |
---|---|
Accordion.Tab |
addLazyTab(java.lang.String name,
org.dom4j.Element descriptor,
ComponentLoader loader)
INTERNAL.
|
void |
addListener(Accordion.TabChangeListener listener)
Deprecated.
|
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 component)
Add a new tab to the component.
|
Accordion.Tab |
getSelectedTab()
Get selected tab.
|
default Accordion.Tab |
getTab()
Deprecated.
use
getSelectedTab() |
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.
|
java.util.Collection<Accordion.Tab> |
getTabs()
Get all tabs.
|
boolean |
isTabCaptionsAsHtml() |
void |
removeAllTabs()
Remove all tabs.
|
void |
removeListener(Accordion.TabChangeListener listener)
Deprecated.
|
void |
removeSelectedTabChangeListener(Accordion.SelectedTabChangeListener listener)
Remove previously added SelectedTabChangeListener.
|
void |
removeTab(java.lang.String name)
Remove tab.
|
void |
setSelectedTab(Accordion.Tab tab)
Set selected tab.
|
void |
setSelectedTab(java.lang.String name)
Set selected tab.
|
default void |
setTab(Accordion.Tab tab)
Deprecated.
|
default void |
setTab(java.lang.String name)
Deprecated.
|
void |
setTabCaptionsAsHtml(boolean tabCaptionsAsHtml)
Sets whether HTML is allowed in the tab captions.
|
add, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, remove, removeAll
getFrame, setFrame
getCaption, getDescription, setCaption, setDescription
getIcon, setIcon
getTabIndex, isFocusable, setFocusable, setTabIndex
addStyleName, getAlignment, getDebugId, getHeight, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthUnits, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setDebugId, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition
static final java.lang.String NAME
Accordion.Tab addTab(java.lang.String name, Component component)
name
- id of the new tabcomponent
- a component that will be the content of the new tabAccordion.Tab addLazyTab(java.lang.String name, org.dom4j.Element descriptor, ComponentLoader loader)
void removeTab(java.lang.String name)
name
- id of the tab to removevoid removeAllTabs()
@Deprecated default Accordion.Tab getTab()
getSelectedTab()
@Deprecated default void setTab(Accordion.Tab tab)
setSelectedTab(Tab)
tab
- tab instance@Deprecated default void setTab(java.lang.String name)
setSelectedTab(String)
name
- tab idAccordion.Tab getSelectedTab()
void setSelectedTab(Accordion.Tab tab)
tab
- tab instancevoid setSelectedTab(java.lang.String name)
name
- tab idAccordion.Tab getTab(java.lang.String name)
name
- tab idComponent getTabComponent(java.lang.String name)
name
- tab idjava.util.Collection<Accordion.Tab> getTabs()
boolean isTabCaptionsAsHtml()
void setTabCaptionsAsHtml(boolean tabCaptionsAsHtml)
tabCaptionsAsHtml
- true if the tab captions are rendered as HTML, false if rendered as plain text@Deprecated void addListener(Accordion.TabChangeListener listener)
addSelectedTabChangeListener(Accordion.SelectedTabChangeListener)
instead@Deprecated void removeListener(Accordion.TabChangeListener listener)
void addSelectedTabChangeListener(Accordion.SelectedTabChangeListener listener)
void removeSelectedTabChangeListener(Accordion.SelectedTabChangeListener listener)