Package org.springframework.richclient.widget.editor.provider

Examples of org.springframework.richclient.widget.editor.provider.DataProviderEvent


    public void update(Observable o, Object arg)
    {
        if (arg instanceof DataProviderEvent)
        {
            DataProviderEvent obsAct = (DataProviderEvent) arg;
            int act = obsAct.getEventType();
            if (act == DataProviderEvent.EVENT_TYPE_NEW)
            {
                this.tableWidget.addRowObject(obsAct.getNewEntity());
            }
            else if (act == DataProviderEvent.EVENT_TYPE_UPDATE)
            {
                replaceRowObject(obsAct.getOldEntity(), obsAct.getNewEntity());
            }
            else if (act == DataProviderEvent.EVENT_TYPE_DELETE)
            {
                this.tableWidget.removeRowObject(obsAct.getOldEntity());
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.springframework.richclient.widget.editor.provider.DataProviderEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.