|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LayoutChangeStrategy
Used by a DockFrontend to read layout information and apply new
positions for Dockables.
While this interface (like any other interface in this framework) can be implemented
by clients, they are not supposed to do so.
| Method Summary | |
|---|---|
Perspective |
createPerspective(DockFrontendInternals frontend,
boolean entry,
FrontendPerspectiveCache cache)
Creates a Perspective that is used to read and write perspectives related to frontend. |
DockSituation |
createSituation(DockFrontendInternals frontend,
boolean entry)
Creates a new DockSituation that is used to write and read the current setting from and
to a stream. |
PropertyTransformer |
createTransformer(DockFrontendInternals frontend)
Creates a converter for reading and writing DockablePropertys. |
void |
estimateLocations(DockFrontendInternals frontend,
DockSituation situation,
DockLayoutComposition layout)
Tries to fill the property location
for each element in layout. |
PlaceholderStrategy |
getPlaceholderStrategy(DockFrontendInternals frontend)
Gets the default PlaceholderStrategy which should be used to filter placeholders by frontend. |
boolean |
setLayout(DockFrontendInternals frontend,
Setting setting,
boolean entry)
Changes the layout of frontend by reading and applying setting. |
| Method Detail |
|---|
boolean setLayout(DockFrontendInternals frontend,
Setting setting,
boolean entry)
throws java.io.IOException,
XException
frontend by reading and applying setting.
The DockRegister is stalled while this method runs.VetoManager provided by frontend to ensure
that all operations are legal.
frontend - internal information about a DockFrontendsetting - the layout to read and applyentry - true if setting contains only little information about
the layout, false if there is much information abut the layout.
true if the layout has been applied, false if
the operation was canceled due of any reason
java.io.IOException - in case of some stream that cannot be read
XException - in case of some XElement that cannot be read
DockSituation createSituation(DockFrontendInternals frontend,
boolean entry)
DockSituation that is used to write and read the current setting from and
to a stream.DockSituation) is used.
frontend - the frontend for which the situation is requiredentry - true if the situation is used for a regular setting,
false if the situation is used as the final setting which will
be loaded the next time the application starts.
Perspective createPerspective(DockFrontendInternals frontend,
boolean entry,
FrontendPerspectiveCache cache)
Perspective that is used to read and write perspectives related to frontend.
frontend - the frontend for which the situation is requiredentry - true if the situation is used for a regular setting,
false if the situation is used as the final setting which will
be loaded the next time the application starts.cache - a cache that takes DockElements and returns the matching PerspectiveElement. The cache
also offers methods to convert ids and PerspectiveElements directly
PropertyTransformer createTransformer(DockFrontendInternals frontend)
DockablePropertys.
frontend - the frontend for which the converter is required
void estimateLocations(DockFrontendInternals frontend,
DockSituation situation,
DockLayoutComposition layout)
location
for each element in layout.
frontend - the frontend which calls this methodsituation - the situation to use for transforming informationlayout - the layout to estimatePlaceholderStrategy getPlaceholderStrategy(DockFrontendInternals frontend)
PlaceholderStrategy which should be used to filter placeholders by frontend.
frontend - information about the DockFrontend that needs the strategy
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||