diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2010-04-06 19:28:57 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2010-04-06 19:28:57 +0000 |
commit | f82af418aa5a0bcbaa7654e79abf7c5bf1185c99 (patch) | |
tree | b87a353a245daeaf4ce5fc251436f0564d51837c /src/com/vaadin | |
parent | 575f143edf3f3128cede27b635fe2c0fda90506f (diff) | |
download | vaadin-framework-f82af418aa5a0bcbaa7654e79abf7c5bf1185c99.tar.gz vaadin-framework-f82af418aa5a0bcbaa7654e79abf7c5bf1185c99.zip |
added missing method
svn changeset:12337/svn branch:6.3
Diffstat (limited to 'src/com/vaadin')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/UIDL.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/UIDL.java b/src/com/vaadin/terminal/gwt/client/UIDL.java index 6f9251c5cd..20302cff4d 100644 --- a/src/com/vaadin/terminal/gwt/client/UIDL.java +++ b/src/com/vaadin/terminal/gwt/client/UIDL.java @@ -461,6 +461,7 @@ public final class UIDL extends JavaScriptObject { /** * @deprecated should not be used anymore */ + @Deprecated public final static class XML extends JavaScriptObject { protected XML() { } @@ -532,4 +533,18 @@ public final class UIDL extends JavaScriptObject { return connection.getPaintable(getStringVariable(name)); } + public UIDL getChildByTagName(String tagName) { + Iterator<Object> childIterator = getChildIterator(); + while (childIterator.hasNext()) { + Object next = childIterator.next(); + if (next instanceof UIDL) { + UIDL childUIDL = (UIDL) next; + if (childUIDL.getTag().equals(tagName)) { + return childUIDL; + } + } + } + return null; + } + } |