Package org.primefaces.event

Examples of org.primefaces.event.ToggleEvent


    //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")) {
      panel.setVisible(false);
View Full Code Here


      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));
    }
   
    //Queue close event
    if(params.containsKey(clientId + "_closed")) {
      LayoutUnit unit = layout.getLayoutUnitByPosition(params.get(clientId + "_unit"));
View Full Code Here

                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")) {
                LayoutUnit unit = getLayoutUnitByPosition(params.get(clientId + "_unit"));
                unit.setVisible(false);
View Full Code Here

            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 {
            super.queueEvent(event);
        }
View Full Code Here

           
            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")) {
      panel.setVisible(false);
View Full Code Here

      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));
    }
   
    //Queue close event
    if(params.containsKey(clientId + "_closed")) {
      LayoutUnit unit = layout.getLayoutUnitByPosition(params.get(clientId + "_unit"));
View Full Code Here

TOP

Related Classes of org.primefaces.event.ToggleEvent

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.