Exemple #1
0
 /**
  * Returns the {@link AccordionTriggerEvent}.
  *
  * @see #setTriggerEvent(org.objetdirect.wickext.ui.accordion.Accordion.AccordionTriggerEvent)
  */
 public AccordionTriggerEvent getEvent() {
   String literal = this.options.getLiteral("event");
   return literal == null
       ? AccordionTriggerEvent.CLICK
       : AccordionTriggerEvent.valueOf(literal.toUpperCase());
 }
Exemple #2
0
 /**
  * Sets the {@link AccordionTriggerEvent} to use to open content.
  *
  * @return instance of the current component
  */
 public Accordion setEvent(AccordionTriggerEvent accordionTriggerEvent) {
   this.options.putLiteral("event", accordionTriggerEvent.name().toLowerCase());
   return this;
 }