Cell edit: in search for the holy control center

Struggling with fx cell editing turned up some issues, f.i. edits not always committed as expected (by me, expectation arguable, of course : -)
http://javafx-jira.kenai.com/browse/RT-15336
http://javafx-jira.kenai.com/browse/RT-15366
the last with a comment "unless the API is changed it is not possible to commit by default". Which naturally drove me into trying to understand and trace the current work-flow, visualized in scribbles of the collaborators:
http://www.flickr.com/photos/65941667@N02/6004789460/in/photostream#/
Some verbal decoration to the picture (beware: all tainted by my ignorance : -)
- looks like the place for client code (to a XXView, with XX == List, Table, Tree) which wants to modify its editing state is a method like
edit(SomePosition p);
// with
SomePosition == int, TablePosition, ...- that method is used internally by the corresponding XX/Cell/Behaviour to either start or terminate an edit, the latter by simply setting the position to "out-off-range", like f.i. -1
- the Cell is listening to that position and updates its editing state as appropriate. Doing so, it calls either startEdit or cancelEdit, which in turn notify the view's edit handler/s.
- note that commitEdit is not part of the collaboration
Now my comments:
- there's a need for some place (be it on the cell or view level, don't know) which supports full edit semantics
- a mere position is not strong enough to support those semantics
- the start/commit/cancel methods on the cell are for internal usage by the cell (and its subclasses), probably shouldn't be public
* Requests to start editing at the given position, returns true is started
* or false if not possible for some reason
boolean startEdit(SomePosition p);
* Requests to terminate an edit and commit the new value, returns true is
* committed or false if not possible for some reason.
* Note: this is for use by external (to the cell) clients, which can't have
* any knowledge about the current internal edited value!
boolean commitEdit();
  * Requests to terminate an edit and throw away any new value.
void cancelEdit();looks familiar, hehe ... sure: it's copied from Swing cell editor (the event parameter changed to a mere position). The open - and not really easy to answer - question is where to put it, and how to fit that into the all-controlled-by-listening-to-property-changes philosophy .. could be interesting.
Cheers
Jeanette

Kleopatra wrote:
Struggling with fx cell editing turned up some issues, f.i. edits not always committed as expected (by me, expectation arguable, of course : -)
http://javafx-jira.kenai.com/browse/RT-15366
yet another variant of "let the developer cope with the harder stuff" - it's closed as wont-fix (because we are unwilling to change a lacking api ...)
CU
Jeanette

Similar Messages

  • Screen Protector - Am I searching for the Holy Grail?

    Hi guys, I want to get a privacy screen protector for my iPhone 6 Plus. I'm currently using a MediaDevil Matte screen protector, which I love. I've tried their privacy version but it 'pixellates' the screen due to the way that it's designed. Are there any privacy screen protectors out there which don't cause the pixelated effect on the display? Thanks in advance

    Direct from Apple though it's a 3rd party accessorie.http://www.apple.com/uk/shop/product/HGYQ2ZM/A/3m-privacy-screen-protector-for-iphone-6-plusGood writeups for this....http://www.bodyguardz.com/screenguardz-apple-iphone-6-plus-privacy-cases-screen-protectors-covers-shields-skins-films.html

  • How to add a search/edit/delete options for the following program.

    after printing the out put, i want to search for the line and i want to edit the same line then add to the output and also i want to delete the line from the command line
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileWriter;
    import java.io.IOException;
    import java.io.InputStreamReader;
    public class CustomerDetails {
    public static void main(String[] args) throws IOException {
    BufferedReader dataIn= new BufferedReader(new InputStreamReader(System.in));
    FileWriter writer;
    String name= "";
    String DOB = "";
    String Address = "";
    String Phonenumber = " ";
    File filename = new File("customerData.txt");
    boolean append = true;
    writer = new FileWriter(filename,append);
    writer.write("\n");
    try {
    System.out.println("Please enter your name");
    name = dataIn.readLine();
    System.out.println("please enter ut DOB");
    DOB = dataIn.readLine();
    System.out.println("please enter ur Address");
    Address = dataIn.readLine();
    System.out.println("please enter ur phone number");
    Phonenumber = dataIn.readLine();
    writer.write("name:");
    writer.write(name);
    writer.write("DOB:");
    writer.write(DOB);
    writer.write("Address:");
    writer.write(Address);
    writer.write("Phone number:");
    writer.write(Phonenumber);
    writer.close();
    catch (IOException e) {
    e.printStackTrace();
    System.out.println("thanks for entering  the data");
    }

    Well, what I'm suggesting isn't as simple as editing a few lines.
    Are you familiar with using objects?
    The idea is to organize your data in a way that makes sense. Since you want to keep track of multiple people at once, does it make sense to only have one variable each for name, address, etc? If you put all of the variables dealing with a person into a Person object, you can then instantiate as many people as you'd like- without worrying about keeping track of them one variable at a time.
    I'd say that should be your first step. After that, we can talk about searching through them.

  • Searching for the nth occurrence of a substring in a string

    I need to search for the 63rd occurrence of a substring <i4> and replace it with <string>. Is there an easy way to do this?
    Edited by: sarcasteak on Jun 16, 2009 11:52 AM

    nevermind I got it, if anyone was curious
    int z = 0;
                   while(z<63)
                        index = index2+3;
                        index2 = result.indexOf("<param>", index);
                        resultTest = result.substring(index2);
                        //System.out.println(index2 + " :" + resultTest );
                        z++;
                   String originalSubstring = (result.substring(index2);
                   String modifiedSubstring = "";
                   modifiedSubstring = originalSubstring.replaceFirst("<i4>","<string>" );
                   modifiedSubstring = modifiedSubstring.replaceFirst("</i4>","</string>" );
                   String fixedString= result.replace(originalSubstring, modifiedSubstring);
                   System.out.println(fixedString);Edited by: sarcasteak on Jun 16, 2009 12:32 PM

  • Search for the end of each text frame?

    I'd like to insert some kind of marker at the end of each of my text frames in order to preserve where the page breaks occur, even after I've exported my file. The only function in InDesign that seems to recognize pages is the text variables that can pull the first/last instance of something on a page. Other than that, I can find no way of searching for the end of a page or end of a text frame.

    myFrames = app.activeDocument.textFrames;
    myCharStyle = app.activeDocument.characterStyles.itemByName("Marker");
    for (a=0; a<myFrames.length; a++){
         if (myFrames[a].characters.length>0){
              myFrames[a].characters[-1].appliedCharacterStyle = myCharStyle;
    The above script will apply a character style called Marker to the last character of all text frames in the document (prepare a character style called Marker [case-sensitive] before you run the script, or change the name in the second line.
    I guess a character style isn't an ideal solution, though, as it might override something else.
    Perhaps a strikethrough? In which case, change the 5th line to:
    myFrames[a].characters[-1].strikeThru = true;
    Does that help?
    Ariel
    www.FreelanceBookDesign.com
    Message was edited by: Arïel to correct syntax error.

  • Podcast doesn't show up on a search for the title or category.  Also, how do I check title, description, keywords, etc?

    I just put up a Podcast for our church.  Now I need to change the image and check the titles.  Also, when I search for The Village Presbyterian Church, Northbrook, IL nothing shows up.  And when I go into the Christianity section my podcast doesn't show.  It all works.  What should I do?

    Please post the iTunes Store URL for your podcast - this was given to you in the email you received when it was accepted, or you can go to the Store and control-click (Mac) or right-click (Windows) on the image (or where it should be) and copy the URL; please also post the feed URL.

  • Looking for enhancement for the price control of purchasr oder

    Hi,
    I'm Looking for enhancement for the price control of purchasr oder
    I need to develop programs to control the price of purchase orders according to some special rules while purchase order is creating, so,
    can anybody tell me which enhancement is beeter to adopt?
    Thanks and best regards.

    hi
    following are there for purchase order...
    AMPL0001            User subscreen for additional data on AMPL
    LMEDR001            Enhancements to print program
    LMELA002            Adopt batch no. from shipping notification when posting a
    LMELA010            Inbound shipping notification: Transfer item data from IDO
    LMEQR001            User exit for source determination
    LMEXF001            Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001            Customer-Specific Source Determination in Retail
    M06B0001            Role determination for purchase requisition release
    M06B0002            Changes to comm. structure for purchase requisition releas
    M06B0003            Number range and document number
    M06B0004            Number range and document number
    M06B0005            Changes to comm. structure for overall release of requisn.
    M06E0004            Changes to communication structure for release purch. doc.
    M06E0005            Role determination for release of purchasing documents
    ME590001            Grouping of requsitions for PO split in ME59
    MEETA001            Define schedule line type (backlog, immed. req., preview)
    MEFLD004            Determine earliest delivery date f. check w. GR (only PO)
    MELAB001            Gen. forecast delivery schedules: Transfer schedule implem
    MEQUERY1            Enhancement to Document Overview ME21N/ME51N
    MEVME001            WE default quantity calc. and over/ underdelivery toleranc
    MM06E001            User exits for EDI inbound and outbound purchasing documen
    MM06E003            Number range and document number
    MM06E004            Control import data screens in purchase order
    MM06E005            Customer fields in purchasing document
    MM06E007            Change document for requisitions upon conversion into PO
    MM06E008            Monitoring of contr. target value in case of release order
    MM06E009            Relevant texts for "Texts exist" indicator
    MM06E010            Field selection for vendor address
    MM06E011            Activate PReq Block
    MMAL0001            ALE source list distribution: Outbound processing
    MMAL0002            ALE source list distribution: Inbound processing
    MMAL0003            ALE purcasing info record distribution: Outbound processin
    MMAL0004            ALE purchasing info record distribution: Inbound processin
    MMDA0001            Default delivery addresses
    MMFAB001            User exit for generation of release order
    MRFLB001            Control Items for Contract Release Order
    No of Exits:         36
    to search for any enhancement you can use the following prog..
    report  zfinduserexit.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'PROG'
    and obj_name = tstc-pgmna.
    move : tadir-devclass to v_devclass.
    if sy-subrc ne 0.
    select single * from trdir where name = tstc-pgmna.
    if trdir-subc eq 'F'.
    select single * from tfdir where pname = tstc-pgmna.
    select single * from enlfdir where funcname =
    tfdir-funcname.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'FUGR'
    and obj_name eq enlfdir-area.
    move : tadir-devclass to v_devclass.
    endif.
    endif.
    select * from tadir into table jtab
    where pgmid = 'R3TR'
    and object = 'SMOD'
    and devclass = v_devclass.
    select single * from tstct where sprsl eq sy-langu and
    tcode eq p_tcode.
    format color col_positive intensified off.
    write:/(19) 'Transaction Code - ',
    20(20) p_tcode,
    45(50) tstct-ttext.
    skip.
    if not jtab[] is initial.
    write:/(95) sy-uline.
    format color col_heading intensified on.
    write:/1 sy-vline,
    2 'Exit Name',
    21 sy-vline ,
    22 'Description',
    95 sy-vline.
    write:/(95) sy-uline.
    loop at jtab.
    select single * from modsapt
    where sprsl = sy-langu and
    name = jtab-obj_name.
    format color col_normal intensified off.
    write:/1 sy-vline,
    2 jtab-obj_name hotspot on,
    21 sy-vline ,
    22 modsapt-modtext,
    95 sy-vline.
    endloop.
    write:/(95) sy-uline.
    describe table jtab.
    skip.
    format color col_total intensified on.
    write:/ 'No of Exits:' , sy-tfill.
    else.
    format color col_negative intensified on.
    write:/(95) 'No User Exit exists'.
    endif.
    else.
    format color col_negative intensified on.
    write:/(95) 'Transaction Code Does Not Exist'.
    endif.
    at line-selection.
    get cursor field field1.
    check field1(4) eq 'JTAB'.
    set parameter id 'MON' field sy-lisel+1(10).
    execute the report and enter the transaction for which u want to find the enhancement and execute. it would show the available enhancements for that tcode.
    <b>Please do reward if useful</b>
    Regards
    Dinesh

  • I can not store all my Music on my internal Macbook pro hard drive so I am storing it on a large external drive connected to my airport extrem.  How do I get Itunes to search for the music here with out trying to copy it to my laptops hard drive??

    I can not store all my Music on my internal Macbook pro hard drive so I am storing it on a large external drive connected to my airport extreme (2 TB drive plugged into the USB port).  I see the drive on my laptop and I can add and delete files no problem.  How do I get Itunes to search for the music here with out trying to copy it to my laptop's hard drive?  I don't have enough space to do that.

    How did you move the music to the external drive?  What exactly is on the drive?  The entire iTunes folder or only music?  If it is the entire iTunes folder you can do the option+start suggestion earlier.  If you copied only music and did so by dragging it there then you need to delete it again and consolidate/organize it there instead so iTunes tracks the move.  iTunes 12 for Mac: Change where your iTunes files are stored - http://support.apple.com/kb/PH19507

  • Searching for the fields of a table(very very urgent)

    Hi all,
    i am in graet trouble now.i am searching for the fields like
    1)country of origin where the finished good is created.
    2) customer sales order number
    3)customer sales order line number
    i am writing a report for delivery order.in this report i have to refer customer PO & customer SO .
      i mean, my company has a customer ( seagate) & seagate has a customer (let maxtor).initially maxtor will give a PO to seagate then seagate will raise a SO againest maxtor.
       Then seagate will send PO number(of maxtor), PO line number,SO number(seagate), SO line number(seagate) to our company.
       Then i have to write a report for sales order & delivery order.in these reports i have to refer seagate PO number & seagate SO number for reference.
    i got PO number as vbkd-bstkd but not getting any field for reference Sales order.plz advice me on this. it is very very urgent.
    ur idea is highly appreaciated.
    Thank u very much.
    Regards
    pabitra

    check out tables VBAK(sales order header), VBAP(sales items)

  • How can I get a search bar added to my email archives screen to make it easier to search for the right archives folder, Samsung has one so I was surprised to see that I have to scroll up and down to find the right folder?

    How can I get a search bar added to my email archives screen to make it easier to search for the right archives folder, Samsung has one so I was surprised to see that I have to scroll up and down to find the right folder?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    You can modify the pref <b>keyword.URL</b> on the <b>about:config</b> page to use Google's "I'm Feeling Lucky" or Google's "Browse By Name".
    * Google "I'm Feeling Lucky": http://www.google.com/search?btnI=I%27m+Feeling+Lucky&ie=UTF-8&oe=UTF-8&q=
    * Google "Browse by Name": http://www.google.com/search?ie=UTF-8&sourceid=navclient&gfns=1&q=
    * http://kb.mozillazine.org/keyword.URL
    * http://kb.mozillazine.org/Location_Bar_search

  • My Epson XP - 400 will not print wirelessly or via USB. The documents just sits in the print queue while the computer is "searching for the printer".  I set up the printer on the computer and it is connected to the wireless network.

    I'm unable to print wirelessly or connected via USB with my Epson XP-400. The computer continues to say it's searching for the printer even though the printer is set up on the computer, the printer is connected to the wireless network and the USB is plugged into the computer.

    Try resetting your Mac's printing system as shown here:
    http://support.apple.com/kb/PH14141

  • I just made the switch to mac. I am have installed all the new PS6 CC and bridge and I am now trying to add some presets to my  ACR but when I search for the folder to place them it is not there.  From what I researched it says it should be under camera l

    I just made the switch to mac. I am have installed all the new PS6 CC and bridge and I am now trying to add some presets to my  ACR but when I search for the folder to place them it is not there.  From what I researched it says it should be under camera library/application support/adobe/camera raw/settings but I can only get to library/application support/adobe/ and then there are two different camera raw options I have checked both and there are not settings folder. If anyone can help me please thanks

    Apple most likely has the same poor taste that Microsoft does when it come to defaults.  Microsoft likes to hide things like  settings, preset, folders etc from normal users  think the dumb or something else.  If Apple also hide things you will have to  make some system setting changes that will allow Finder to do it job and find it for you.

  • Im trying to download the new itunes so i can use my iphone 5 , however , the new itunes requires Mac OS X 10.6.8 or later and i cant seem to install that onto my imac even after searching for the new update (my imac is currently on 10.5.8.

    .Im trying to download the new itunes so i can use my iphone 5 , however , the new itunes requires Mac OS X 10.6.8 or later and i cant seem to install that onto my imac even after searching for the new update (my imac is currently on 10.5.8.

    You have already seen that you cannot load the new iTunes into your 10.5.8, so as Neil says, you need Snow Leopard (current cost £14).    And you'll probably need to update the disc you buy via the combo update, though that is free.
    As far as the new iTunes is concerned, there's been a certain amount of grumbling so you may want to study the forums before you update.   The main problem has been with album artwork which does not transfer easily.

  • Encountered an error when attempting to open Lightroom for the first time. Went to Lightroom Help and searched for the error "An error occurred when attempting to change modules". Non of the solutions helped. what now?

    Encountered an error when attempting to open Lightroom for the first time. Went to Lightroom Help and searched for the error "An error occurred when attempting to change modules". Non of the solutions helped. What now?

    I am getting this error message as well. I have just downloaded Lightroom recently. I try to click on Lightroom / preferences....and nothing happens. I tried to uninstall and it is greyed out so I can't do that either. Suggestions? Please help?

  • TS1702 i cant download new application on my Iphone everytime i open app store then searching for the application i want to download when i Tap the FREE sign it become half square and never downloaded.

    i cant download new application on my Iphone everytime i open app store then searching for the application i want to download when i Tap the FREE sign it become half square and never downloaded.

    Sometimes this happens because the app won't run on the iOS version of the device you are trying to install it to.  Go to the app store and make sure it will run on iOS 3.1.3 (many only run on iOS 4 or higher).

Maybe you are looking for