Package bibliothek.gui.dock.support.mode
Interface HistoryRewriter<H,M extends Mode<H>>
- Type Parameters:
H- the kind of history this rewriter acceptsM- the kind ofModethis rewriter accepts
- All Known Implementing Classes:
CStationContainerHistoryRewriter,GroupingHistoryRewriter
public interface HistoryRewriter<H,M extends Mode<H>>
A
HistoryRewriter can rewrite the history information that is associated with a Dockable in a
specific Mode. HistoryRewriters are applied at the moment when history information is read, and are
used by the ModeManager.- Author:
- Benjamin Sigg
-
Method Summary
-
Method Details
-
rewrite
Checks whether the history objecthistoryis still valid.- Parameters:
dockable- the element which is about to change its modemode- the mode that is going to be appliedhistory- the history object that will be forwarded tomode, may benull- Returns:
- the history object to use, may be
null
-