Tree.Resources.@Deprecated public interface TreeImages extends ImageBundle
ImageBundle that provides images for
Tree.
public class TreeImagesExample implements EntryPoint {
/**
* Allows us to override Tree default images. If we don't override one of the
* methods, the default will be used.
*/
interface MyTreeImages extends TreeImages {
@Resource("downArrow.png")
AbstractImagePrototype treeOpen();
@Resource("rightArrow.png")
AbstractImagePrototype treeClosed();
}
public void onModuleLoad() {
TreeImages images = (TreeImages)GWT.create(MyTreeImages.class);
Tree tree = new Tree(images);
RootPanel.get().add(tree);
}
}
ImageBundle.Resource| Modifier and Type | Method and Description |
|---|---|
AbstractImagePrototype |
treeClosed()
Deprecated.
An image indicating a closed branch.
|
AbstractImagePrototype |
treeLeaf()
Deprecated.
An image indicating a leaf.
|
AbstractImagePrototype |
treeOpen()
Deprecated.
An image indicating an open branch.
|
AbstractImagePrototype treeOpen()
AbstractImagePrototype treeClosed()
AbstractImagePrototype treeLeaf()