Package com.sun.data.provider

Examples of com.sun.data.provider.RowKey


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


       
        return "new";
    }
   
    public String buttonVolunteer_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            Program program = (Program)list.getObject(rk);
            getSessionBean1().setProgram(program);
            java.util.List<Volunteer> contacts = new ArrayList();
            for (VolunteerApplication application : program.getApplications()) {
View Full Code Here

    public String buttonGo_action() {
        return "mailer";
    }

    public String buttonInfo_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            Person person = (Person)getSessionBean1().
                    getContactDataProvider().getObject(rk);
            getSessionBean1().setPerson(person);
        }
View Full Code Here

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

        }
        return "edit";
    }
   
    public String buttonDelete_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            PersonController  ctrl = new PersonController();
            Person person = (Person)list.getObject(rk);
            ctrl.delete(person);
        }
View Full Code Here

       
        return "new";
    }
   
    public String buttonInfo_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            Person person = (Person) list.getObject(rk);
            getSessionBean1().setPerson(person);
        }
       
View Full Code Here

        return "info";
    }
   
    public String buttonLastId_action() {
        if (getSessionBean1().getPerson() != null) {
            RowKey rk = getSessionBean1().getPersonDataProvider().
                    findFirst("idContact", getSessionBean1().getPerson().getIdContact());
            if (rk != null) {
                int rowid = Integer.parseInt(rk.getRowId());
                tableRowGroup1.setFirst(rowid);
            }
        }
        return null;
    }
View Full Code Here

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

    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

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.