本文整理汇总了Java中com.vaadin.event.FieldEvents.FocusListener方法的典型用法代码示例。如果您正苦于以下问题:Java FieldEvents.FocusListener方法的具体用法?Java FieldEvents.FocusListener怎么用?Java FieldEvents.FocusListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.vaadin.event.FieldEvents
的用法示例。
在下文中一共展示了FieldEvents.FocusListener方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addFocusListener
import com.vaadin.event.FieldEvents; //导入方法依赖的package包/类
@Override
public void addFocusListener(FieldEvents.FocusListener listener) {
addListener(FieldEvents.FocusEvent.EVENT_ID, FieldEvents.FocusEvent.class, listener,
FieldEvents.FocusListener.focusMethod);
}
示例2: addListener
import com.vaadin.event.FieldEvents; //导入方法依赖的package包/类
@Override
@Deprecated
public void addListener(FieldEvents.FocusListener listener) {
addFocusListener(listener);
}
示例3: removeFocusListener
import com.vaadin.event.FieldEvents; //导入方法依赖的package包/类
@Override
public void removeFocusListener(FieldEvents.FocusListener listener) {
removeListener(FieldEvents.FocusEvent.EVENT_ID, FieldEvents.FocusEvent.class, listener);
}
示例4: removeListener
import com.vaadin.event.FieldEvents; //导入方法依赖的package包/类
@Override
@Deprecated
public void removeListener(FieldEvents.FocusListener listener) {
removeFocusListener(listener);
}
示例5: withFocusListener
import com.vaadin.event.FieldEvents; //导入方法依赖的package包/类
@Override
public DoubleField withFocusListener(FieldEvents.FocusListener listener) {
return (DoubleField) super.withFocusListener(listener);
}
示例6: withFocusListener
import com.vaadin.event.FieldEvents; //导入方法依赖的package包/类
@Override
public IntegerField withFocusListener(FieldEvents.FocusListener listener) {
return (IntegerField) super.withFocusListener(listener);
}
示例7: addFocusListener
import com.vaadin.event.FieldEvents; //导入方法依赖的package包/类
/**
* Adds a <code>FocusListener</code> to the Component which gets fired
* when a <code>Field</code> receives keyboard focus.
*
* @param listener the focus listener to add, not null
* @return a registration object for removing the listener
* @see FieldEvents.FocusListener
* @see Registration
* @since 0.2
*/
public Registration addFocusListener(FieldEvents.FocusListener listener) {
// Sorry no withFocusListener. You need the Registration later on to remove
// the Listener again because there is no removeListener Method
return getField().addFocusListener(listener);
}