public class FlatTabPane extends CombinedStackDockComponent<FlatTab,FlatMenu,FlatInfoComponent>
JTabbedPane, but the buttons to
change between the children are smaller and "flatter" than the
buttons of the JTabbedPane.CombinedStackDockComponent.MetaLAYOUT_MANAGER, USE_SMALL_MINIMUM_SIZE| Constructor and Description |
|---|
FlatTabPane(StackDockComponentParent parent)
Creates a new
FlatTabPane |
| Modifier and Type | Method and Description |
|---|---|
DockStation |
getStation() |
boolean |
hasBorder()
Whether this kind of component already has a border.
|
boolean |
isSingleTabComponent()
Tells whether this
StackDockComponent should be shown even if
the StackDockStation has only one child. |
protected void |
menuRemoved(FlatMenu menu)
Informs this pane that
menu will never be used again and
all resources associated with menu should be freed. |
FlatMenu |
newMenu()
Creates a new
TabMenu that has this as parent. |
protected FlatTab |
newTab(Dockable dockable)
|
void |
setController(DockController controller)
Connects this pane with
controller. |
void |
setSelectedBounds(Rectangle bounds)
Sets the boundaries of the
selected Dockable. |
protected void |
tabRemoved(FlatTab tab)
Informs this pane that
tab will never be used again and
all resources associated with tab should be freed. |
addStackDockComponentListener, addTab, addToMenu, clearTabs, createBackground, createContentBorderModifier, createContentPane, createDefaultRepresentation, createLayerAt, fireTabChanged, getAvailableArea, getBoundsAt, getComponent, getConfiguration, getContentAt, getDockableAt, getIndexOfTabAt, getInfoHandler, getLayerAt, getMenuHandler, getMinimumSize, getMinimumSize, getOnTab, getPreferredSize, getPreferredSize, getSelectedBounds, getSelectedIndex, getTabAt, getTabCount, getTabHandler, getZOrder, insertTab, moveTab, putOnTab, putTab, remove, removeAll, removeFromMenu, removeStackDockComponentListener, removeTab, repaint, revalidate, setComponentAt, setEnabledAt, setIconAt, setSelectedDockable, setSelectedIndex, setTitleAt, setTooltipAt, setZOrderaddTabPaneListener, createMenu, destroyMenu, discardComponentsAndRebuild, doLayout, fireAdded, fireControllerChanged, fireInfoComponentChanged, fireRemoved, fireSelectionChanged, getController, getDockable, getDockableCount, getDockables, getDockTabPlacement, getInfoComponent, getLayoutManager, getMenu, getMenuList, getMenus, getSelectedDockable, getTab, getTabs, getTabsList, getVisibleTab, getVisibleTabCount, indexOf, indexOfVisible, insert, listeners, move, putInMenu, removeTabPaneListener, setDockTabPlacement, setInfoComponent, setLayoutManagerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDockTabPlacement, setDockTabPlacementpublic FlatTabPane(StackDockComponentParent parent)
FlatTabPaneparent - the station which uses this componentprotected FlatTab newTab(Dockable dockable)
AbstractTabPaneTab that has this as parent and
represents dockable. The new tab should not be stored in
any collection.newTab in class AbstractTabPane<FlatTab,FlatMenu,FlatInfoComponent>dockable - the element for which a new tab is requiredprotected void tabRemoved(FlatTab tab)
AbstractTabPanetab will never be used again and
all resources associated with tab should be freed. This
method is only called if tab is invisible.tabRemoved in class AbstractTabPane<FlatTab,FlatMenu,FlatInfoComponent>tab - the tab to destroypublic FlatMenu newMenu()
AbstractTabPaneTabMenu that has this as parent.newMenu in class AbstractTabPane<FlatTab,FlatMenu,FlatInfoComponent>protected void menuRemoved(FlatMenu menu)
AbstractTabPanemenu will never be used again and
all resources associated with menu should be freed. This
method is only called if menu is invisible.menuRemoved in class AbstractTabPane<FlatTab,FlatMenu,FlatInfoComponent>menu - the destroyed menupublic void setController(DockController controller)
AbstractTabPanecontroller.setController in interface StackDockComponentsetController in class CombinedStackDockComponent<FlatTab,FlatMenu,FlatInfoComponent>controller - the realm in which this pane works, may be nullpublic void setSelectedBounds(Rectangle bounds)
TabPaneselected Dockable.setSelectedBounds in interface TabPanesetSelectedBounds in class CombinedStackDockComponent<FlatTab,FlatMenu,FlatInfoComponent>bounds - the boundaries of the selected childpublic boolean hasBorder()
StackDockComponenttrue if this has a border, false
if the parent should paint one.public boolean isSingleTabComponent()
StackDockComponentStackDockComponent should be shown even if
the StackDockStation has only one child.true if this component should always be shownpublic DockStation getStation()
Copyright © 2017 Docking Frames. All rights reserved.