org.noos.xing.mydoggy
Interface TabbedContentManagerUI<E extends TabbedContentUI>

All Superinterfaces:
ContentManagerUI<E>, Observable
All Known Subinterfaces:
MultiSplitContentManagerUI

public interface TabbedContentManagerUI<E extends TabbedContentUI>
extends ContentManagerUI<E>

This interface represents a ui that use a component that lets the user switch between a group of components by clicking on a tab with a given title and/or icon (i.e. JTabbedPane).

Since:
1.1.0
Author:
Angelo De Caro (angelo.decaro@gmail.com)

Nested Class Summary
static class TabbedContentManagerUI.TabLayout
          The tab layout enum used in laying out the tabs when all the tabs will not fit within a single line.
static class TabbedContentManagerUI.TabPlacement
          The tab placement enum used in positioning the component that show tabs.
 
Method Summary
 TabbedContentManagerUI.TabLayout getTabLayout()
          Returns the layout type used by the manager to layout the tabs when all the tabs will not fit within a single line.
 TabbedContentManagerUI.TabPlacement getTabPlacement()
          Returns the placement of the tabs for this manager.
 boolean isShowAlwaysTab()
          Returns whether or not the ui must show a tab for all contents also when there is just one content.
 void setShowAlwaysTab(boolean show)
          Sets whether or not the ui must show a tab for all contents also when there is just one content.
 void setTabLayout(TabbedContentManagerUI.TabLayout tabLayout)
          Sets the layout type which the manager will use in laying out the tabs when all the tabs will not fit within a single line.
 void setTabPlacement(TabbedContentManagerUI.TabPlacement tabPlacement)
          Sets the tab placement for this manager.
 
Methods inherited from interface org.noos.xing.mydoggy.ContentManagerUI
addContentManagerUIListener, getContentManagerUiListener, getContentUI, isCloseable, isDetachable, isMaximizable, isMinimizable, isPopupMenuEnabled, removeContentManagerUIListener, setCloseable, setDetachable, setMaximizable, setMinimizable, setPopupMenuEnabled
 
Methods inherited from interface org.noos.xing.mydoggy.Observable
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
 

Method Detail

setTabPlacement

void setTabPlacement(TabbedContentManagerUI.TabPlacement tabPlacement)
Sets the tab placement for this manager.

Parameters:
tabPlacement - the placement for the tabs relative to the content
Since:
1.1.0
See Also:
TabbedContentManagerUI.TabPlacement

getTabPlacement

TabbedContentManagerUI.TabPlacement getTabPlacement()
Returns the placement of the tabs for this manager.

Returns:
the placement of the tabs for this manager.
Since:
1.1.0
See Also:
setTabPlacement(org.noos.xing.mydoggy.TabbedContentManagerUI.TabPlacement), TabbedContentManagerUI.TabPlacement

setTabLayout

void setTabLayout(TabbedContentManagerUI.TabLayout tabLayout)
Sets the layout type which the manager will use in laying out the tabs when all the tabs will not fit within a single line.

Parameters:
tabLayout - the layoyt type used to layout the tabs
Since:
1.1.0
See Also:
getTabLayout(), TabbedContentManagerUI.TabLayout

getTabLayout

TabbedContentManagerUI.TabLayout getTabLayout()
Returns the layout type used by the manager to layout the tabs when all the tabs will not fit within a single line.

Returns:
layout type used by the manager to layout the tabs.
Since:
1.1.0
See Also:
setTabLayout(org.noos.xing.mydoggy.TabbedContentManagerUI.TabLayout), TabbedContentManagerUI.TabLayout

setShowAlwaysTab

void setShowAlwaysTab(boolean show)
Sets whether or not the ui must show a tab for all contents also when there is just one content.

Parameters:
show - whether or not the ui must show a tab for all contents.
Since:
1.1.0
See Also:
isShowAlwaysTab()

isShowAlwaysTab

boolean isShowAlwaysTab()
Returns whether or not the ui must show a tab for all contents also when there is just one content. Default value is false.

Returns:
true if the the ui must show a tab for all contents; false otherwise
Since:
1.1.0
See Also:
setShowAlwaysTab(boolean)


Copyright © 2012. All Rights Reserved.