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