Package org.exoplatform.webui.core

Examples of org.exoplatform.webui.core.UIConfirmation


    public UIEditInlineWorkspace() throws Exception {
        addChild(UIPortalComposer.class, null, null);
        addChild(UIPortalToolPanel.class, null, null);

        UIConfirmation uiConfirmation = addChild(UIConfirmation.class, null, null);
        uiConfirmation.setCaller(this);

        createActionConfirms(uiConfirmation);
    }
View Full Code Here


    public UIPortalComposer getComposer() {
        return getChild(UIPortalComposer.class);
    }

    public void showConfirmWindow(String message) {
        UIConfirmation uiConfirmation = getChild(UIConfirmation.class);
        uiConfirmation.setMessage(message);
        createActionConfirms(uiConfirmation);
        ((WebuiRequestContext) WebuiRequestContext.getCurrentInstance()).addUIComponentToUpdateByAjax(uiConfirmation);
    }
View Full Code Here

        @Override
        public void execute(Event<UIEditInlineWorkspace> event) throws Exception {
            UIEditInlineWorkspace uiEditInlineWorkspace = event.getSource();

            UIConfirmation uiConfirmation = uiEditInlineWorkspace.getChild(UIConfirmation.class);
            uiConfirmation.createEvent("Close", event.getExecutionPhase(), event.getRequestContext()).broadcast();

            UIPortalComposer uiPortalComposer = uiEditInlineWorkspace.getChild(UIPortalComposer.class);
            Event<UIComponent> abortEvent = uiPortalComposer.createEvent("Abort", event.getExecutionPhase(),
                    event.getRequestContext());
            abortEvent.broadcast();
View Full Code Here

    public static class AbortCloseActionListener extends EventListener<UIEditInlineWorkspace> {

        @Override
        public void execute(Event<UIEditInlineWorkspace> event) throws Exception {
            UIEditInlineWorkspace uiEditInlineWorkspace = event.getSource();
            UIConfirmation uiConfirmation = uiEditInlineWorkspace.getChild(UIConfirmation.class);
            uiConfirmation.createEvent("Close", event.getExecutionPhase(), event.getRequestContext()).broadcast();
        }
View Full Code Here

      setRenderedChild(UISampleUIForm.class);
   }

   private void showUIConfirmation()
   {
      UIConfirmation uiConfirmation = getChild(UIConfirmation.class);
      uiConfirmation.setActions(makeActionConfirmList());
      uiConfirmation.setCaller(this);
      uiConfirmation.addMessage(MSG_CONFIRM);
      uiConfirmation.setShow(true);

      setRenderedChild(UIConfirmation.class);
   }
View Full Code Here

    public UIEditInlineWorkspace() throws Exception {
        addChild(UIPortalComposer.class, null, null);
        addChild(UIPortalToolPanel.class, null, null);

        UIConfirmation uiConfirmation = addChild(UIConfirmation.class, null, null);
        uiConfirmation.setCaller(this);

        createActionConfirms(uiConfirmation);
    }
View Full Code Here

    public UIPortalComposer getComposer() {
        return getChild(UIPortalComposer.class);
    }

    public void showConfirmWindow(String message) {
        UIConfirmation uiConfirmation = getChild(UIConfirmation.class);
        uiConfirmation.setMessage(message);
        createActionConfirms(uiConfirmation);
        ((WebuiRequestContext) WebuiRequestContext.getCurrentInstance()).addUIComponentToUpdateByAjax(uiConfirmation);
    }
View Full Code Here

        actionConfirms.add(new ActionConfirm("AbortClose", no));
        uiConfirmation.setActions(actionConfirms);
    }

    public void createActionConfirm(String message, String confirmAction, String abortAction) {
        UIConfirmation uiConfirmation = getChild(UIConfirmation.class);
        ResourceBundle resourceBundle = WebuiRequestContext.getCurrentInstance().getApplicationResourceBundle();
        String yes = resourceBundle.getString("UIEditInlineWorkspace.confirm.yes");
        String no = resourceBundle.getString("UIEditInlineWorkspace.confirm.no");
        uiConfirmation.setMessage(resourceBundle.getString(message));

        List<ActionConfirm> actionConfirms = new ArrayList<ActionConfirm>();
        actionConfirms.add(new ActionConfirm(confirmAction, yes));
        actionConfirms.add(new ActionConfirm(abortAction, no));
        uiConfirmation.setActions(actionConfirms);
        ((WebuiRequestContext) WebuiRequestContext.getCurrentInstance()).addUIComponentToUpdateByAjax(uiConfirmation);
    }
View Full Code Here

        @Override
        public void execute(Event<UIEditInlineWorkspace> event) throws Exception {
            UIEditInlineWorkspace uiEditInlineWorkspace = event.getSource();

            UIConfirmation uiConfirmation = uiEditInlineWorkspace.getChild(UIConfirmation.class);
            uiConfirmation.createEvent("Close", event.getExecutionPhase(), event.getRequestContext()).broadcast();

            UIPortalComposer uiPortalComposer = uiEditInlineWorkspace.getChild(UIPortalComposer.class);
            Event<UIComponent> abortEvent = uiPortalComposer.createEvent("Abort", event.getExecutionPhase(),
                    event.getRequestContext());
            abortEvent.broadcast();
View Full Code Here

    }

    public static class ConfirmFinishActionListener extends EventListener<UIEditInlineWorkspace> {
        @Override
        public void execute(Event<UIEditInlineWorkspace> event) throws Exception {
            UIConfirmation uiConfirmation = event.getSource().getChild(UIConfirmation.class);
            uiConfirmation.createEvent("Close", event.getExecutionPhase(), event.getRequestContext()).broadcast();

            UIPortalComposer uiPortalComposer = event.getSource().getChild(UIPortalComposer.class);
            if (uiPortalComposer.getId().equals(UIPortalComposer.UIPAGE_EDITOR)) {
                uiPortalComposer.savePage(event.getSource(), event);
            } else {
View Full Code Here

TOP

Related Classes of org.exoplatform.webui.core.UIConfirmation

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.