Repaint View in an Model-loop

Hello, I'm building an app. with the Model View Controller - pattern.
Now I have a loop in the model (observable), but within this loop the display must be changed.
So I want to call the repaint() method of the Viewer, but I really don't know how I should do this....
This is what I have now in the Model;
            for (int x=0; x<10; x++)
                 theModel[x][theRow] = -1;                    
                 setChanged();
                 notifyObservers();
                 try
                      Thread.wait(100);
                 catch (InterruptedException e) {}
               }So, the display must be refreshed 10 times in that second, but it just waits one second without refreshing... is there a way to fix this problem?

What code should I put in a Thread?!
my whole model has to wait until this loop is done, so this would mean I have to put my whole model in a Thread??

Similar Messages

  • Re: [SunONE-JATO] Re: How to use a tiled view without a model

    I'm not sure what is different for you now. You still parse the string
    and put it into a data structure. Before the data structure was a
    vector, in JATO its just a model with a "hidden" data structure (a hash
    map).
    MVC only really comes into play when you talk about where your write
    this code, and where the data structure is being stored. So really, JATO
    takes care of half of the MVC'ness of it all (where the data is store).
    You just decide where to be the code to populate the model.
    Make sense?
    Is there something different required of you in JATO in this scenario
    that I am not grasping?
    c
    Hoskins, John D. wrote:
    Thanks for the feedback.
    The problem I was solving involved a single string, which contained
    delimited subsets of information.
    The string looked like
    this:"time|analyst|description|time|analyst|description|..."
    In ND, I parsed it apart into it's components (time vector, analyst vector,
    description vector), populated the repeated.
    With JATO, how would I make a model for something that doesn't have a
    database component like this?
    I'm pretty new to this MVC thing, so bear with me.
    John D. Hoskins
    Telephone & Data Systems
    Application Development & Support
    Voice: 608.664.8263
    Fax: 608.664.8288
    Email: john.hoskins@t...
    -----Original Message-----
    From: Craig V. Conover [mailto:<a href="/group/SunONE-JATO/post?protectID=219212113009229091025149066024064239039098031198039130252055210">craig.conover@s...</a>]
    Sent: 6/26/2002 3.22 PM
    Subject: Re: [SunONE-JATO] Re: How to use a tiled view without a model
    I guess the only thing "weird" (for lack of a better term) about what
    you are doing is that your are populating the model on the "display
    cycle". Typically, the cycle goes like this:
    Request -> populate model -> update data store -> retrieve data to
    populate model -> display data
    some of the above steps are optional but hopefully you get the point I
    am making.
    So what you are doing is:
    Request -> populate model/display data
    If it works for you, then it's not necessarilly wrong. But I would
    probably have my model populated before I forwarded to the target
    (displaying view bean) or at a minimum, in the begin display event of
    the view bean or the tiled view, but not during the iteration of the
    tiled view.
    c
    jhoskins wrote:
    Craig,
    Thanks for the pointers. I ended up doing something else. I set the
    models setSize() method to set the max size, and as the tiles fields
    iterated, populated the value from some vectors I had the data in
    already. Is this solution fraught with peril and will ultimately fail,
    or should I try your way?
    John
    --- Craig V. Conover wrote:
    John,
    Check out the docs for DefaultModel. There is an appendRow() method.
    So get your tiledview's primary model (the tiledview's primary model
    should be set to use an instance of DefaultModel), model.appendRow(),
    then model.setValue("fieldname", value) for each value.
    Rinse, repeat as needed.
    c
    jhoskins wrote:
    I would like to use a tiled view, but populate the fields manually.
    Any pointers about where I can set the size of the tiled view? I tried
    setMaxDisplayTiles() in the beginDisplay, but it won't get down and
    generate the rows.
    John Hoskins
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

    Craig,
    Thanks for the pointers. I ended up doing something else. I set the
    models setSize() method to set the max size, and as the tiles fields
    iterated, populated the value from some vectors I had the data in
    already. Is this solution fraught with peril and will ultimately fail,
    or should I try your way?
    John
    --- "Craig V. Conover" wrote:
    John,
    Check out the docs for DefaultModel. There is an appendRow() method.
    So get your tiledview's primary model (the tiledview's primary model
    should be set to use an instance of DefaultModel), model.appendRow(),
    then model.setValue("fieldname", value) for each value.
    Rinse, repeat as needed.
    c
    jhoskins wrote:
    I would like to use a tiled view, but populate the fields manually.
    Any pointers about where I can set the size of the tiled view? I tried
    setMaxDisplayTiles() in the beginDisplay, but it won't get down and
    generate the rows.
    John Hoskins
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

  • How to add an index to a materialized view in Data Modeler 3.3

    Hello everyone,
    I'm looking for a how-to to add an index to a materialized view in Data Modeler 3.3.0.747, as I coudn't find a way to do it so far.
    I looked here:
    Relational Model
    Physical Model
    Oracle 11g
    Materialized Views
    "my_mv_name"
    "INDEXES" IS NOT HERE IN THE TREE
    "Tables" does not include it either
    Thank you & Best regards,
    Blama

    Hi David,
    thanks a lot. I did so and it worked, but I found a minor bug while doing so:
    I marked the table as "Implement as Materialized View" and went to File->Export->DDL (for Oracle 11g).
    The generated code (I checked all options in "Drop Selection") includes a row:
    DROP MATERIALIZED VIEW mv_mymatview CASCADE CONSTRAINTS ;
    which produces a syntax error.
    Best regards,
    Blama

  • Creating a view and use the view in a model

    Hi All,
    I am new to OBIEE and i have a requirement that i have two fields to be added to a subject area. Since we can't add queries directly to a model, i have to create a view and then put the query in it and then use the view in that model.
    I couldn't understand this much, if anybody could help me explaining in detail about the views and adding a query in it?
    Thanks
    Gohan

    Hi,
    Please refer the screen short below link
    http://imgur.com/b9sXS
    Right click any of one physial table(RPD physical layer) -> Select Properties -> from the properties windows choose 'Select' as Table type ->
    Please enable feature 'CREATE_VIEW_SUPPORTED' view just go to 'Features' tab and from the available option select 'CREATE_VIEW_SUPPORTED' is checked or not. If it is not checked then check the option.
    can you explain your current model and scenario?
    for example to you can use to fetch two fields from Subqueries,all trypes of joins(inner,left outer,right outer etc..,) its upto you case
    e.x:fetching two tables columns mapping subquery:
    SELECT column1, column2 FROM table1 WHERE column1 IN (SELECT column1 FROM table1
    INTERSECT SELECT column1 FROM table2 )
    SELECT column1, column2 FROM table1,table2 WHERE table1.column1 = table2.column1
    Alternative there is feature call "mulitple subject area" method will work (Union,Union all etc..,)
    Thanks
    Deva
    Edited by: Devarasu on Jun 6, 2012 4:40 PM

  • Views in Dimensional Modelling

    Hi
    I need info on roles of views in dimensional modelling.,I have searched for this but no luck,,
    Can anyone help me in this regard?

    Are you looking to create views on Dimension model structure?
    Yes. Dimension model structure are oracle tables. You can create view/synonym etc.
    I hope this help.

  • Dynamically Hiding Column in a Table View in VC Model

    How to dynamacally hide the columns in a table view in a VC model. Through the expression in Control Property, Form element/field or table view as a whole can be made hidden, however, the individual column can not seem to be hidden.
    I am using VC server version 700.8.0.1.
    Any help would be much appreciated.
    Kind Regards
    Sanjoy

    In this scenario, if the source is SAP BI, you can use the webapi commands. If not, you would have to have 2 separate tables in different layers and you can show and hide those layers or UI elements...

  • Re: [SunONE-JATO] How to use a tiled view without a model

    John,
    Check out the docs for DefaultModel. There is an appendRow() method.
    So get your tiledview's primary model (the tiledview's primary model
    should be set to use an instance of DefaultModel), model.appendRow(),
    then model.setValue("fieldname", value) for each value.
    Rinse, repeat as needed.
    c
    jhoskins wrote:
    I would like to use a tiled view, but populate the fields manually.
    Any pointers about where I can set the size of the tiled view? I tried
    setMaxDisplayTiles() in the beginDisplay, but it won't get down and
    generate the rows.
    John Hoskins
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

    Craig,
    Thanks for the pointers. I ended up doing something else. I set the
    models setSize() method to set the max size, and as the tiles fields
    iterated, populated the value from some vectors I had the data in
    already. Is this solution fraught with peril and will ultimately fail,
    or should I try your way?
    John
    --- "Craig V. Conover" wrote:
    John,
    Check out the docs for DefaultModel. There is an appendRow() method.
    So get your tiledview's primary model (the tiledview's primary model
    should be set to use an instance of DefaultModel), model.appendRow(),
    then model.setValue("fieldname", value) for each value.
    Rinse, repeat as needed.
    c
    jhoskins wrote:
    I would like to use a tiled view, but populate the fields manually.
    Any pointers about where I can set the size of the tiled view? I tried
    setMaxDisplayTiles() in the beginDisplay, but it won't get down and
    generate the rows.
    John Hoskins
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

  • Objects are not referenced in cube data source view. Large model.

    Looking at large model. 100+ measure groups, 200+ dimensions, one cube. Deployed to multiple customers in production as a part of custom developed software.
    in data tools 2010 I'm looking at the cube on sql 2008, sql 2008 R2 (EE, DE).
    In the cube data source diagram we observe 50+ objects that do not have any links to them or from them.
    1)
    Some of these I was unable to find in DMV's of the cube at all, it turns out they are present in the Data source that is in Data Source Views section.
    How did these end/could end up in the cube data source model? they are not available in dimension usage window at all.
    2) Others do not have any links from them or to them in cube’s data source diagram, however the dimension usage clearly shows these objects are part of relationships 
    both regular and many to many depending on the object in question.
    We are trying to identify what objects we can ‘trim’ from the model. I’m not sure what am I looking at in this case: data tools have a trouble interpreting diagram for 200+ dimensions and
    100+ measure groups (it is a large existing model) and this artifact should not be used to decide what in dimensions is obsolete and can be decommissioned.
    We are looking at cube that has over 40 NxM just to one fact not counting regular relationships.
    Am I looking at a feature or maybe an issue with the model itself that somehow has developed in the particular cube.
    It is not something I came across before.
    thanks

    Hi,
    According to your description, you are designing a large SQL Server Analysis Services cube, the problem is that you are unable view the relationship in the data source
    view diagram, right?
    In your description, you said that you can see the relationships in Dimension Usage window. In your scenario, can you see the relationship under the Tables pane when expanding
    a table's Relationships folder?
    General, the relationships will be defined automatic if the relationships were defined in your data source of the cube. And the dimension relationships between cube dimensions
    and measure groups in the cube are defined manually in Dimension Usage. In your scenario, you can define relationship manually in the data source view, please refer to the link below to see the details.
    http://technet.microsoft.com/en-us/library/ms178448.aspx
    Regards,
    Charlie Liao
    TechNet Community Support

  • Mapping Variables(Object View) to Measures(Model View)

    Hi,
    In my AW, I have created a cube, And then I have created a new variable in the object view and populated it using load programs. Now. when I try to create a measure in the model view of the same cube based on this variable, I cannot see any option for assigning a variable to a measure. Can someone please help me out in doing this?
    I need the measure in the model view, because it looks like, when I create a relational view, only the measures that are defined in the model are added to the view and not the variables available in the object model.
    Thanks,
    Bharat

    Hi Bharat,
    The mapping editor is used to map a measure to a relational data source. Therefore, unless you convert your data source used by your DML program to a relational table/view (if it is a text file you can use an external table to present the data to AWM as a relational table, or if it is an Excel spreadsheet and your database is on Windows you can use the heterogenous gateway service to load directly from Excel by exposing the Excel worksheet as a relational table) you will not be able to use the mapping editor.
    To assign an OLAP variable to an measure within a cube you will need to create a custom calculated measure. This will allow you to create a measure that "maps" to your OLAP DML program. There is an Excel utility on the OLAP OTN home page that allows you to create custom calculated measures (at the moment this feature is not AWM10gR2 - but is available within AWM 11g). Click here for more information:
    http://download.oracle.com/otn/java/olap/SpreadsheetCalcs_10203.zip
    My advice would be to try and convert your data source to a relational table/view and using the mapping editor. This will allow you to benefit from the many new features within OLAP cube storage such as compressed composites, data compression, paralled processing, partitioning and aggregation maps. Of course you can code all this manually but it is much easier to let AWM do all this for you via a few mouse clicks. Please note - that everything you build outside of the AWM model view has to be managed (defined, updated, backed up etc) by you rather AWM. So while there are lots of advantages of using OLAP DML, I personally always try to load data into my OLAP cubes using AWM mappings and save OLAP DML for providing the advanced types of analysis that make OLAP such an excellent calculation engine.
    Hope this helps
    Keith Laker
    Oracle Data Warehouse Product Management
    OLAP Blog: http://oracleOLAP.blogspot.com/
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    DM Blog: http://oracledmt.blogspot.com/
    OWB Blog : http://blogs.oracle.com/warehousebuilder/
    OWB Wiki : http://wiki.oracle.com/page/Oracle+Warehouse+Builder
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • MS SQL Server Indexed View in Data Modeler

    Hi All,
    I'm fairly new to Data Modeler. Tried to search the forums for this but couldn't find anything. I'm trying to figure out how to create (in a SQL Server 2008 physical model) a view with a clustered index in Data Modeler v. 3.3. Seems like it is supported per the below link, however I can't seem to find a reference to it in the application.
    http://www.oracle.com/technetwork/developer-tools/datamodeler/featurelist-167684.html
    Any help would be appreciated!
    Thanks,
    Jeff

    Hi Jeff,
    you need to create/open physical model for MS SQL Server and find view presentation there. Set the view property "Schema Binding" to yes.
    However I see some problems in definition of such index and DDL generation for view and logged a bug for that.
    Philip

  • View of Org  models

    Hello,
    When I'm in the transaction 'Maintain Organizational model', how do I get a view of all the Organizational modal that there are in the system?
    I would apprectiate a simple explanation that suits the point of view of someone who isn't familiar with the system

    Hi Iris,
    Once you goto transaction PPOMA_CRM (Maintain Org Model), on the left hand side in the transaction, there are 4 things:
    Find By:
    Organizational Unit
    Position
    Employee
    User
    Inside each of these four thing, again there are two things:
    - Search term
    - Structure Search
    Once you click on Find By Structure Search, you will get all the Higher level org unit created in your system. You can view those by double clicking on each of those, in order to find the assgined Positions, Users  and so on.
    I hope this will help you in viewing all the org model in your system
    regards
    Srikantan

  • HT5093 Default view for 3D Model in iBook - Is it possible yet?

    Anyone at Apple found an answer yet?
    The camera does not work when using Sketchup export collada.
    I found this out when iBooks first appeared.
    The view of the item is different to one set in Sketchup. With or wothout a camera.
    I cannot set it using a camera so that iBooks reads/understnads the collada file, even though Apple's states  to use a camera, on its web page 3D help for collada in iBooks.
    The default view in ibook is not changeable or settable after using a 3D model in ibooks.
    I've tried other progams too, to preset the oinitial view, and even tried to edit the code manually.
    I hoped OSX update would provide a solution but no.
    C'mon guys - a little code fix would help a lot.

    I ran into the same problem this morning and created this work-around. It's irritating but until Apple fixes this a little cheat is in order: http://sketchup.google.com/3dwarehouse/details?mid=de262856580e80834b892bc5603ca b56
    best,
    Stephen

  • Viewing full screen on loop?

    Is there a way that I can view my movie on fullscreen and loop it during the playback?

    Welcome
    No, This is a feature of idvd. You could copy your movie a bunch of times but that really isn't a loop. IDVD will let you make a looping DVD and play full screen.

  • Cross section view of 3D model in director

    Hello everyone
    I would like to know if it is possible to create cross
    section views (to define a cutting plane to be able to look inside
    the model) of a 3D model using Lingo . If so, can you give some
    insight on how to do it?
    Thks
    xnr

    > I would like to know if it is possible to create cross
    section views (to
    > define a cutting plane to be able to look inside the
    model) of a 3D model using
    > Lingo.
    This might also give you an interesting option:
    http://director-online.com/buildArticle.php?id=1104

  • Autonomous Updating of Web View slides for Self-Looping

    We just bought an 20" iMac with the purpose of hanging on the wall as a hallway display. I'm making a Keynote 2 application with most of the slides being generated using the Web View images.
    I've got my presentation set up as a Automatically play at Startup, loops and is Self-Playing. I'm curious if anyone has figured out a way to set up the presentation so the Web View pages update automatically while in presentation mode. I know if you stop the presentation and restart it, the slides will update, but I'd like it to update while it is playing, so I can just let the presentation run 24/7 and update the pages on the fly.
    Thanks in advance for any help!

    I tried playing around with AppleScript, saving the AppleScript as an application and entering it into cron. It works about the first couple of times, then about the third time cron is run, it doesn't restart Keynote. It assumes Keynote is already running and playing the slideshow when the script is called.
    Here's a copy of the AppleScript:
    tell application "Keynote"
         stop slideshow
         quit
    end tell
    tell application "Finder"
         activate
         select window of desktop
         open document file "iMacBriefing2.key" of folder "Desktop" of folder "amm" of folder "Users" of startup disk
    end tell

Maybe you are looking for