Bug or feature: TableView.EditEvent - same type for value and row?

Just noticed (normally I don't care overly much about generics, they are my natural enemies : -) that the return type for both cell and row data is the same:
class EditEvent<T> {
    T getNewValue()
    T getOldValue()
    T getRowValue()
}old/new value is fine, but typically the row has another type, which most probably is completely unrelated, as f.i. in
TableView<Person> tableView = new TableView<Person>(persons);
TableColumn<String> firstName = new TableColumn<String>("First Name");
firstName.setProperty("firstName");
EventHandler<EditEvent<String>> nameEditHandler = new EventHandler<TableView.EditEvent<String>>() {
            @Override
            public void handle(TableView.EditEvent<String> e) {
// compile error
                Person p = (Person)e.getRowValue();
                String newValue = (String)e.getNewValue();
                p.setFirstName(newValue);
firstNameCol.setOnEditCommit(nameEditHandler);The compile error is due to the event requiring the same type for row and cell. Obviously, can remove all type parameters - but how to solve cleanly without getting unchecked/rawtype warnings?
Thanks
Jeanette

Good morning, Jonathan (my day time : -)
If you mean that big issue where you threaten (and locally actually already did) to remove all the niceties of auto-magic column binding via setting property names - yeah, I've read it, partly unhappily. But that's another story.
to create two separate EditEvents - one for row edits and one for cell edits.
hmm .. have been expecting something along the lines of
EditEvent<R, C> {
     R getRowValue();
     C getOldValue();
     C getNewValue();
// used in
TableView<R>
TableColumn<C>
// for row edits
R == C
getRowValue() == getOldValue()Musing a bit longer, the event could be streamlined a bit - remove all the convenience sugar: the receiver has to know the exact details of grabbing the data anyway in order to be able to change it (in the current workflow, it's not necessarily the way to go) so old/row is redundant
EditEvent<S> {
   <S> getEditValue();
}Cheers
Jeanette

Similar Messages

  • Is there any constrain in using the same order type for MTS and MTO

    Hi,
    i have the constrain to use single production order type .
    Can i use single order type for MTO and MTS.
    is there any constrain in using the same order type for MTS and MTO.
    pls help me.

    Hi,
    There is no constraint or limitation in using the same production order type for MTS and MTO . Settings in requirement class and material master will mainly control whether the flow is MTS or MTO.
    Regards,
    Mrinal

  • How to create a new document type for PO and Requisition

    Hi All
    Can you please help me with the steps of creating a new document type for PO and PR. Also the steps that need to be update for the procure pay cycle to work properly. 
    Once the document type is been created. I want to create the PO referecing the new PR and PO document type.I am new in MM.
    Thanks, Ros

    Hi,
    1. You can create new PR and PO docu types at the following path:
    For PR docu type:
    First you need to create number range for docu type or you can use existing number range also. The path for creation of no. range is
    SPRO>Materials Management->Purchasing->Purchase Requisition->Define Number Ranges
    Then create PR docu type at below path and assign no. range to PR docu type here only
    SPRO>Materials Management->Purchasing->Purchase Requisition->Define Document Types
    For PO docu type:
    Follow same procedure as mentioned for PR docu type. Path is
    SPRO>Materials Management->Purchasing->Purchase Order->Define Number Ranges
    SPRO>Materials Management>Purchasing->Purchase Order->Define Document Types
    If you want to create PO referencing new PR docu type, link the PR docu type to PO docu type at below path:
    SPRO>Materials Management->Purchasing->Purchase Requisition->Define Document Types--> Link purchase requisition - document type
    Regards
    Chetan

  • Creating a external content type for Read and Update data from two tables in sqlserver using sharepoint designer

    Hi
    how to create a external content type for  Read and Update data from two tables in  sqlserver using sharepoint designer 2010
    i created a bcs service using centraladministration site
    i have two tables in sqlserver
    1)Employee
    -empno
    -firstname
    -lastname
    2)EmpDepartment
    -empno
    -deptno
    -location
    i want to just create a list to display employee details from two tables
    empid firstname deptno location
    and same time update  in two tables
    adil

    When I try to create an external content type based on a view (AdventureWorks2012.vSalesPerson) - I can display the data in an external list.  When I attempt to edit it, I get an error:
    External List fails when attached to a SQL view        
    Sorry, something went wrong
    Failed to update a list item for this external list based on the Entity (External Content Type) 'SalesForce' in EntityNamespace 'http://xxxxxxxx'. Details: The query against the database caused an error.
    I can edit the view in SQL Manager, so it seems strange that it fails.
    Any advice would be greatly GREATLY appreciated. 
    Thanks,
    Randy

  • Lick on the icon in appstore which allows to gift an app or copy link , post to facebook etc does not open it stucks.Also same case for itunes and moreover when I play music in iTunes it

    Itunes and appstore problems:
    i have an iPhone 5 whenever I try to click on the icon in appstore which allows to gift an app or copy link , post to facebook etc does not open it stucks.Also same case for itunes and moreover when I play music in iTunes it stops ..start again stops and start again ..stops and does not play..so I  am unable to make gift purchase and listen to the songs..are these bugs or what? help

    ps when syncing it jumps through steps 1 - 4 real fast, i seem to remeber iphone showing the number of tracks transferring and names, but i see nothing? then it sits on 5 saying "waiting for changes to be applied"

  • Same BS for sender and receiver comms

    Hey pals,
    can we use same BS for sender and reciever communication channels?!!
    -Esha

    Hello Esha,
    You have to you 2 BS
    One from where u hav to pick the file and the other one where you want to post it.
    what is a Business system? What is use of creating it
    Business System have an entry in the SLD and Buiness Service do not.
    Business Systems are used when you are sending data to and from an R3 system and can be of ABAP, JAVA and Third Party Types.
    Business System is a logical representation of a Technical System.
    Business Service is a abstract representation of a System. For instance, www.google.com have a several system working together and IPs of this machines change eventually. When we use a Business Services like google we reference a computer that we don't know the phisical implementation.
    Thanks,
    Satya
    Edited by: SATYA KUMAR AKKARABOYANA on May 15, 2008 5:51 PM

  • Movement Types for Receipt and Consumption

    Dear all,
    I am an ABAPER.
    My requirement is to develop a Material balancing report.
    In which i have to display
          Opening Stock
          Value
          Receipt
          Value
          Consumption
          Value
          Closing stock
          Closing value
    for a material.
    Here I need to know the table and fields for the above mentioned output fields.
    Particularly i need to know what are the
    movement types for Receipt and
    movement types for Consumption
    Can anyone let me know?
    Regards,
    Prem

    hi,
    few reports are:
    MC45 INVCO: Analysis of Usage Values
    MC46 INVCO: Analysis of Slow-Moving Items
    MC47 INVCO: Analysis of Reqmt Values
    MC48 INVCO: Anal. of Current Stock Values
    MC49 INVCO: Mean Stock Values
    MC50 INVCO: Analysis of Dead Stock
    MB51......
    TAbles:
    MVER - Material consumption.....
    MARC Plant Data for Material
    MARD Storage Location Data for Material
    MSLB Special Stocks with Vendor
    MSPR Project Stock
    MKOL Special Stocks from Vendor
    MSKU Special Stocks with Customer
    you can see al the mvt types in T156 table...
    Hope it helps...
    Regards
    Priyanka.P

  • Condition type for landing and clearing charges for imports

    All SAP Gurus,
    Which standard condition type to be for Condition type for landing and clearing charges for imports?
    Regards,

    If both Condition types are Quantity basis then you can Create New Condition types by Referring FRA1 & FRC1 Condition types.
    Else Create New Condition types called ZCCH for Clearing Charges by giving the Following inputs:
    Condition class A
    Calculation Type A
    Condition Category B
    Plus/Minus A
    Also in Control data Check Accruals option and in Scales tab give Scale Value as 2 if want.
    Create New Condition types called ZLNC for Landing Charges by giving the Following inputs:
    Condition class A
    Calculation Type A
    Plus/Minus A
    Uncheck Accruals options and save.
    Regards,
    Ashok

  • Different segment in same document for leading and non-leading ledger

    Hi,
    Is it possible to have different segments derived in the same document for Leading and Non-leading ledgers.
    Is there an exit where we can substitute the segment originally derived so as to update only in one particular ledger
    Please suggest.

    Thanks Alex for your response.
    But would it be possible to update the segment only in one ledger, the other one carrying the default values coming from profit center?

  • Different Document types for Reciepts and payment-Cash Journal

    Hi Gurus,
    Please tell me how can we make different document types for reciepts and payments in cash journal and where we need to assign it??
    Please revert asap.
    Thank You

    Hi
    While posting the transactions by using FBCJ T.Code u can select the Receipts or Payments or Expenses then the documents will be genereted.  FBCJ02 is the T.Code for no.range there u can assign the no.range intervels.
    Shammi

  • New document type for value contract

    Dear Gurus
    I want to create new document type for value contract , can you suggest me the configuration as well as areas to be taken care.
    Advance thanks to all
    Regards
    Srinivas

    Hi,
    Please click the below link which is self explanatory in creating contract with screenshots.
    http://web.mit.edu/sapr3/windocs/bpsps05m.htm
    If you wish to go through some stuff notes on the processing of contracts, click the below:
    http://help.sap.com/saphelp_srm30/helpdata/en/75/c65d3a0eb60365e10000000a11402f/content.htm
    Regards,
    Kk

  • Same SLD for dvlpmnt and prod servers??

    Is it right to have same SLD for Development and Production servers??

    Hello,
    Is it right to have same SLD for Development and Production servers??
    The answer actually depends on your requirements, you can refer to this thread for more information (see the reply of Bhavesh):
    Re: Difference Between Central SLD & Local SLD
    The approach we've taken is more like what Barry suggested in the thread.
    Hope this helps,
    Mark

  • I am currently receiving error message "Microsoft Excel quit unexpectedly".  Any suggestions on how to fix?  I notice same message for powerpoint and word.

    I am currently receiving error message "Microsoft Excel quit unexpectedly".  Any suggestions on how to fix?  I notice same message for powerpoint and word.

    That generally has to do with data corruption.   Is your data backed up?
    What version of Office do you have?
    What Mac operating system?

  • Wat should be data type for  negative and decimal values (eg: -1.2222)

    What should be data type for  negative and decimal values (eg: -1.2222)

    Hi
    U can use the data type DEC while creating the DOMAIN and in the domain u  have sign check box at the left corner of the screen, click that check box , u can assign negative values for the field which refers this domain.
    REWARD IF HELPFULL
    Anees.

  • Two idocs of same type for each line item

    I am new to SAP PI and seeking your help in the following scenario
    legacy -> SAP PI -> branched to two idocs in ECC
    The scenario is that a fixed length flat file coming from Legacy wil contain some line items but each line will be a separate invoice ..the twist . since it is a financial posting each invoice(line) has to be posted twice in the same IDOC but different logics  which implies that for each line in the file there will be two IDOCS created in ECC of the same type, where one would be the AR posting and the other would be the AP posting
    How can i make this happen without BPM ??
    I have referred to a blog 1 : n possible in PI without BPM but here it is a combination of 1:n and also splitting of the line and posting it to two IDOCS simultaneously
    since the transformation logics are different  will I  have to create two mappings but how and where to use them ??
    Can I please have someone help me with the steps in ESR ad ID
    Kindly help
    Thanks
    Rohan

    Thanks Prateek i have done that but
    " Map the occurrence of line items to the node Idoc at the target structue and then multiple idocs will be created "
    is what  iam unable to do
    In the mapping  i have to create  two idocs per line item and this is creating  just one
    my source structure is like this
    MT_abc     1.1
    Invoices     1..unbounded
    field 1
    field 2 etc
    and the target is
    ACC_DOCUMENT02 1..1
    IDOC                     1.unbounded
    and i have mapped invoices to IDOC
    now for  testing in the test tab of mapping
    how do i test  if i will have  two IDOC if i get  one line item  ??
    Edited by: RohanS on Jun 18, 2009 2:06 PM
    Edited by: RohanS on Jun 18, 2009 2:08 PM

Maybe you are looking for

  • J2E instance not working / jcontrol.exe stopped after DB password changes

    Hi, i have changed my MAXDB user(SAPJ2EDB) password in config tool in secure store node (parameter: jdbc/pool/J2E/Password). After the password changes, when i re-started the server, my J2E instance is not started running. The jcontrol.exe file is st

  • Version Management for Oracle forms/Reports/plSQL

    We currently use Serena VM (PVCS) Looking to migrate to an alternate one. Wondered what people used if htey migrated etc? SubVersion seems the obvious choice but thought id ask the people in same position as us development wise. Ideally a web based s

  • Can I load a LDIF file and initalise the database using iPlanet SDK?

    I know how to create a new context in the DS, initialise its database with a LDIF file from the console or using the LDAPModify. But would it be possible if I can create the context & initialise the database using the iPlanet SDK for Java? I'm develo

  • NEED HELP! Modem keeps disconnecting w/K7T266 Pro & WinXP

    My system: K7T266 Pro Athlon 1333MH 256Mb DDR 2100 MSI GeForce 2 MX, 32Mb Zoom V.92 internal modem SB Live! 5.1 2 x 80Gb Maxtor HD LiteOn 16x12x40 CD-RW USB mouse 340 W Enlight Power Supply This system worked fine on the internet when I was running W

  • Requirement Urgency in ME21 not showing up

    Somehow the field - Requirement Urgency is not showing up in ME21 tcode after we executed our config steps (SPRO -> Materials Management -> Purchasing -> Purchase Order -> Define Screen Layout at Document Level ). We did the same thing in ME21N and t