Examples of ZeroView


Examples of at.riemers.zero.base.controller.ZeroView

            @RequestParam("cid") String cid,
            @RequestParam("nodeId") String nodeId,
            @RequestParam("name") String name,           
             HttpServletRequest request) throws Exception {

        ZeroView view = new ZeroView(getMessages(), request.getLocale());

        User user = getUser();

        TreeWidget component = (TreeWidget) getWidgetManager(session).getWidget(cid);

        if (component.renameNode(nodeId, name)) {           
            JSONObject jNode = new JSONObject();
            view.getJson().element("node", jNode);
            jNode.element("name", name);
            jNode.element("id", nodeId);
            component.fireTreeChanged(view, session, component.getTree().getNode(nodeId), TreeChangedEvent.UPDATE);
        }
View Full Code Here

Examples of at.riemers.zero.base.controller.ZeroView

            @RequestParam("startIndex") int startIndex,
            @RequestParam("dir") String dir,
            @RequestParam("sort") String sort,
            HttpServletRequest request) throws Exception {

        ZeroView view = new ZeroView(getMessages(), request.getLocale());

        YuiTableWidget tableComponent = (YuiTableWidget) getWidgetManager(session).getWidget(cid);
        if (tableComponent.getRowsPerPage() > 0) {
            tableComponent.setPage(startIndex / tableComponent.getRowsPerPage());
        }
View Full Code Here

Examples of at.riemers.zero.base.controller.ZeroView

            @RequestParam("col") int col,
            @RequestParam("row") int row,
            HttpServletRequest request) throws Exception {
        log.debug("tableclick");

        ZeroView view = new ZeroView(getMessages(), request.getLocale());

        HtmlTableWidget tableComponent = (HtmlTableWidget) getWidgetManager(session).getWidget(cid);
        //tableComponent.setPage(0);
        row = row + tableComponent.getPage() * tableComponent.getRowsPerPage();
        tableComponent.fireClicked(col, row, request, view);
        view.addWidget(tableComponent);

        return new ModelAndView(view, null);
    }
View Full Code Here

Examples of at.riemers.zero.base.controller.ZeroView

            @RequestParam("col") String colKey,
            @RequestParam("row") int row,
            HttpServletRequest request) throws Exception {
        log.debug("tableclick");

        ZeroView view = new ZeroView(getMessages(), request.getLocale());

        YuiTableWidget tableComponent = (YuiTableWidget) getWidgetManager(session).getWidget(cid);
        tableComponent.setPage(0);
        try {
            int col = Integer.parseInt(colKey.substring(2));
View Full Code Here

Examples of at.riemers.zero.base.controller.ZeroView

            @RequestParam("cid") String cid,
            @RequestParam("col") int col,
            HttpServletRequest request) throws Exception {
        log.debug("tablesort");

        ZeroView view = new ZeroView(getMessages(), request.getLocale());

        HtmlTableWidget tableComponent = (HtmlTableWidget) getWidgetManager(session).getWidget(cid);
        tableComponent.getModel().setSort(col);
        view.addWidget(tableComponent);

        return new ModelAndView(view, null);
    }
View Full Code Here

Examples of at.riemers.zero.base.controller.ZeroView

    public ModelAndView tableexpand(HttpSession session,
            @RequestParam("cid") String cid,
            HttpServletRequest request) throws Exception {
        log.debug("tableexpand");

        ZeroView view = new ZeroView(getMessages(), request.getLocale());


        int idx = cid.lastIndexOf("__");
        if (idx > 0) {
            String s1 = cid.substring(0, idx);
View Full Code Here

Examples of at.riemers.zero.base.controller.ZeroView

    public ModelAndView tableexpandAll(HttpSession session,
            @RequestParam("cid") String cid,
            HttpServletRequest request) throws Exception {
        log.debug("tableexpand");

        ZeroView view = new ZeroView(getMessages(), request.getLocale());

        HtmlTableWidget tableComponent = (HtmlTableWidget) getWidgetManager(session).getWidget(cid);
        tableComponent.setExpandAll(true);
        view.addWidget(tableComponent);
        return new ModelAndView(view, null);
    }
View Full Code Here

Examples of at.riemers.zero.base.controller.ZeroView

            @RequestParam("cid") String cid,
            @ModelAttribute("emailForm") EmailForm emailForm,
            BindingResult result,
            HttpServletRequest request) throws Exception {

        ZeroView view = new ZeroView(getMessages(), request.getLocale());

        if (validate(new EmailValidator(), emailForm, result, view)) {

            EmailWidget widget = (EmailWidget) getWidgetManager(session).getWidget(cid);
            widget.setSender(emailForm.getSender());
            widget.setMessage(emailForm.getMessage());
            widget.setSubject(emailForm.getSubject());

            int count = 0;
            for (String receiver : widget.getReceivers()) {
                Email email = new Email();
                email.setSender(emailForm.getSender());

                email.setRecepient(receiver);
                email.setMsgText(emailForm.getMessage());
                email.setSubject(emailForm.getSubject());
                email.setReferenceType(widget.getReferenceType());
                email.setReferenceId(widget.getReferenceId());
                emailDao.makePersistent(email);
                count ++;
            }

            view.setMessage(new Message("base.email.added", Message.MSG_INFO, Integer.toString(count)));

        }
        return new ModelAndView(view, null);
    }
View Full Code Here

Examples of at.riemers.zero.base.controller.ZeroView

            SessionStatus status,
            HttpSession session,
            @RequestParam("cid") String cid,
            HttpServletRequest request) throws Exception {

        ZeroView view = new ZeroView(getMessages(), request.getLocale());

        EmailListWidget widget = (EmailListWidget) getWidgetManager(session).getWidget(cid);

        widget.getModel().setFilterSent(filterForm.isSent());
        widget.getModel().setFilterNotSent(filterForm.isNotsent());
        widget.getModel().setFilterError( filterForm.isError());

        view.addWidget(widget);

        return new ModelAndView(view, null);
    }
View Full Code Here

Examples of at.riemers.zero.base.controller.ZeroView

    public ModelAndView tablecollapseAll(HttpSession session,
            @RequestParam("cid") String cid,
            HttpServletRequest request) throws Exception {
        log.debug("tableexpand");

        ZeroView view = new ZeroView(getMessages(), request.getLocale());

        HtmlTableWidget tableComponent = (HtmlTableWidget) getWidgetManager(session).getWidget(cid);
        tableComponent.setExpandAll(false);
        view.addWidget(tableComponent);
        return new ModelAndView(view, null);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.