![]() |
|
|||||||
| Registrieren | Benutzerliste | Interessengemeinschaften | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren | ||
| Java Link Base | Wiki | NoPaste | Chat | Boardregeln | F.A.Q. |
| DockingFrames DockingFrames An extension of Swing, used to flexibly arrange windows. - Ist eine Erweiterung von Swing, mit der flexibel Panels angeordnet werden können. |
![]() |
|
|
Themen-Optionen | Thema durchsuchen |
|
|
#1 |
|
Registriert seit: 22.04.2009
Beiträge: 30
|
Hi,
I'm using eclipse theme and I want to add a popup menu on a StackDockStation.As I implement it the menu is not shown everywhere on this station. It is not shown on the the tab info. Java Code:
Thanks, |
|
|
|
|
|
#2 |
|
Moderator
|
The MouseEvent gets processed by the Dockables and tabs - if there are any. If I run your code the popup menu appears at some places (right of the tabs). What exactly is your goal with this menu?
Maybe override "getDirectActionOffers" of StackDockStation, this way you can add DockAction's to the children of the station (but there are other, easier ways to get actions onto Dockables, e.g. the ActionGuards).
__________________
|
|
|
|
|
|
#3 |
|
Registriert seit: 22.04.2009
Beiträge: 30
|
Hi Beni,
I want the popup menu to be shown even if I right click on the title of the Dockable. Currently if I right click on the tab with title "Dockable 1" the popup didn't appear, but if I right click on right of the dockable the popup menu appear, as you noticed in the example. Thanks, |
|
|
|
|
|
#4 |
|
Moderator
|
An ActionGuard and a modified DockAction can do that:
Java Code:
__________________
|
|
|
|
|
|
#5 |
|
Registriert seit: 22.04.2009
Beiträge: 30
|
Hi,
Thank you for your answer In my case, I have multiple "StackDockStation" and on each station I have a different menu. Before upgrading to version 1.0.8, I was able to set a popup menu on all the "StackDockStation" by adding a popup menu on Java Code:
I was unable to set a popup menu on the whole "StackDockStation" in version 1.0.8 after the tab mechanism has been reimplemented |
|
|
|
|
|
#6 |
|
Moderator
|
In the current version panels/components can get replaced any time. Keeping track of some popup-menu, repositioning it when necessary or forward events to it, would be hard. And since there is already a mechanism that can show popup menus (including any custom JComponent, sub-menus, etc..), I don't see the point in supporting "old style" popup-menus.
If you have a lot of popup-menus already written, I can offer you a converter from popup-menu to DockActions. Unfortunatelly the menu will be destroyed in the process, I hope you can easily create new ones. Java Code:
__________________
|
|
|
|
![]() |
| Lesezeichen |
| Stichworte |
| - |
| Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
| Themen-Optionen | Thema durchsuchen |
|
|
Ähnliche Themen
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| StackDockStation displays the title and icons of its dockable by default | ley | DockingFrames | 4 | 13.04.2010 15:39 |
| StackDockStation not working properly with SecureDockControllerFactory | ley | DockingFrames | 2 | 13.04.2010 14:45 |
| Tab right-click menu? | endho | DockingFrames | 3 | 12.04.2010 19:58 |
| Questions to Layout (Menu) and Saving the Layout | PeterM | DockingFrames | 3 | 31.03.2010 17:40 |
| Ubuntu Blog auf Deutsch - System Menu Icons anzeigen | RSS Reader | Ubuntu Blog auf Deutsch | 0 | 04.11.2009 05:30 |