public final class TabbedContentImpl extends ContentImpl implements TabbedContent
Disposable.Parent
SPLIT_PROPERTY_PREFIX
IS_CLOSABLE, PROP_ACTIONS, PROP_ALERT, PROP_COMPONENT, PROP_DESCRIPTION, PROP_DISPLAY_NAME, PROP_ICON, TAB_DESCRIPTOR_KEY, TAB_DND_TARGET_KEY, TAB_GROUP_ID_KEY, TAB_GROUP_NAME_KEY, TAB_LABEL_ORIENTATION_KEY, TABBED_CONTENT_KEY
Constructor and Description |
---|
TabbedContentImpl(javax.swing.JComponent component,
java.lang.String displayName,
boolean isPinnable,
java.lang.String titlePrefix) |
TabbedContentImpl(TabGroupId id,
TabDescriptor tab,
boolean isPinnable) |
Modifier and Type | Method and Description |
---|---|
void |
addContent(javax.swing.JComponent content,
java.lang.String name,
boolean selectTab) |
void |
addContent(TabDescriptor tab,
boolean selectTab) |
boolean |
findAndSelectContent(javax.swing.JComponent contentComponent) |
java.lang.String |
getDisplayName() |
TabGroupId |
getId() |
int |
getSelectedIndex()
This method is used for preselecting popup menu items
|
java.lang.String |
getTabName() |
java.util.List<Pair<java.lang.String,javax.swing.JComponent>> |
getTabs() |
java.lang.String |
getTitlePrefix() |
<T> T |
getUserData(Key<T> key) |
boolean |
hasMultipleTabs() |
void |
removeContent(javax.swing.JComponent content) |
void |
selectContent(int index)
This method is invoked before content is selected with
ContentManager.setSelectedContent(Content) |
void |
setComponent(javax.swing.JComponent component) |
void |
split() |
addPropertyChangeListener, dispose, fireAlert, getActions, getActionsContextComponent, getAlertIcon, getBusyObject, getComponent, getDescription, getDisposer, getExecutionId, getHelpId, getIcon, getManager, getPlace, getPopupIcon, getPreferredFocusableComponent, getSearchComponent, getSeparator, getToolwindowTitle, isCloseable, isPinnable, isPinned, isSelected, isValid, release, removePropertyChangeListener, setActions, setAlertIcon, setBusyObject, setCloseable, setDescription, setDisplayName, setDisposer, setExecutionId, setHelpId, setIcon, setManager, setPinnable, setPinned, setPopupIcon, setPreferredFocusableComponent, setPreferredFocusedComponent, setSearchComponent, setSeparator, setShouldDisposeContent, setTabName, setToolwindowTitle, toString
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setTitlePrefix
addPropertyChangeListener, fireAlert, getActions, getActionsContextComponent, getAlertIcon, getBusyObject, getDescription, getDisposer, getExecutionId, getHelpId, getIcon, getManager, getPlace, getPopupIcon, getSearchComponent, getSeparator, getToolwindowTitle, isCloseable, isPinnable, isPinned, isSelected, isValid, release, removePropertyChangeListener, setActions, setAlertIcon, setBusyObject, setCloseable, setDescription, setDisplayName, setDisposer, setExecutionId, setHelpId, setIcon, setPinnable, setPinned, setPopupIcon, setPreferredFocusableComponent, setPreferredFocusedComponent, setSearchComponent, setSeparator, setShouldDisposeContent, setTabName, setToolwindowTitle
putUserData
getComponent, getPreferredFocusableComponent
dispose
public TabbedContentImpl(javax.swing.JComponent component, java.lang.String displayName, boolean isPinnable, java.lang.String titlePrefix)
public TabbedContentImpl(TabGroupId id, TabDescriptor tab, boolean isPinnable)
public void addContent(javax.swing.JComponent content, java.lang.String name, boolean selectTab)
addContent
in interface TabbedContent
public void addContent(TabDescriptor tab, boolean selectTab)
addContent
in interface TabbedContent
public TabGroupId getId()
getId
in interface TabbedContent
public java.lang.String getTitlePrefix()
getTitlePrefix
in interface TabbedContent
public void setComponent(javax.swing.JComponent component)
setComponent
in interface Content
setComponent
in class ContentImpl
public void removeContent(javax.swing.JComponent content)
removeContent
in interface TabbedContent
public java.lang.String getDisplayName()
getDisplayName
in interface Content
getDisplayName
in class ContentImpl
public void selectContent(int index)
TabbedContent
ContentManager.setSelectedContent(Content)
selectContent
in interface TabbedContent
index
- index of tab in TabbedContent.getTabs()
public int getSelectedIndex()
TabbedContent
getSelectedIndex
in interface TabbedContent
TabbedContent.selectContent(int)
public boolean findAndSelectContent(javax.swing.JComponent contentComponent)
public java.lang.String getTabName()
getTabName
in interface Content
getTabName
in class ContentImpl
public java.util.List<Pair<java.lang.String,javax.swing.JComponent>> getTabs()
getTabs
in interface TabbedContent
public boolean hasMultipleTabs()
hasMultipleTabs
in interface TabbedContent
public <T> T getUserData(Key<T> key)
getUserData
in interface UserDataHolder
getUserData
in class UserDataHolderBase
public void split()
split
in interface TabbedContent