public class MenuLineLayoutPane extends AbstractTabLayoutManagerPane
TabPanes that are managed by a MenuLineLayout.| Constructor and Description |
|---|
MenuLineLayoutPane(MenuLineLayout layout,
TabPane pane)
Creates new layout information for
pane. |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Informs this layout that it is no longer used and can release any
resource.
|
int |
getIndexOfTabAt(Point mouseLocation)
Searches the index of the tab beneath
mouseLocation. |
LayoutBlock |
getInfo()
Gets the info
Component that is shown on this pane. |
MenuLineLayout |
getLayout()
Gets the
MenuLineLayout that is using this pane. |
protected MenuLineLayoutPossibility |
getLayout(Size tabSize,
Size menuSize,
Size infoSize)
Creates a possible layout for the given sizes.
|
MenuLayoutBlock |
getMenu()
Gets the menu that is shown on this pane.
|
Dimension |
getMinimumSize()
Calculates the minimal size required.
|
Dimension |
getPreferredSize()
Calculates the preferred size to show all elements.
|
TabsLayoutBlock |
getTabs()
Gets the tabs that are shown on this pane.
|
void |
infoComponentChanged(TabPane pane,
LonelyTabPaneComponent oldInfo,
LonelyTabPaneComponent newInfo)
Called if the
TabPane.getInfoComponent() was replaced. |
void |
layout()
Updates the number of shown tabs and the boundaries of tabs, menu
and info.
|
added, controllerChanged, getPane, isUseSmallMinimumSize, removed, selectionChanged, uninstalledpublic MenuLineLayoutPane(MenuLineLayout layout, TabPane pane)
pane.layout - the layout using this panepane - the owner of this informationpublic TabsLayoutBlock getTabs()
public LayoutBlock getInfo()
Component that is shown on this pane.public MenuLayoutBlock getMenu()
public Dimension getPreferredSize()
public Dimension getMinimumSize()
public void destroy()
public MenuLineLayout getLayout()
MenuLineLayout that is using this pane.nullpublic int getIndexOfTabAt(Point mouseLocation)
mouseLocation.mouseLocation - the location of the mousemouseLocation or -1public void layout()
protected MenuLineLayoutPossibility getLayout(Size tabSize, Size menuSize, Size infoSize)
tabSize - the sizes of the tabsmenuSize - the size of the menuinfoSize - the size of the info componentpublic void infoComponentChanged(TabPane pane, LonelyTabPaneComponent oldInfo, LonelyTabPaneComponent newInfo)
TabPaneListenerTabPane.getInfoComponent() was replaced.infoComponentChanged in interface TabPaneListenerinfoComponentChanged in class AbstractTabLayoutManagerPanepane - the source of this eventoldInfo - the old info component, may be nullnewInfo - the new info component, may be nullCopyright © 2017 Docking Frames. All rights reserved.