public interface MissingDockableStrategy
DockFrontend to handle missing Dockables. The
methods of this interface are called to find out, for which missing Dockable
information should be stored, and for which not.| Modifier and Type | Field and Description |
|---|---|
static MissingDockableStrategy |
DISCARD_ALL
This strategy throws away all information.
|
static MissingDockableStrategy |
STORE_ALL
This strategy stores all information.
|
| Modifier and Type | Method and Description |
|---|---|
<L> boolean |
shouldCreate(DockFactory<?,?,L> factory,
L data)
|
boolean |
shouldStoreHidden(String key)
Tells whether the location of the hidden and missing
Dockable
key should be stored anyway. |
boolean |
shouldStoreShown(String key)
Tells whether the location of the shown but missing
Dockable
key should be stored anyway. |
static final MissingDockableStrategy DISCARD_ALL
static final MissingDockableStrategy STORE_ALL
boolean shouldStoreHidden(String key)
Dockable
key should be stored anyway. A DockFrontend will
create an empty info for all
keys which pass this method.key - the name of a missing elementtrue if its location should be stored for the
case that it becomes known later, or false if its location
should be discardedboolean shouldStoreShown(String key)
Dockable
key should be stored anyway. A DockFrontend will
create an empty info for all
keys which pass this method.key - the name of a missing elementtrue if its location should be stored for the
case that it becomes known later, or false if its location
should be discarded<L> boolean shouldCreate(DockFactory<?,?,L> factory, L data)
factory should be used to create a new
Dockable using data. This method is only called
when the element would be created outside the normal setup phase, i.e.
when a new factory has become known and old data is revisited.L - the kind of data to use for factoryfactory - the factory which might create new elementsdata - the information factory would converttrue if factory is allowed to convert
dataCopyright © 2017 Docking Frames. All rights reserved.