|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MissingCDockableStrategy
A strategy that tells what to do if CControl finds a description of
a CDockable that it does not know while reading a layout.
| Field Summary | |
|---|---|
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 |
| Method Summary | ||
|---|---|---|
boolean |
shouldCreate(String id,
MultipleCDockableFactory<?,?> factory)
Tells whether the factory factory should be used to create
MultipleCDockables for which location information is available. |
|
|
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. |
|
| Field Detail |
|---|
static final MissingCDockableStrategy PURGE
static final MissingCDockableStrategy SINGLE
MultipleCDockables
but store information for SingleCDockable.
static final MissingCDockableStrategy STORE
| Method Detail |
|---|
boolean shouldStoreSingle(String id)
SingleCDockable
with identifier id should be stored.
id - the identifier of the missing SingleCDockable
true 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 MultipleCDockable
true 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 use
true 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 element
true if a new element should be created
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||