Package org.primefaces.model

Examples of org.primefaces.model.Visibility


   
    //Queue toggle event
    if(params.containsKey(clientId + "_toggled")) {
      boolean collapsed = Boolean.valueOf(collapsedParam);
      panel.setCollapsed(collapsed);
      Visibility visibility = collapsed ? Visibility.HIDDEN : Visibility.VISIBLE;
      panel.queueEvent(new ToggleEvent(panel, visibility));
    }
   
    //Queue close event
    if(params.containsKey(clientId + "_closed")) {
View Full Code Here


   
    //Queue toggle event
    if(params.containsKey(clientId + "_toggled")) {
      boolean collapsed = Boolean.valueOf(params.get(clientId + "_collapsed"));
      LayoutUnit unit = layout.getLayoutUnitByPosition(params.get(clientId + "_unit"));
      Visibility visibility = collapsed ? Visibility.HIDDEN : Visibility.VISIBLE;
      unit.setCollapsed(collapsed);
     
      layout.queueEvent(new ToggleEvent(unit, visibility));
    }
   
View Full Code Here

            FacesEvent wrapperEvent = null;

            if(eventName.equals("toggle")) {
                boolean collapsed = Boolean.valueOf(params.get(clientId + "_collapsed"));
                LayoutUnit unit = getLayoutUnitByPosition(params.get(clientId + "_unit"));
                Visibility visibility = collapsed ? Visibility.HIDDEN : Visibility.VISIBLE;
                unit.setCollapsed(collapsed);
               
                wrapperEvent = new ToggleEvent(unit, behaviorEvent.getBehavior(), visibility);
            }
            else if(eventName.equals("close")) {
View Full Code Here

            String eventName = params.get(Constants.PARTIAL_BEHAVIOR_EVENT_PARAM);
            String clientId = this.getClientId(context);
            AjaxBehaviorEvent behaviorEvent = (AjaxBehaviorEvent) event;
           
            if(eventName.equals("toggle")) {
                Visibility visibility = this.isCollapsed() ? Visibility.HIDDEN : Visibility.VISIBLE;

                super.queueEvent(new ToggleEvent(this, behaviorEvent.getBehavior(), visibility));
            }
        }
        else {
View Full Code Here

        if(isSelfRequest(context)) {
            AjaxBehaviorEvent behaviorEvent = (AjaxBehaviorEvent) event;
           
            if(eventName.equals("toggle")) {
                boolean collapsed = Boolean.valueOf(params.get(clientId + "_collapsed"));
                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()));
View Full Code Here

   
    //Queue toggle event
    if(params.containsKey(clientId + "_toggled")) {
      boolean collapsed = Boolean.valueOf(collapsedParam);
      panel.setCollapsed(collapsed);
      Visibility visibility = collapsed ? Visibility.HIDDEN : Visibility.VISIBLE;
      panel.queueEvent(new ToggleEvent(panel, visibility));
    }
   
    //Queue close event
    if(params.containsKey(clientId + "_closed")) {
View Full Code Here

   
    //Queue toggle event
    if(params.containsKey(clientId + "_toggled")) {
      boolean collapsed = Boolean.valueOf(params.get(clientId + "_collapsed"));
      LayoutUnit unit = layout.getLayoutUnitByPosition(params.get(clientId + "_unit"));
      Visibility visibility = collapsed ? Visibility.HIDDEN : Visibility.VISIBLE;
      unit.setCollapsed(collapsed);
     
      layout.queueEvent(new ToggleEvent(unit, visibility));
    }
   
View Full Code Here

TOP

Related Classes of org.primefaces.model.Visibility

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.