Any pattern or nice solution to this ...

I have an app which goal is to model UML graphically and generate code from models.
My doubt is explained next:
I have the graphical base component where UML components are drawn. For example Class Diagrams, Interfaces, just the same than Rational Rose.
If I want to create a Class on the graphical component ( draw the class ) I need firt to use the creation bar where all buttons related to create graphical componenets are located.
If I click any of those buttons and then go and click somewhere on the base graphical component I need to check out what button was pressed.
How would be a nice way to perform this ?
I thought about creating a CreatorCmdBarStatus where we can post(currentCmd) and then when the mouse is clicked on the base graphical component, check out that CreatorCmdBarStatus to see which has been the last posted cmd ( either a class creation or interace creation and so on ).
Another solution using some elegant way to resolve this ?
Thanks.

I have an app which goal is to model UML graphically
and generate code from models.
My doubt is explained next:
I have the graphical base component where UML
components are drawn. For example Class Diagrams,
Interfaces, just the same than Rational Rose.
If I want to create a Class on the graphical
component ( draw the class ) I need firt to use the
creation bar where all buttons related to create
graphical componenets are located.
If I click any of those buttons and then go and click
somewhere on the base graphical component I need to
check out what button was pressed.
How would be a nice way to perform this ?
I thought about creating a CreatorCmdBarStatus where
we can post(currentCmd) and then when the mouse is
clicked on the base graphical component, check out
that CreatorCmdBarStatus to see which has been the
last posted cmd ( either a class creation or interace
creation and so on ).
Another solution using some elegant way to resolve
this ?
Thanks.It might not be exactly the same thing, but I wondered if there was a JRadioButton pattern for "ButtonGroup.getSelected(Radio)Button()...doSomethingWithIT()"
You wouldn't want to try something with (J)ToggleButton in a ButtonGroup (there you would even have user (UI) feedback)?

Similar Messages

  • I have a problem openning my Itune home, I'm getting unknown error 0x80090308, any body has a solution for this problem

    I have a problem openning my Itune home, I'm getting unknown error 0x80090308, any body has a solution for this problem

    hi marco
    I found the problem. Do you have other wi-fi (w-lan) like repeater or tv-transmitter or d-link etc. if yes, please disconnect them once and try again after restarting the time-capsule resp. change the channel if you can to another one. then it should work again.
    @ home i have a tv-transmitter via wi-fi and indeed, i changed the channel from 1 to 6 or something like that, then the iphone worked again.

  • Can any one find a solution to this problem [ID CC 2014 has stopped working] for this file{link included}

    Hi all,
    Can any one find a solution to this problem [ID CC 2014 has stopped working] for this file{Dropbox - Questions CH-5 .indd}
    Note: I could open it, but suddenly I have faced this issue with just this file no any other of my files.
    Thanks for your help.

    try the blind export to .idml script at Adobe Community: InDesign 6 is crashing when attempting to open a particular document. All others are opening OK.

  • TS1398 I have an iphone 3gs and since I made the 6.01 update everytime I want to join a wireless network I get the same error "incorrect password" when I now it's correct, any one have a solution for this? Tks

    I have an iPhone 3gs and since I made the 6.01 update everytime I want to join a wireless network I get the same error "incorrect password" when I now it's correct, any one have a solution for this? Tks

    I would say that you would want to look into the "Exchange Mode" for GMail.  That would allow your iPhone to sync calendars, contacts and email with GMail just fine.  Doing the same with your outlook should also then sync those same with your PC using Outlook.  I've done teh iPhone side of this, but I since I don't run Lookout for my email client, I'm not sure how that will work on the PC side.

  • REGARDING SCRIPTS.... CAN ANY ONE GIVE THE SOLUTION FOR THIS

    I have copied the standard script ML_SERVICE_ENTRY to ZFORM.... in tcode se71 but it has its original lang. - DE and lang - EN , if i get into this ZFORM ...
    in change mode,  the creation of windows, windows allignment and convert original lang. are in disabled mode , here i have to change the window size to add some text , is there any other method to change the language and to get these things in
    enable mode. plz give some solution for this one.

    Hi Mohan,
    While copying itself U have to give the Language in which U want to maintain, else U are supposed login in with the original Language only.
    Regards,
    Mohan
    *Reward if helpful*

  • After installing Lion my keyboard will not work at all and it will not recognize my wi-fi connection at times. Any ideas for a solution to this problem?

    It will not let me type anything now and the wi-fi connection is not recognized at times! Please help!! This only happened after I downloaded Lion.

    Now that you have restored it to Apple software, we can help - no kidding.
    If WiFi is grayed out (tap Settings first) then you will not be able to select WiFi. See this article: http://support.apple.com/kb/TS1559
    If you can select WiFi, your touch will then detect WiFi networks that are within range. Networks that are protected by encryption will display with a closed lock. Open networks will have an open lock. Networks are displayed by strongest signal to weakest signal.
    Closed/locked networks require a password or WEP key to join. Open networks often require that you agree to terms and conditions for that network. This usually occurs with a Safari-like screen that appears 15-30 seconds after you tap on the network. Until you go through that screen, it might look like you are connected but you are not.
    Spend some time going through the basic WiFi troubleshooting guide: httpL//support.apple.com/kb/TS1398

  • I have several Files created in Logic Audio for windows bfreo v 5 wich  can't open in Logic Pro X. Any ideas for a solution to his problem,

    I have several Files created in Logic Audio for windows before v5.5.1 which  can't open in Logic Pro X. Any ideas for a solution to this problem, The Windows files that were created in v5.5.1 open OK.  I lost my XS key during a recent house move so can't update to windows files before trying to open in Logic Pro X
    Swingtones

    If you can open the windows files  in windows you can bounce the tracks out as audio. Then load them in X

  • Using IOS 7.1.2 on Safari when I leave the focus on a input on my webpage and rotate my device from Horizontal to vertical, I see a black space on the right and the page is not displayed properly. Any solutions to this problem?

    iOS Version: 7.1.2
    Browser: Safari
    I have a sample log-in page with two input fields and a submit button. When I focus on any of the input fields in landscape mode and rotate my phone and come to the portrait mode I see a weird black space towards the right of my page. Screenshots attached below:
    My page code below:
    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
        <title>IOS Test</title>
        <style type="text/css">
            a, abbr, acronym, address, applet, article, aside, audio, b, blockquote, big, body, center, canvas, caption, cite, code, command, datalist, dd, del, details, dfn, dl, div, dt, em, embed, fieldset, figcaption, figure, font, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, keygen, label, legend, li, meter, nav, object, ol, output, p, pre, progress, q, s, samp, section, small, span, source, strike, strong, sub, sup, table, tbody, tfoot, thead, th, tr, tdvideo, tt, u, ul, var
                background: transparent;
                border: 0 none;
                font-size: 100%;
                margin: 0;
                padding: 0;
                border: 0;
                outline: 0;
                vertical-align: top;
            ol, ul
                list-style: none;
            blockquote, q
                quotes: none;
            table, table td
                padding: 0;
                border: none;
                border-collapse: collapse;
            img
                vertical-align: top;
            embed
                vertical-align: top;
            article, aside, audio, canvas, command, datalist, details, embed, figcaption, figure, footer, header, hgroup, keygen, meter, nav, output, progress, section, source, video, div
                display: block;
            mark, rp, rt, ruby, summary, time
                display: inline;
            input, textarea
                border: 0;
                padding: 0;
                margin: 0;
                outline: 0;
            iframe
                border: 0;
                margin: 0;
                padding: 0;
            input, textarea, select
                margin: 0;
                padding: 0;
            body
                font-family: Arial, Myriad Pro, Trebuchet MS, sans-serif;
                font-size: 100%;
                background: #F5F5F5;
            a
                text-decoration: none;
            a:hover
                text-decoration: none;
            img, object, embed, video
                max-width: 100% !important;
            .clear
                display: block !important;
                width: 100% !important;
                clear: both !important;
            .body
                position: fixed;
                width: 100%;
                top: 0;
                left: 0;
                overflow-y: scroll;
                -ms-overflow-style: -ms-autohiding-scrollbar;
                -webkit-overflow-scrolling: touch;
                -ms-touch-action: pan-y;
                -ms-user-select: none;
                z-index: 0;
            .body > *
                -webkit-transform: translateZ(0px);
            .header
                background: #fff;
                text-align: center;
                border-bottom: #45A116 solid 8px;
                padding: 5% 10%;
            .content
                width: 70%;
                position: relative;
                margin: 20% auto 10% auto;
                text-align: center;
            .content input
                display: block;
                background: #E6E6E6;
                border-radius: 15px;
                border-bottom: #A8A8A8 solid 3px;
                margin-bottom: 5%;
                width: 96%;
                padding: 4% 2%;
                text-align: center;
                color: #595959;
            .content a
                display: inline-block;
                padding: 2% 10%;
                color: #fff;
                background: #45A116;
                margin-top: 5%;
                border-radius: 5px;
                border-bottom: #2C690E solid 3px;
                -webkit-transition: all 0.1s linear;
                -moz-transition: all 0.1s linear;
                -ms-transition: all 0.1s linear;
                -o-transition: all 0.1s linear;
            .content a:active
                background:#368011;
        </style>
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
        <script type="text/javascript">
            function adjustBody() {
                var wh = $(window).height();
                $(".body").css({
                    "height": wh + "px"
            $(document).ready(function () {
                adjustBody();
                $(window).resize(function () {
                    adjustBody();
        </script>
    </head>
    <body>
        <div class="body">
            <div class="header">
                <img src="sampleImage.png" alt="Sample Logo" />
            </div>
            <form action="" method="get" id="sampleForm">
            <div class="content">
                <input type="email" value="User Name" onblur="if($(this)[0].value == ''){$(this)[0].value = 'User Name';}"
                    onfocus="if($(this)[0].value != '' && $(this)[0].value == 'User Name'){$(this)[0].value = ''};" />
                <input type="password" value="Password" onblur="if($(this)[0].value == ''){$(this)[0].value = 'Password';}"
                    onfocus="if($(this)[0].value != '' && $(this)[0].value == 'Password'){$(this)[0].value = ''};" />
                <a href="javascript:void(0);" onclick="$('#sampleForm').submit();">Login</a>
            </div>
            </form>
        </div>
    </body>
    </html>
    Does anyone have any solutions to this problem?
    Regards,
    Mayank Tripathi

    ALWAYS SAVE YOUR idevice USING ICLOUD !!!! IT SAVES ... ALL !! (includings apps data, but the apps themselves ! USE IT ! i done this...)

  • How im suppose to fix the auto shutdown problem in my iphone 3gs after updating to ios 5.1.1 this problem has made me a mobile ****** in my house and an loser in thing care so if any solution to this problem let me know

    how im suppose to fix the auto shutdown problem in my iphone 3gs after updating to ios 5.1.1 this problem has made me a mobile ****** in my house and an loser in thing care so if any solution to this problem let me know

    What "auto shutdown problem" are you talking about?

  • After update my iPad 2 with IOS 6.0.1 the botton mute and sound + doesn't work...any solution for this??? Thanks

    After update my iPad 2 with IOS 6.0.1 the botton mute and sound + doesn't work...any solution for this??? Thanks

    There are numerous reports of this issue happening on iPhones. It may be a glitch that will need a new update. Some find that a full shut-down and restart fixes that problem, but not always.

  • I bought iPhone 3GS(Used) recently and updated ios 6.1.3 my iPhone is taking blurry Pictures through basic default Cam app.Can anybody please let me know any solution for this?

    I bought iPhone 3GS(Used) recently and updated ios 6.1.3 my iPhone is taking blurry Pictures through basic default Cam app.Can anybody please let me know any solution for this?

    Basic troubleshooting steps right out of the user guide are restart, reset, restore from backup, restore as new.  If you've been through ALL the steps and you still have the problem, then you'll need to bring your phone to Apple for evaluation.

  • I bought my iphone 5 in Houston Texas May 15 2013 IMEI Nr. 013428009645399.The problem is that in the Greece the country which I live the 4G is not working.If you have any solution for this problem pls. let me know.My email is philcoueth@yahoo.gr Thank yo

    I bought my iphone 5 in Houston on May 15 2013.
    IMEI 013428009645399.The problem I have is that in the country
    which I live GREECE the 4G is
    not working.Please if you have any solution for this
    problem let me know.My email is [email protected]
    Thanking you in advance
    Philip Couridis

    iPhones purchased in the US are NOT guaranteed to work with 4G bands outside of North America.
    For what crazy reason did you purchase an iPhone in the US if you live in Greece?  If your phone needs servicing, it will have to be brought back to the US.  You cannot get that phone serviced in Greece.

  • My iphone 4 would not back-up to to pc "because an error occurred" anyone offer any solutions to this,  I want to restore my phone to factory settings and reinstall my data but cannot back up first.

    my iphone 4 would not back-up to to pc "because an error occurred" anyone offer any solutions to this,  I want to restore my phone to factory settings and reinstall my data but cannot back up first. Original problem is that I cannot connect to any wifi system anymore - have tried resetting network settings but did not work.

    Try 1 step at a time and do a backup, if no joy then do the next step:
    1. Switching off your anti-virus and firewall.
    2. Computer iTunes menu > Edit > Preferences... > Devices > delete your backup

  • My Mac is a 21.5-inch Late 2009 with a 1 TB Seagate HD that must be replaced, according to Apple support, but they denied me that right because the serial is not part of the replacement program: any suggestions to get a plausible solution to this problem?

    My Mac is a 21.5-inch Late 2009 with a 1 TB Seagate HD that must be replaced, according to Apple support Panama, but they denied me that right because the serial is not part of the replacement program: any suggestions to get a plausible solution to this problem?
    I would want to know what are the criteria used by the people al espresslane support to deny the opportunity presented by the replacement program, given the situation that these 1 TB Seagate HD´s have had problems and certainly not only in the batch they accepted, but probable in other batches too.
    The second question is about the powerpc support that is lost when updating from Snow Leopard to Lion X: I can not read my medical application UPTODATE.
    I hope that there wil be some kind of support to help me solve that problem, this is my first petition actually.
    Now, I do not have access to my yahoo email, intermitent access to Apple home page, unpredictable access to Apple store and no access to iCloud in my iMac: when I try to access these web sites, the blue web address bar is interrupted and never goes to the end, no filling up the whole bar.
    I do not know what is the first problem, the Seagate HD or the Lion X, but my life is becoming a miserable one, not having the opportunity to enter in the raplacement program, losing the powerpc support because of the updating to Lion X, the necessity to buy Lion X again because it used to appear as a paid program, but not anymore, and finally having no access to my yahoo email, Apple home website and Apple store and no access at all to the iCloud: I am done.
    Chao, Elías.

    You can have Apple or a competent service shop replace the internal HD for a fee, unless you have AppleCare and the iMac is within its warranty period in which case it will cost nothing. If you must pay the cost will be approximately $350 US.
    PowerPC support is gone with Lion. You can install or retain Snow Leopard on another partition, and boot Snow Leopard as necessary.
    The inability to load web pages is a different problem, unless it is related to your failing hard disk.

  • I just bought a new iMac and am having troubles downloading creative cloud installer.  Its coming up with error 214 - I can't find any solutions for this.  Can anyone help me?  Im on mac OS 10.9.4

    I just bought a new iMac and am having troubles downloading creative cloud installer.  Its coming up with error 214 - I can't find any solutions for this.  Can anyone help me?  Im on mac OS 10.9.4

    Meg81 error 214 indicates a download data validation error.  This means that the update you downloaded became corrupted likely during the download process.  I would recommend utilizing the suggestions listed in Error downloading Creative Cloud applications - http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html to attempt to improve the stability of your Internet connection.
    You can also find information on how to review your download logs which may provide additional information regarding the failure of the download.

Maybe you are looking for

  • Error in RSCRM_BAPI

    I am using RSCR_BAPI to get the query data in flat file. When I restrict the query with fiscal year/period it is giving zero bytes file. Any suggestions would be highly appreciated.

  • Who uses apogee products?

    hi everyone. i wanted to see who here uses apogee products? i have 2 duets for different machines and i find so many problems with the drivers. i have distortion, crashing, no sound input, random pops when there is no sound being played. its so frust

  • Adobe LMservice causing logging off problems

    When shutting down or loggin off Windows XP srvc Pck3, I keep getting this error message: End Program-1184, 136c, dsagent.exe (it changes everytime I logg off) and it only happens with my user. I have performed a "clean boot" and I have isolated the

  • New blackberry and desktop manager

    Hi, I got a new blackberry and it has a new pin with it. How can I get the new pin in the desktop manager? it keeps coming up with the old pin asking if I want to sinc with the new one but than it doubles my calendar entries... Thanks in advance or y

  • Question on Captive Runtime

    I am still using Flex Builder 3, as it has everything we need for our Video Player app's developement.  However I an curious about Captive Runtime, we have had a few customer's complain in the past about having to install the Adobe Runtime (I am not