Package net.infonode.docking.title
Class LengthLimitedDockingWindowTitleProvider
java.lang.Object
net.infonode.docking.title.LengthLimitedDockingWindowTitleProvider
- All Implemented Interfaces:
Serializable,DockingWindowTitleProvider
public class LengthLimitedDockingWindowTitleProvider
extends Object
implements DockingWindowTitleProvider, Serializable
A docking window title provider that constructs a window title from the views inside the window. It adds view
titles until the window title reaches a specified length. If not all view titles fit into the window title,
primarily titles from view inside selected tabs are used.
- Since:
- IDW 1.3.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTitle(DockingWindow window) Returns a text title for aDockingWindow.
-
Constructor Details
-
LengthLimitedDockingWindowTitleProvider
public LengthLimitedDockingWindowTitleProvider(int maxLength) Constructor.- Parameters:
maxLength- if the title exceeds this length no more view titles are added to it
-
-
Method Details
-
getTitle
Description copied from interface:DockingWindowTitleProviderReturns a text title for aDockingWindow.- Specified by:
getTitlein interfaceDockingWindowTitleProvider- Parameters:
window- the docking window- Returns:
- the text title
-