diff options
author | Jani Laakso <jani.laakso@itmill.com> | 2008-02-08 15:09:51 +0000 |
---|---|---|
committer | Jani Laakso <jani.laakso@itmill.com> | 2008-02-08 15:09:51 +0000 |
commit | 2af6fce62747adccb45b9332a0e5d8a84042ac03 (patch) | |
tree | dc85def3f99674501823628685cd135dca76205b /src/com/itmill/toolkit/Application.java | |
parent | 3c447bac504ddc6770e1ad15f38e4b0bec165851 (diff) | |
download | vaadin-framework-2af6fce62747adccb45b9332a0e5d8a84042ac03.tar.gz vaadin-framework-2af6fce62747adccb45b9332a0e5d8a84042ac03.zip |
Deprecated Application.setFocusedComponent and Application.consumeFocus(), this design flaw will be fixed in later releases.
Upload setFocus() now works even if it is not yet attached.
svn changeset:3755/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/Application.java')
-rw-r--r-- | src/com/itmill/toolkit/Application.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/itmill/toolkit/Application.java b/src/com/itmill/toolkit/Application.java index ec9c8f8b79..e5b44542d0 100644 --- a/src/com/itmill/toolkit/Application.java +++ b/src/com/itmill/toolkit/Application.java @@ -1068,6 +1068,11 @@ public abstract class Application implements URIHandler, Terminal.ErrorListener return context; } + /** + * @deprecated Call component's focus method instead. + * + * @param focusable + */ public void setFocusedComponent(Focusable focusable) { pendingFocus = focusable; } @@ -1075,6 +1080,8 @@ public abstract class Application implements URIHandler, Terminal.ErrorListener /** * Gets and nulls focused component in this window * + * @deprecated This method will be replaced with focus listener in the + * future releases. * @return Focused component or null if none is focused. */ public Component.Focusable consumeFocus() { |