Package org.primefaces.event

Examples of org.primefaces.event.CloseEvent


    Map<String,String> params = facesContext.getExternalContext().getRequestParameterMap();
   
    //Queue close event
    if(params.containsKey(clientId + "_closed")) {
      dialog.setVisible(false);
      dialog.queueEvent(new CloseEvent(dialog));
    }
  }
View Full Code Here


    }
   
    //Queue close event
    if(params.containsKey(clientId + "_closed")) {
      panel.setVisible(false);
      panel.queueEvent(new CloseEvent(panel));
    }
  }
View Full Code Here

    //Queue close event
    if(params.containsKey(clientId + "_closed")) {
      LayoutUnit unit = layout.getLayoutUnitByPosition(params.get(clientId + "_unit"));
      unit.setVisible(false);
     
      layout.queueEvent(new CloseEvent(unit));
    }
   
    //Queue resize event
    if(params.containsKey(clientId + "_resized")) {
      LayoutUnit unit = layout.getLayoutUnitByPosition(params.get(clientId + "_unit"));
View Full Code Here

            }
            else if(eventName.equals("close")) {
                LayoutUnit unit = getLayoutUnitByPosition(params.get(clientId + "_unit"));
                unit.setVisible(false);

                wrapperEvent = new CloseEvent(unit, behaviorEvent.getBehavior());
            }
            else if(eventName.equals("resize")) {
                LayoutUnit unit = getLayoutUnitByPosition(params.get(clientId + "_unit"));
                String position = unit.getPosition();
                int width = Integer.valueOf(params.get(clientId + "_width"));
View Full Code Here

        if(isRequestSource(context)) {
            String eventName = context.getExternalContext().getRequestParameterMap().get(Constants.PARTIAL_BEHAVIOR_EVENT_PARAM);

            if(eventName != null && eventName.equals("close")) {
                setVisible(false);
                CloseEvent closeEvent = new CloseEvent(this, ((AjaxBehaviorEvent) event).getBehavior());
                closeEvent.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
                super.queueEvent(closeEvent);
                context.renderResponse();       //just process the close event and skip to response
            }
        } else {
            super.queueEvent(event);
View Full Code Here

                Visibility visibility = collapsed ? Visibility.HIDDEN : Visibility.VISIBLE;

                super.queueEvent(new ToggleEvent(this, behaviorEvent.getBehavior(), visibility));

            } else if(eventName.equals("close")) {
                super.queueEvent(new CloseEvent(this, behaviorEvent.getBehavior()));
            }
        }
        else {
            super.queueEvent(event);
        }
View Full Code Here

    }
   
    //Queue close event
    if(params.containsKey(clientId + "_closed")) {
      panel.setVisible(false);
      panel.queueEvent(new CloseEvent(panel));
    }
  }
View Full Code Here

    //Queue close event
    if(params.containsKey(clientId + "_closed")) {
      LayoutUnit unit = layout.getLayoutUnitByPosition(params.get(clientId + "_unit"));
      unit.setVisible(false);
     
      layout.queueEvent(new CloseEvent(unit));
    }
   
    //Queue resize event
    if(params.containsKey(clientId + "_resized")) {
      LayoutUnit unit = layout.getLayoutUnitByPosition(params.get(clientId + "_unit"));
View Full Code Here

    Map<String,String> params = facesContext.getExternalContext().getRequestParameterMap();
   
    //Queue close event
    if(params.containsKey(clientId + "_closed")) {
      dialog.setVisible(false);
      dialog.queueEvent(new CloseEvent(dialog));
    }
  }
View Full Code Here

TOP

Related Classes of org.primefaces.event.CloseEvent

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.