Package | Description |
---|---|
org.openide.windows |
Most parts of NetBeans do not manipulate windows directly, but use
special
top components.
|
Version of CloneableEditorSupportRedirector which will be called only during opening of document when algorith tries to understand if file is in list of already opened TCs or not. SPI implementers to setup filter on specific requests only... This could minimize number of redirect() calls.
The new methods can be used in conjunction with split multiview window, where e.g. the pallette needs to know which two of the available subcomponents are showing and query their lookup.
New method setAttentionHighlight(boolean) in TopComponent class can be used to permanently highlight TopComponent's tab until user activates it.
New methods in WindowManager class:
isTopComponentMinimized()
setTopComponentMinimized()
isTopComponentFloating()
setTopComponentFloating()
invokeWhenUIReady
In case you want to execute a code as soon as main window is visible, consider using OnShowing annotation.
protected void componentDeactivated () { // close window group containing propsheet, but only if we're // selecting a different kind of TC in the same mode boolean closeGroup = true; Mode curMode = WindowManager.getDefault().findMode(this); TopComponent selected = curMode.getSelectedTopComponent(); if (selected != null && selected instanceof FooTopComponent) closeGroup = false; if (closeGroup) { TopComponentGroup group = WindowManager.getDefault().findTopComponentGroup(TC_GROUP); if (group != null) { group.close(); } } }
|
|
|
|
|
|
|
OpenIDE-Module-Requires: org.openide.windows.WindowManager
but it is not generally done.
Read more about the implementation in the answers to architecture questions.
Built on January 9 2014. | Portions Copyright 1997-2014 Oracle. All rights reserved.