summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2017-05-16 12:11:07 +0300
committerPekka Hyvönen <pekka@vaadin.com>2017-05-16 12:11:06 +0300
commit37c4af2b27effe0de5f3f2e301a7d4179e7012f2 (patch)
treefa45531731ad72be1712aa04cfc4cbfecc94749e
parentefa7f5a4d069556061ba4ceef4fb4d76dae84ef4 (diff)
downloadvaadin-framework-37c4af2b27effe0de5f3f2e301a7d4179e7012f2.tar.gz
vaadin-framework-37c4af2b27effe0de5f3f2e301a7d4179e7012f2.zip
Adds a passthrough to root component for most Composite methods (#9324)
Fixes #9323
-rw-r--r--server/src/main/java/com/vaadin/ui/Tree.java82
1 files changed, 82 insertions, 0 deletions
diff --git a/server/src/main/java/com/vaadin/ui/Tree.java b/server/src/main/java/com/vaadin/ui/Tree.java
index 9a765238c1..9f30c010db 100644
--- a/server/src/main/java/com/vaadin/ui/Tree.java
+++ b/server/src/main/java/com/vaadin/ui/Tree.java
@@ -36,9 +36,11 @@ import com.vaadin.event.ExpandEvent;
import com.vaadin.event.ExpandEvent.ExpandListener;
import com.vaadin.event.SerializableEventListener;
import com.vaadin.event.selection.SelectionListener;
+import com.vaadin.server.ErrorMessage;
import com.vaadin.server.Resource;
import com.vaadin.server.SerializablePredicate;
import com.vaadin.shared.Registration;
+import com.vaadin.shared.ui.ContentMode;
import com.vaadin.shared.ui.grid.HeightMode;
import com.vaadin.shared.ui.tree.TreeRendererState;
import com.vaadin.ui.Grid.SelectionMode;
@@ -546,4 +548,84 @@ public class Tree<T> extends Composite
public Resource getIcon() {
return treeGrid.getIcon();
}
+
+ @Override
+ public String getStyleName() {
+ return treeGrid.getStyleName();
+ }
+
+ @Override
+ public void setStyleName(String style) {
+ treeGrid.setStyleName(style);
+ }
+
+ @Override
+ public void setStyleName(String style, boolean add) {
+ treeGrid.setStyleName(style, add);
+ }
+
+ @Override
+ public void addStyleName(String style) {
+ treeGrid.addStyleName(style);
+ }
+
+ @Override
+ public void removeStyleName(String style) {
+ treeGrid.removeStyleName(style);
+ }
+
+ @Override
+ public String getPrimaryStyleName() {
+ return treeGrid.getPrimaryStyleName();
+ }
+
+ @Override
+ public void setPrimaryStyleName(String style) {
+ treeGrid.setPrimaryStyleName(style);
+ }
+
+ @Override
+ public void setId(String id) {
+ treeGrid.setId(id);
+ }
+
+ @Override
+ public String getId() {
+ return treeGrid.getId();
+ }
+
+ @Override
+ public void setCaptionAsHtml(boolean captionAsHtml) {
+ treeGrid.setCaptionAsHtml(captionAsHtml);
+ }
+
+ @Override
+ public boolean isCaptionAsHtml() {
+ return treeGrid.isCaptionAsHtml();
+ }
+
+ @Override
+ public void setDescription(String description) {
+ treeGrid.setDescription(description);
+ }
+
+ @Override
+ public void setDescription(String description, ContentMode mode) {
+ treeGrid.setDescription(description, mode);
+ }
+
+ @Override
+ public ErrorMessage getErrorMessage() {
+ return treeGrid.getErrorMessage();
+ }
+
+ @Override
+ public ErrorMessage getComponentError() {
+ return treeGrid.getComponentError();
+ }
+
+ @Override
+ public void setComponentError(ErrorMessage componentError) {
+ treeGrid.setComponentError(componentError);
+ }
}