Package org.odlabs.wiquery.ui.accordion

Examples of org.odlabs.wiquery.ui.accordion.Accordion


  private static final long serialVersionUID = 261756719214828133L;

  public AccordionPanel(String id) {
    super(id);
    Accordion accordion = new Accordion("accordion");
    accordion.setCollapsible(true);
    accordion.setActive(false);
    accordion.setAnimate(new AccordionAnimateOption(200));
    add(accordion);
   
    Label indexLabel = new Label("indexLabel");
    indexLabel.setOutputMarkupId(true);
    add(indexLabel);
   
    JsStatement getActiveStatement = new JsQuery(accordion).$().chain("accordion", "'option'", "'active'");
    CharSequence labelValue = "'Active is: ' + " + getActiveStatement.render(false);
    accordion.setActivateEvent(JsScopeUiEvent.quickScope(new JsQuery(indexLabel).$().chain("text", labelValue)));
  }
View Full Code Here

TOP

Related Classes of org.odlabs.wiquery.ui.accordion.Accordion

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.