| Modifier and Type | Field and Description |
|---|---|
static MissingCDockableStrategy |
PURGE
A strategy that will always throw away information.
|
static MissingCDockableStrategy |
SINGLE
A strategy that will always throw away information for
MultipleCDockables
but store information for SingleCDockable. |
static MissingCDockableStrategy |
STORE
A strategy that will always store any information
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldCreate(String id,
MultipleCDockableFactory<?,?> factory)
Tells whether the factory
factory should be used to create
MultipleCDockables for which location information is available. |
<L extends MultipleCDockableLayout> |
shouldCreate(String id,
MultipleCDockableFactory<?,L> factory,
String uniqueId,
L data)
Tells whether the
MultipleCDockable with identifier uniqueId
should automatically be created outside the normal setup-phase. |
boolean |
shouldStoreMulti(String id)
Tells whether layout information for the missing
MultipleCDockable
with identifier id should be stored. |
boolean |
shouldStoreSingle(String id)
Tells whether layout information for the missing
SingleCDockable
with identifier id should be stored. |
static final MissingCDockableStrategy PURGE
static final MissingCDockableStrategy SINGLE
MultipleCDockables
but store information for SingleCDockable.static final MissingCDockableStrategy STORE
boolean shouldStoreSingle(String id)
SingleCDockable
with identifier id should be stored.id - the identifier of the missing SingleCDockabletrue if layout information should remain available,
false if the information should be purged.boolean shouldStoreMulti(String id)
MultipleCDockable
with identifier id should be stored.id - the identifier of the missing MultipleCDockabletrue if layout information should remain available,
false if the information should be purged.boolean shouldCreate(String id, MultipleCDockableFactory<?,?> factory)
factory should be used to create
MultipleCDockables for which location information is available.id - the identifier of the factoryfactory - the factory to usetrue if dockables can be restored by factory<L extends MultipleCDockableLayout> boolean shouldCreate(String id, MultipleCDockableFactory<?,L> factory, String uniqueId, L data)
MultipleCDockable with identifier uniqueId
should automatically be created outside the normal setup-phase. This method
is not called when applying a new layout through the normal ways, only
when factory has become available after the layout was already
set.L - the kind of data factory usesid - the identifier of factoryfactory - the factory which would create the new elementuniqueId - the identifier of the element that would be createddata - the data that would be given to factory to create
the new elementtrue if a new element should be createdCopyright © 2018. All rights reserved.