- Mar 27 '08 Changed behavior of TopComponent.close() and TopComponentGroup.close() for non persistent TopComponent
Add client property KeepNonPersistentTCInModelWhenClosed to TopComponent to control behavior of winsys
when nonpersistent TopComponent is closed. As some TopComponent wants to keep their position in winsys
ie. be able to reopen at the same place and some TopComponent wants to be removed from winsys model.
We added client boolean property KeepNonPersistentTCInModelWhenClosed. When this property is not set
nn persistent TopComponent is removed from model when closed - it is original behavior before fix of
issue #101700. If client property is set (!= null) then TopComponent is kept in model. It means that
client must explicitly set this client property to get behavior requested by issue #101700.
- Oct 23 '07 Changed behavior of TopComponent.close() and TopComponentGroup.close() for non persistent TopComponent
Change behavior of winsys implementation when TopComponent.close() and TopComponentGroup.close()
is called for non persistent TopComponent. So far if non persistent TopComponent was closed it was
removed from Mode. It causes window system to forget TopComponent location so if TopComponent
is reopened it is opened in default location. It is now changed so that window system keeps location
of non persistent TopComponent during session. Of course this information is not stored between sessions
as TopComponent is NOT persistent. So this change applies only to TopComponent with peristence type
PERSISTENCE_NEVER.
- Oct 9 '07 Added command line boolean option 'netbeans.winsys.auto_iconify'.
Added command line boolean option 'netbeans.winsys.auto_iconify'. When system is run
with option netbeans.winsys.auto_iconify=true, all separate frames will follow
iconified state of main window automatically. So when main window is iconified,
they all get iconified too and vice versa. Such behavior was default
prior to this change, but now automatic iconification is disabled by default,
to respect independency of separate frames and behave well with GNOME window
managers such as default Metacity WM.
- May 3 '07 Added a method to check the TopComponent type - editor/view
Added method WindowManager.isOpenedEditorTopComponent(TopComponent)
for checking of the TopComponent type - editor or view. The method returns true if the given TopComponent is opened and is docked into an editor-type Mode.
It is safe to call this method outside the event dispatch thread.
- Apr 6 '07 Added methods for opening TopComponent at specified position
Added method TopComponent.openAtTabPosition(int)
for opening and inserting top component at specified position. For retrieving current position,
method TopComponent.getTabPosition()
was added.