Bug 155926 - Unable to customize the individual TopComponent window actions/buttons.
Unable to customize the individual TopComponent window actions/buttons.
Status: RESOLVED FIXED
Product: platform
Classification: Unclassified
Component: Window System
6.x
All All
: P3 with 5 votes (vote)
: 6.x
Assigned To: Stanislav Aubrecht
issues@platform
:
Depends on: 156693
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-22 10:53 UTC by reply2manu
Modified: 2009-02-19 22:53 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description reply2manu 2008-12-22 10:53:12 UTC
Why - Need for Enhancement
--------------------------
We have few TopComponent windows in our application and we don't want that user can close(x) one of the TopComponent
window as we wanted it to display always.

Also, wanted to rename the string values of context menu on Editor TopComponent. As of now this context Menu displays
like this:
Close All Documents
Close Other Documents
<separator>
Save
Clone
<separator>
Close Window
Maximize window
Undock Window

So, I wanted to edit few of those strings and add few other actions to this menu.

The following things I wanted to do:-
1) User should not be able to close a particular TopComponent window i.e Close button should not be visible to user.
2) User should not be able to undock a particulat TopComponent window i.e "Undock Window" option should not be visible
to user and can't be accessed by its shortcut.
3) To customize the popup context menu in individual TopComponents.

What to Enhance
---------------
For this, it would be nice if you can provide an API to turn such a thing on/off at will for individual TopComponents
Tabs/Windows handles.

Enhancements Required
---------------------
1) An API should be provided to turn on/off "Close" & "Minimized" Buttons in individual TopComponents.
2) An API to customize the popup context menu items and their strings in individual TopComponents.
3) An API to add more buttons at the Top(i.e adjacent to close, minimize) of individual TopComponent windows.
4) It would be great if an API is provided to enable/disable popup menus on individual TopComponents & Toolbar.
Comment 1 Stanislav Aubrecht 2009-01-30 15:23:47 UTC
i've integrated api changes for #156693 which allow turning closing, sliding, undocking, dragging and maximization off
for a single topcomponent
if you want more window system customizations, please file separate issues for them, thanks


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo