本文整理汇总了Java中com.vaadin.ui.Component.Event类的典型用法代码示例。如果您正苦于以下问题:Java Event类的具体用法?Java Event怎么用?Java Event使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Event类属于com.vaadin.ui.Component包,在下文中一共展示了Event类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: componentEvent
import com.vaadin.ui.Component.Event; //导入依赖的package包/类
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);
}
}
}
示例2: componentEvent
import com.vaadin.ui.Component.Event; //导入依赖的package包/类
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);
}
}
}
示例3: componentEvent
import com.vaadin.ui.Component.Event; //导入依赖的package包/类
public final void componentEvent(Event event) {
if(event instanceof ConfirmationEvent) {
ConfirmationEvent ce = (ConfirmationEvent) event;
if(ce.isConfirmed()) {
confirmed(ce);
} else {
rejected(ce);
}
}
}
示例4: executeInternal
import com.vaadin.ui.Component.Event; //导入依赖的package包/类
@Override
protected void executeInternal(final Event event)
{
// TODO Auto-generated method stub
}
示例5: valueChange
import com.vaadin.ui.Component.Event; //导入依赖的package包/类
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);
}