// Create a static tree and a container to hold it
Tree staticTree = createStaticTree();
staticTree.setAnimationEnabled(true);
staticTree.ensureDebugId("cwTree-staticTree");
ScrollPanel staticTreeWrapper = new ScrollPanel(staticTree);
staticTreeWrapper.ensureDebugId("cwTree-staticTree-Wrapper");
staticTreeWrapper.setSize("300px", "300px");
// Wrap the static tree in a DecoratorPanel
DecoratorPanel staticDecorator = new DecoratorPanel();
staticDecorator.setWidget(staticTreeWrapper);