Package com.sun.data.provider

Examples of com.sun.data.provider.RowKey


    public String buttonOpen_action() {
        //* Bug if you display a document with a link
        // --> use a button (see http://blogs.sun.com/tor/entry/creating_downloadable_files)
       
        //TODO: refactor this to move all the file specific actions to a new class
        RowKey rk = tableRowGroup1.getRowKey();
        Document document;
        if (rk != null) {
            document = (Document)list.getObject(rk);
        } else {
            error("This document has been removed.");
View Full Code Here


       
        return null;
    }

    public String buttonDetach_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        Document document;
        if (rk != null) {
            document = (Document)list.getObject(rk);
        } else {
            return null;
View Full Code Here

    public String buttonRefresh_action() {
        return null;
    }
   
    public String buttonEdit_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            Event event = (Event)list.getObject(rk);
            getSessionBean1().setEvent(event);
        }
       
View Full Code Here

       
        return "edit";
    }
   
    public String buttonDelete_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            Event event = (Event)list.getObject(rk);
            new EventController().delete(event);
            list.refreshList();
        }
View Full Code Here

       
        return null;
    }
   
    public String buttonAttended_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        Event event = null;
        if (rk != null) {
            event = (Event)list.getObject(rk);
            getSessionBean1().setEvent(event);
        }
View Full Code Here

    public String buttonRefresh_action() {
        return null;
    }
   
    public String buttonDelete_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            PartnershipController  ctrl = new PartnershipController();
            Partnership partnership = (Partnership)list.getObject(rk);
            ctrl.delete(partnership);
        }
View Full Code Here

        return null;
    }

    public String buttonEdit_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            getSessionBean1().setPartnership((Partnership)list.getObject(rk));
        }
       
        return "edit";
View Full Code Here

       
        return "new";
    }

    public String buttonInfo_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            getSessionBean1().setPartnership((Partnership)list.getObject(rk));
        }
       
        return "info";
View Full Code Here

       
        return "new";
    }
   
    public String buttonEdit_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            Contribution contribution = (Contribution)dataProvider.getObject(rk);
            getSessionBean1().setContribution(contribution);
        }
       
View Full Code Here

       
        return "edit";
    }
   
    public String buttonDelete_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            VolunteerApplicationController ctrl = new VolunteerApplicationController();
            VolunteerApplication application = dataProvider.getApplication();
            Contribution contribution = (Contribution)dataProvider.getObject(rk);
            application.removeContribution(contribution);
View Full Code Here

TOP

Related Classes of com.sun.data.provider.RowKey

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.