Exemplo n.º 1
0
 public void setTargetFromWidget() {
   String targetId = Utils.<String>getComponentOption(getRootElement(), "target").orNull();
   if (targetId != null) {
     target = browser.findElement(By.id(targetId));
   } else {
     target = getRootElement();
   }
 }
Exemplo n.º 2
0
 public void setShowEventFromWidget() {
   Optional<String> event = Utils.getComponentOption(root, "showEvent");
   setShowEvent(new Event(event.or(getDefaultShowEvent().getEventName())));
 }