net.infonode.docking.title
Class LengthLimitedDockingWindowTitleProvider
java.lang.Object
net.infonode.docking.title.LengthLimitedDockingWindowTitleProvider
- All Implemented Interfaces:
- java.io.Serializable, DockingWindowTitleProvider
public class LengthLimitedDockingWindowTitleProvider
- extends java.lang.Object
- implements DockingWindowTitleProvider, java.io.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
- Version:
- $Revision: 1.6 $
- Author:
- $Author: jesper $
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
maxLength
private int maxLength
LengthLimitedDockingWindowTitleProvider
public LengthLimitedDockingWindowTitleProvider(int maxLength)
- Constructor.
- Parameters:
maxLength
- if the title exceeds this length no more view titles are added to it
getTitle
public java.lang.String getTitle(DockingWindow window)
- Description copied from interface:
DockingWindowTitleProvider
- Returns a text title for a
DockingWindow
.
- Specified by:
getTitle
in interface DockingWindowTitleProvider
- Parameters:
window
- the docking window
- Returns:
- the text title
getViews
private void getViews(DockingWindow window,
java.util.ArrayList viewTitles,
java.util.ArrayList viewPrimary,
boolean primary)