本文整理汇总了Java中org.gwtbootstrap3.extras.datepicker.client.ui.base.events.ChangeDateHandler类的典型用法代码示例。如果您正苦于以下问题:Java ChangeDateHandler类的具体用法?Java ChangeDateHandler怎么用?Java ChangeDateHandler使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ChangeDateHandler类属于org.gwtbootstrap3.extras.datepicker.client.ui.base.events包,在下文中一共展示了ChangeDateHandler类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createWidget
import org.gwtbootstrap3.extras.datepicker.client.ui.base.events.ChangeDateHandler; //导入依赖的package包/类
@Override
public void createWidget(Entity e, MetadataProperty prop, Vocabulary vocab) {
this.property = prop;
this.entity = (DateEntity) e;
dateinput = new DatePicker();
dateinput.setPlaceholder(prop.getLabel());
dateinput.setAutoClose(true);
dateinput.setFormat("yyyy-mm-dd");
dateinput.setPosition(DatePickerPosition.TOP_AUTO);
dateinput.addChangeDateHandler(new ChangeDateHandler() {
@Override
public void onChangeDate(ChangeDateEvent event) {
fireEvent(new EntityChangeEvent(getValue()));
}
});
this.setValue(e);
}
示例2: addChangeDateHandler
import org.gwtbootstrap3.extras.datepicker.client.ui.base.events.ChangeDateHandler; //导入依赖的package包/类
@Override
public HandlerRegistration addChangeDateHandler(final ChangeDateHandler changeDateHandler) {
return datePicker.addChangeDateHandler(changeDateHandler);
}
示例3: addChangeDateHandler
import org.gwtbootstrap3.extras.datepicker.client.ui.base.events.ChangeDateHandler; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public HandlerRegistration addChangeDateHandler(final ChangeDateHandler changeDateHandler) {
return addHandler(changeDateHandler, ChangeDateEvent.getType());
}
示例4: addChangeDateHandler
import org.gwtbootstrap3.extras.datepicker.client.ui.base.events.ChangeDateHandler; //导入依赖的package包/类
HandlerRegistration addChangeDateHandler(ChangeDateHandler changeDateHandler);