diff options
author | Pekka Hyvönen <pekka@vaadin.com> | 2012-08-28 10:16:58 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-08-28 11:31:52 +0300 |
commit | 05964e7adaed15b7bda6ba3c49ce226ec4ff723a (patch) | |
tree | b76381be637511581aa2b0d9e578c6eb925ccf8e /server/src/com/vaadin/ui/AbstractComponent.java | |
parent | c6d43cc88fb0ef4853e07be54fc76a6aa1dc9e23 (diff) | |
download | vaadin-framework-05964e7adaed15b7bda6ba3c49ce226ec4ff723a.tar.gz vaadin-framework-05964e7adaed15b7bda6ba3c49ce226ec4ff723a.zip |
Renamed Component.debugId to id (#3700)
Applied patch from Pekka with minor changes
(@deprecation javadoc, call the real methods from deprecated methods in AbstractComponent)
Diffstat (limited to 'server/src/com/vaadin/ui/AbstractComponent.java')
-rw-r--r-- | server/src/com/vaadin/ui/AbstractComponent.java | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/server/src/com/vaadin/ui/AbstractComponent.java b/server/src/com/vaadin/ui/AbstractComponent.java index a52a07f266..917b1a516d 100644 --- a/server/src/com/vaadin/ui/AbstractComponent.java +++ b/server/src/com/vaadin/ui/AbstractComponent.java @@ -111,14 +111,40 @@ public abstract class AbstractComponent extends AbstractClientConnector /* Get/Set component properties */ + /* + * (non-Javadoc) + * + * @see com.vaadin.ui.Component#setId(java.lang.String) + */ @Override - public void setDebugId(String id) { - getState().setDebugId(id); + public void setId(String id) { + getState().setId(id); } + /* + * (non-Javadoc) + * + * @see com.vaadin.ui.Component#getId() + */ @Override + public String getId() { + return getState().getId(); + } + + /** + * @deprecated as of 7.0. Use {@link #setId(String)} + */ + @Deprecated + public void setDebugId(String id) { + setId(id); + } + + /** + * @deprecated as of 7.0. Use {@link #getId()} + */ + @Deprecated public String getDebugId() { - return getState().getDebugId(); + return getId(); } /* |