How to sequence canvasses, SVGForms, SVGSplashScreens

I have made a program, that "walks" , through a few input phases. Purely sequentially:
1: the splash, that times out after 2 seconds and at DISMISS_COMMAND steps to a
2: Canvas, that processes exactly 3 keyPressed events and then automatically jumps to
3: an SVGForm that asks for two values via a set of SVGRadioButtons and an SVGSpinner. Pressing Command.EXIT makes the program exit, Command.OK makes the program then jump to
4: a canvas that keeps running "forever", until a certain key is pressed. (event KeyPressed) Then the Canvas stops and the program exits.
So the program is controlled by regular commands and by keyPressed events.
My question is, what the best, or "best practice" way is to connect these phases.
1: in the commandAction of the main MIDlet ? This processes the DISMISS_COMMAND , EXIT command and OK command mentioned., but not the keyPressed events of phase 4 or the automatic jump from phase 2.
in other words: is it "good practice" to use commandAction to handle all program control ? The DISMISS_COMMAND would then cause Canvas (2) to start, which would, on ending, create and start the SVGForm which would again have the same commandListener as the splash. Sort of recursion ?
2: or in the startApp with some if-constructions and state variables or whatever?

Erik_that_s_me wrote:
I have made a program, that "walks" , through a few input phases...given that you describe the problem in terms of phases (states), [state pattern|http://en.wikipedia.org/wiki/State_pattern|explanation] naturally comes to mind.
My question is, what the best, or "best practice" way is to connect these phases.
1: in the commandAction of the main MIDlet ?Above, you mean something like having single CommandListener "shared" between different screens?
My experience with stuff like that was rather negative: "personal" listeners (one per screen) were easier to code and maintain. If you find a way that does not use shared listener, I'd recommend to go for it.
2: or in the startApp with some if-constructions and state variables or whatever?hm for stuff like that I would try to design a dedicated object to manage state, variables and transitions

Similar Messages

  • Multi-Mapping - JDBC receiver -  Multiple stored procedure - How to sequence?

    Hi Folks,
    We have 7.1 .Done multi-mapping , single source mapped to 5 different stored procedures.
    The challenge we are facing here is , these stored procedure is not working sequentially .
    i.,e  for e.g., 2nd Stored Procedure should start only when first Stores procedure completely finished its turn.
    But third procedure getting completed before1 st stored procedure completes .
    Highly appreciate if any views on this ? How to sequence and make sure second will start only when first SP complete  ?
    -- Shiva

    Hi ,
    Thanks for your reply. all stored procedures are asynchronous one.
    If we go for ccBPM , do we need to put wait step ?
    - Here we dont know how much time each procedure takes to complete. Requirement is another procedure has to start only when the previous one completes.
    --Shiva

  • Don't know how to use canvas

    Hello,
    I'm new to J2ME and I got lost with all the information about J2ME on the web.
    I need help in the following thing.
    I want to make a graphical main menu for my midlet, but I don't know how to use CANVAS.
    I'm sure that there is template that I can customize it without writing all the code from the begining, but I can't find it.
    I'll be very happy if somebody can send me a link that contains a sample or template for main menu using CANVAS.
    also, I'll be happy to get a web site that explains all the canvas subject step by step. with examples that I can run.

    Hello.
    In order to use the printer with your iOS devices, please make sure that the units are all connected to the same WI-Fi router.  Once this has been done you should be able to print.
    The initial Wi-Fi setup of the MG3222 would have to be done from a compatible Windows or Mac OSX computer.
    If additional assistance is needed, feel free to call us at 1-800-OKCANON.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How to sequence Snagit

    Hi,
    I am completely new to app-v but I have been thrown straight into a project to sequence a few applications. I have been learning as I go along. Is it possible for you to please give me a step by step guide in sequencing snagit v9.0 with some explanation
    along the way. Thanks in anticipation.
    Regards

    Hello,
    These are the top results of if you google for App-V snagit. Some describe the entire process (as you explicitely requested), others deal with minor tweaks necessary for a process that one could assume would apply to any best practice sequence attempt. 
    http://www.itninja.com/software/techsmith/snagit/10-369
    http://social.technet.microsoft.com/Forums/en-US/f958358d-b879-4ff2-92bc-052c5396ff65/problems-appv-sequencing-snagit-v11?forum=mdopappv
    http://www.richud.com/wiki/AppV_Recipes
    For the benefit of others, perhaps you could share how you sequence it?
    Nicke Källén | The Knack| Twitter:
    @Znackattack

  • How many sequences of photos can I share? (Photo Stream)

    How many sequences of photos can I share? (Photo Stream)
    I am using iMac 2009, New iPad and iPhone 4

    Yes.  The following is from iCloud: My Photo Stream FAQ
    What do I need to use My Photo Stream?
    To use My Photo Stream you need an iCloud account, compatible devices, and up-to-date software:
    iPhone, iPad, or iPod touch with iOS 5.1 or later
    Mac with OS X Lion v10.7.5 or later and iPhoto 9.2.2 or Aperture 3.2.3 or later
    Apple TV (2nd generation) with Apple TV Software Update 5.0 or later
    PC with Windows 7 or later and the iCloud Control Panel 2.1 or later for Windows
    This document also gives minimum requirements for both Macs and PCs for the various features in iCloud: iCloud: System requirements
    OT

  • How to connect Canvas object by line ?

    I want to make an application which can draw object
    relationship like UML. for example , after i made the replationship
    between two object (draw line), when i drag one object , the line
    will be updated automatically .And when i select the connect line ,
    this line object will be selected also .
    It seems that ,the Grpahic's drawline method is not the
    correct choice , how can i do for that ? Make a new control ?
    I use the Canvas container as the drawing area.
    thanks for your reply.

    or , How can i use the MouseEvent to get the draw line ?
    What is the object type of a draw line ?

  • How to crop canvas and change aspect ratio?

    I'm working on a project shot with an old camera from the 70s. I used that camera but recorded the signal on my mini dv camera. Now I have a black border on the right side of the image.
    This project is going on the Web, not TV. How can I crop the canvas (and change the aspect ratio) without a black border? I know there's a crop feature in the motion tab, but that results in same aspect ratio with black border. Is this possible?
    (I don't care if the aspect ratio is non-standard, and I don't want to letterbox.)

    If you are going to the web (what means you'll downscale at the end) and you shoot using an old camera, the loss of quality of the upscaling probably means nothing in your final web encoding.
    You can make a test upscaling just some seconds of your movie an encoding it for the web to check the final quality.
    Hope that helps !
      Alberto

  • How to sequence Microsoft System Center Service Manager?

    AppV Version: 5.0
    OS: Windows 7 64-bit
    Application Name: System Center Service Manager 7.5.2905.0
    Issue: This applications has a shortcut named as "Service Manager Shell" which will launch as shown in screenshot below,
    The same shortcut will launch as shown in screenshot below with Sequenced Application,
    Please let me know how to make this shortcut launch same as source.
    Regards,
    Reddy

    I would check the package for any reference of the specific path to the C:\Program Files\Microsoft System Center 2012 path. Also have you run a ProcMon trace to see where the app is looking for the files? The certificate may be pointing to the C:\Program
    Files Directory rather than the App-V path..
    PLEASE MARK ANY ANSWERS TO HELP OTHERS Blog:
    rorymon.com Twitter: @Rorymon

  • How to refresh canvas on every page load?

    Hi,
    I have a <canvas> added for electronic signature. Electronic Signature using SAPUI5?
    As there is no UI5 control I am adding the canvas from controller to xml view having  <core:HTML id="signature" width="100%" />
    When the page is loaded for the first time it works  fine but on successive load of the page, canvas is not being refreshed with different signature. I am getting data from backend as OData but I cant bind the property so that on model change canvas would refresh.
    How to fix the issue of canvas refresh on every page load?

    Hi Dennis,
    There is a slight error in your code: the last Undo button is missing a closing } for the press function, and the 'enabled' property contains a rogue comma, but other than that, kudo's for your work here!
    Rashmi, it seems like Dennis Seah has created the perfect case on why you should consider writing your own custom control instead of using the standard <canvas> element

  • How to fill canvas with lines

    <mx:Canvas id="b1" x="10" y="10" height="40" width="300" borderStyle="solid" borderColor="black"/>
    when i want to draw lines with 15 pixels gap to fill the entire canvas i wrote as follows
                   for(var i:int=b1.x+15;i<b1.x+b1.width;i=i+15)
                        var line1:UIComponent = new UIComponent();
                        var lineThickness1:Number = 1;
                        var lineColor1:Number = 0x000000;
                        var lineAlpha1:Number = 1;
                        line1.graphics.lineStyle(lineThickness1,lineColor1,lineAlpha1);
                        line1.graphics.moveTo(i,b1.y);
                        line1.graphics.lineTo(i,b1.y+b1.height);
                        this.addChild(line1);
    it's working fine
    lly,
    <mx:Canvas id="b4" x="600" y="200" height="60" width="300" borderStyle="solid" borderColor="black" rotation="40"/>
    I have the above canvas with id 'b4' only difference is that this canvas has the rotation
    how to fill this canvas with lines just i did above?

    Hope this code will help you,
    for(var i: int = 15; i < b4.width; i = i + 15) {
         var line1: UIComponent = new UIComponent();
         var lineThickness1: Number = 1;
         var lineColor1: Number = 0x000000;
         var lineAlpha1: Number = 1;
         line1.graphics.lineStyle(lineThickness1, lineColor1, lineAlpha1);
         line1.graphics.moveTo(i, 0);
         line1.graphics.lineTo(i, b4.height - 1);
         //Add line in canvas instead of main container
         b4.addChild(line1);
    <mx:Canvas id="b4" x="600" y="200" height="60" width="300" borderStyle="solid" borderColor="black" rotation="40"/>

  • How to sequence an album in Logic?

    How can I sequence an album, meaning have songs blend into each other (one starts as the other fades away), while being able to seperate them into individual numbered tracks?

    iTunes svcks.
    And in Waveburner, you can add "Mastering Effects"
    that can shape the sound of the entire album.
    X
    Mmmm, I went back to doing it all in Logic....
    Also, "Mastering Effects" don't seem to include the AdLimiter, that is in the "Mastering Effects" section of the Logic plugins.. go figure!

  • Export Layers to Files: How to keep canvas size

    Hello
    I need to export hundreds of layers to PNG-Files.
    Unfortunately the Script crops to the layer's boundary so every file has different dimensions. How to keep the canvas size of the PSD in the exported files?
    Thanks for your help
    PS-Version: MacOS, CS 5.1

    un-check trim if that does not work then
    http://www.filesresidence.com/File/acf00llbo09pg# try this version it may do what you want.

  • How to sequence shoot in 5800XM at pre defined int...

    Hi
    Can guide me as to how i can use sequence shoot in 5800XM at pre defined intervals. The user manual says this is possible but does not state how it can be done?
    I really would love to use this feature in the phone and any help will be appreciated.
    Thank you

    Hi sanjuram15
    Whilst in Camera application press the three horizontal bar icon above "Options" > Sequence ( three overlapping rectangle icon) appears top of screen next to camera icon > then press "Camera " icon below Exit and after focussing it acts like a film "motordrive" until you press "Stop"
    Unfortunately there doesn't seem to be the scope to alter the timing sequence as on my N95 but I may be wrong!
    This is with v40.0.005 firmware by the way.
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • Camtasia to FCE: how to improve canvas quality

    I recently started using Camtasia on a PC and saving the files as an HD quality mp4 file and then importing it into FCE on my iMac. When I watch the file on Quicktime or in the FCE viewer the quality is great, however when I watch it in the canvas the video quality is terrible. The problem seems to remain after I finish the project and watch it in quicktime.
    I tried to change the file to .mov and that didn't help. It is also taking 30-40 minutes to render a 7 minute clip.
    Does anyone have any ideas on how to stop losing the quality of the video when I go to edit it?
    Thanks

    Hi and welcome to the forum!
    Open the clip in Quicktime and click Command-I to view more information. What are the exact specifications of the file?

  • How to reload Canvas contents ---any help

    Hi All,
    In javaScript we have window.reload(); to reload the window.
    Is there any function in Flex to reload application / any
    components like <Canvas> , <DataGrid> etc. If there is
    no function to support this feature how can I acheive this
    programatically. Anybody suggests me . (In Flex we have
    removeAllChildren() method to remove all chidren of Canvas .. is
    any similar methods to reload all content of Canvas , DataGrid
    etc...or application)
    Thanks & Regards,
    Siva Kumar

    Hi ,
    I tried invalidateDisplayList() or invalidateProperties()
    methods . But it's not reloading the <Canvas> . I tried to
    implement navigateToURL() --- it's loading the entire application
    again. Have u any other alternative to this.
    Thanks & Regards,
    Siva Kumar

Maybe you are looking for