|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
See:
Description
Windows API | |
org.openide.windows | Most parts of the IDE do not manipulate windows directly, but use special top components. |
TopComponent.getHtmlDisplayName
,
TopComponent.setHtmlDisplayName
and
WindowManager.topComponentHtmlDisplayNameChanged
methods.
The TopComponent.getHtmlDisplayName
and TopComponent.setHtmlDisplayName
methods was added to allow TopComponent
s to have display
name that contains html tags differentiated from regular display name.
Regular display name should be used for tasks like alphabetical sorting
while html display name is used for labels and titles that support html,
like editor tabs. WindowManager.topComponentHtmlDisplayNameChanged
was also added to let window system implementation know about html
display name change.
TopComponent
ability to bring their parent
Window
to front of other windows.
The TopComponent
class has a new method toFront()
that attempts to bring the parent Window
of the TopComponent to
front of other top-level windows.
The method is implemented in the WindowManager
class
using AWT's java.awt.Window#toFront()
.
TopComponent.requestAttention(boolean)
and TopComponent.cancelRequestAttention
added to allow components to signal that they require user's attention or the attention is no longer required.
It's up to the current TopComponent container to decide how to attract user's attention.
If the user activates the attention-requiring component, the container assumes the goal was achieved and the action is cancelled.
The methods are thread-safe.
For those implementing WindowManager class, there is an incompatible change where
abstract methods topComponentCancelRequestAttention(TopComponent)
and
topComponentRequestAttention(TopComponent)
were added.
Adding TopComponent.associateLookup
to allow
late (in middle of constructor) association of Lookup with
component. This is especially useful in
org.openide.explorer.ExplorerUtils
.
Method to get TopComponent persistence type is added to API.
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-IDE-Dependencies: IDE/1 > X.XX (it will be defined yet)
as window system is part of openide.
And dependeny on implementation:
OpenIDE-Module-Module-Dependencies: org.netbeans.core.windows > X.XX
. But since the core-windows.jar does not provide any public API
this should be used only in ui-declaration module (like core-ui.jar).
Read more about the implementation in the answers to architecture questions.
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |