Package org.opencustomer.framework.webapp.panel

Examples of org.opencustomer.framework.webapp.panel.EntityPanel


    public final ActionForward execute(ActionMapping mapping, E form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
    {
        if (log.isDebugEnabled())
            log.debug("choose action");

        EntityPanel panel = null;
       
        if(Panel.getPanelStack(request).isTypeOnTop(Panel.Type.CHOOSE)) {
            panel = (EntityPanel)Panel.getPanelStack(request).peek();
        } else if(!isUnderEditPanel() || Panel.getPanelStack(request).isTypeOnTop(Panel.Type.EDIT)) {
            EntityPanel mainPanel = (EntityPanel)Panel.getPanelStack(request).peek();

            panel = createPanel(mainPanel, form, request, response);
           
            Panel.getPanelStack(request).push(panel);
        } else {
View Full Code Here


    private static Logger log = Logger.getLogger(AddRoleAction.class);

    @Override
    protected final EntityPanel createPanel(EntityPanel mainPanel, AddRoleForm form, HttpServletRequest request, HttpServletResponse response)
    {
        EntityPanel panel = new EntityPanel(Panel.Type.CHOOSE, mainPanel.getEntity());
        panel.setTitle(MessageUtil.message(request, "module.generic.add.usergroup.title"));
        panel.setPath("/system/management/user/addRole");
       
        form.reset();
       
        return panel;
    }
View Full Code Here

       
        pageContext.setAttribute("panel_path", panel.getPath());
        pageContext.setAttribute("panel_title", panel.getTitle());

        if(panel instanceof EntityPanel) {
            EntityPanel entityPanel = (EntityPanel)panel;
            pageContext.setAttribute("panel_entity", entityPanel.getEntity());
        }

        if(panel instanceof DeletePanel) {
            DeletePanel deletePanel = (DeletePanel)panel;
            pageContext.setAttribute("panel_question", deletePanel.getQuestion());
View Full Code Here

    @Override
    protected EntityPanel createPanel(EntityPanel mainPanel, ChooseForm form, HttpServletRequest request, HttpServletResponse response)
    {
        UserVO user = (UserVO)request.getSession().getAttribute(Globals.USER_KEY);
       
        EntityPanel panel = new EntityPanel(Panel.Type.CHOOSE, user);
        panel.setTitle(MessageUtil.message(request, "module.calendar.choose.title"));
        panel.setPath("/calendar/choose");
       
        return panel;
    }
View Full Code Here

    private static Logger log = Logger.getLogger(AddUserAction.class);

    @Override
    protected final EntityPanel createPanel(EntityPanel mainPanel, E form, HttpServletRequest request, HttpServletResponse response)
    {
        EntityPanel panel = new EntityPanel(Panel.Type.CHOOSE, mainPanel.getEntity());
        panel.setTitle(MessageUtil.message(request, "module.generic.add.user.title"));
        panel.setPath(getPath());
       
        return panel;
    }
View Full Code Here

    private static Logger log = Logger.getLogger(AddPersonAction.class);

    @Override
    protected final EntityPanel createPanel(EntityPanel mainPanel, E form, HttpServletRequest request, HttpServletResponse response)
    {
        EntityPanel panel = new EntityPanel(Panel.Type.CHOOSE, mainPanel.getEntity());
        panel.setTitle(MessageUtil.message(request, "module.generic.add.person.title"));
        panel.setPath(getPath());
       
        return panel;
    }
View Full Code Here

    private static Logger log = Logger.getLogger(AddUsergroupAction.class);

    @Override
    protected final EntityPanel createPanel(EntityPanel mainPanel, E form, HttpServletRequest request, HttpServletResponse response)
    {
        EntityPanel panel = new EntityPanel(Panel.Type.CHOOSE, mainPanel.getEntity());
        panel.setTitle(MessageUtil.message(request, "module.generic.add.usergroup.title"));
        panel.setPath(getPath());
       
        form.reset();
       
        return panel;
    }
View Full Code Here

    private static Logger log = Logger.getLogger(AddCompanyAction.class);

    @Override
    protected final EntityPanel createPanel(EntityPanel mainPanel, E form, HttpServletRequest request, HttpServletResponse response)
    {
        EntityPanel panel = new EntityPanel(Panel.Type.CHOOSE, mainPanel.getEntity());
        panel.setTitle(MessageUtil.message(request, "module.generic.add.company.title"));
        panel.setPath(getPath());
       
        return panel;
    }
View Full Code Here

TOP

Related Classes of org.opencustomer.framework.webapp.panel.EntityPanel

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.