Package com.google.gwt.user.client.ui
Interface SourcesKeyboardEvents
- All Known Subinterfaces:
HasFocus
- All Known Implementing Classes:
Anchor,Audio,Button,ButtonBase,Canvas,CheckBox,CustomButton,DoubleBox,FileUpload,FocusPanel,FocusWidget,IntegerBox,ListBox,LongBox,MediaBase,PasswordTextBox,PushButton,RadioButton,ResetButton,RichTextArea,SimpleCheckBox,SimpleRadioButton,SubmitButton,SuggestBox,TextArea,TextBox,TextBoxBase,ToggleButton,Tree,ValueBox,ValueBoxBase,Video
Deprecated.
A widget that implements this interface sources the events defined by the
KeyboardListener interface.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddKeyboardListener(KeyboardListener listener) Deprecated.use addKeyPressHandler/addKeyDownKeyDownHandler/addKeyUpHandler insteadvoidremoveKeyboardListener(KeyboardListener listener) Deprecated.Use theHandlerRegistration.removeHandler()method on the object returned by an add*Handler method instead
-
Method Details
-
addKeyboardListener
Deprecated.use addKeyPressHandler/addKeyDownKeyDownHandler/addKeyUpHandler insteadAdds a listener interface to receive keyboard events.- Parameters:
listener- the listener interface to add
-
removeKeyboardListener
Deprecated.Use theHandlerRegistration.removeHandler()method on the object returned by an add*Handler method insteadRemoves a previously added listener interface.- Parameters:
listener- the listener interface to remove
-
HasAllKeyHandlersinstead