public final void componentEvent(Event event) { if(event instanceof FormPropertiesEvent) { FormPropertiesEvent propertyEvent = (FormPropertiesEvent) event; if(FormPropertiesEvent.TYPE_SUBMIT.equals(propertyEvent.getType())) { handleFormSubmit(propertyEvent); } else { handleFormCancel(propertyEvent); } } }
public final void componentEvent(Event event) { if(event instanceof SubmitEvent) { SubmitEvent gfe = (SubmitEvent) event; if(SubmitEvent.SUBMITTED.equals(gfe.getType())) { submitted(gfe); } else { cancelled(gfe); } } }
public final void componentEvent(Event event) { if(event instanceof ConfirmationEvent) { ConfirmationEvent ce = (ConfirmationEvent) event; if(ce.isConfirmed()) { confirmed(ce); } else { rejected(ce); } } }
@Override protected void executeInternal(final Event event) { // TODO Auto-generated method stub }
public void valueChange(ValueChangeEvent valueChangeEvent) { Event event = (Event) valueChangeEvent; Locale selected = ((Locale) valueChangeEvent.getProperty().getValue()); selected = selected == null ? Locale.getDefault() : selected; event.getComponent().getUI().setLocale(selected); }