Registriert seit: 27.08.2006
Preview Version 1.0.7
A new preview of version 1.0.7 is available (Link).
Preview 5 (1.0.7p5) brings some new features:
Common: Recovery mechanism for layouts.
If a CControl loads a layout but some CDockables are missing, and the CDockables are added later to the CControl, then the CControl can try to put these CDockables at the location where they would have been if they were present earlier.
There is a short description of how this mechanism works and how to use it here. This mechanism builds upon the recovery mechanism of Core which was introduced in 1.0.7p4.
I've written an application to test this feature. The name of this application is "commonLayouts". Source and binary file can be found in the zip-file for 1.0.7p5. The source code is in "dock/src/commonLayouts", the binary version in "dock/bin". You can start the application with "java -jar commonLayouts.jar".
This feature is disabled per default. You need to enable it by calling the method "CControl.setMissingStrategy", use the argument "MissingCDockableStrategy.STORE" for the beginning.
Core & Common: Fonts
It is now possible to replace the fonts that are used for titles and for tabs.
Core: DockController has an additional method "getFonts()". This method grants access to a map of key-font pairs. If you need something more sophisticated than just a map, a "FontBridge" can help. Such a bridge can exactly tell which font should be used where.
Common: CDockable has an additional method "getFonts()". This method grants access to a map of key-font pairs. Each font is associated only with one CDockable, so it is possible to have different fonts for different Dockables. Instead of just using a hard coded font you can also use "FontModifiers". Such a modifier takes the original font and transforms it, i.e. changes the size of a font.
Core: DockFrontend has a new listener
The "VetoableDockFrontendListener" gets informed before and after a Dockable is shown or hidden. It can cancel the operation, i.e. you can ask the user whether to really close the Dockable with the unsaved changes...
This does not prevent a Dockable to disappear because of a changed layout!
Plans for the future
As some of you might wonder whether I have a plan at all, these are the things that will happen next:
I plan to make one last preview 1.0.7p6, and shortly afterwards release 1.0.7.
Some infos that were missing for versions <= 1.0.7p4
Core: ScreenDockStation supports custom windows
With the key "ScreenDockStation.WINDOW_FACTORY" one can register a "ScreenDockWindowFactory". This factory creates the windows which are used for floating Dockables.
The factory "DefaultScreenDockWindowFactory" should suffice for most clients. It can create JDialogs and JFrames, decorated and undecorated, with custom icon and text.
Install the factory with "DockController.getProperties().set( ... )".
Geändert von Beni (08.10.2008 um 16:45 Uhr).
Registriert seit: 27.08.2006
AW: Preview Version 1.0.7
New preview up. There are no new features but some bugfixes (all reported somewhere in this forum).
|Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)|
|"One Year After: JavaFX-Preview von Sun"||L-ectron-X||Java||0||06.08.2008 11:06|
|Preview Version 1.0.6||Beni||DockingFrames||2||27.07.2008 14:54|
|"Javaone 2007: Preview von Netbeans 6.0 veröffentlicht"||L-ectron-X||Java||0||08.05.2007 22:25|