Revision 7e8e9ff0 src/gr/grnet/pithos/web/client/othersharedtree/OtherSharedTreeView.java
b/src/gr/grnet/pithos/web/client/othersharedtree/OtherSharedTreeView.java | ||
---|---|---|
56 | 56 |
public class OtherSharedTreeView extends Composite implements TreeView { |
57 | 57 |
|
58 | 58 |
public void updateChildren(Folder folder) { |
59 |
TreeNode root = ((CellTree) getWidget()).getRootTreeNode();
|
|
59 |
TreeNode root = tree.getRootTreeNode();
|
|
60 | 60 |
updateChildren(root, folder); |
61 | 61 |
} |
62 | 62 |
|
... | ... | |
106 | 106 |
@Source("gr/grnet/pithos/resources/home22.png") |
107 | 107 |
ImageResource home(); |
108 | 108 |
|
109 |
@Source("gr/grnet/pithos/resources/folder22.png") |
|
109 |
@Source("gr/grnet/pithos/resources/2folder22.png")
|
|
110 | 110 |
public ImageResource folderYellow(); |
111 | 111 |
|
112 | 112 |
@Source("gr/grnet/pithos/resources/mimetypes/document.png") |
113 | 113 |
ImageResource document(); |
114 | 114 |
|
115 |
@Source("gr/grnet/pithos/resources/othersshared.png")
|
|
115 |
@Source("gr/grnet/pithos/resources/sharedtome22.png")
|
|
116 | 116 |
ImageResource othersShared(); |
117 | 117 |
|
118 | 118 |
@Source("gr/grnet/pithos/resources/myshared22.png") |
... | ... | |
136 | 136 |
|
137 | 137 |
interface Resources extends gr.grnet.pithos.web.client.PithosDisclosurePanel.Resources { |
138 | 138 |
@Override |
139 |
@Source("gr/grnet/pithos/resources/othersshared.png")
|
|
139 |
@Source("gr/grnet/pithos/resources/sharedtome22.png")
|
|
140 | 140 |
ImageResource icon(); |
141 | 141 |
} |
142 | 142 |
|
143 | 143 |
private OtherSharedTreeViewModel model; |
144 | 144 |
|
145 |
private CellTree tree; |
|
146 |
|
|
145 | 147 |
public OtherSharedTreeView(OtherSharedTreeViewModel viewModel) { |
146 | 148 |
this.model = viewModel; |
147 | 149 |
|
... | ... | |
152 | 154 |
* CustomTreeModel#getNodeInfo(); |
153 | 155 |
*/ |
154 | 156 |
CellTree.Resources res = GWT.create(BasicResources.class); |
155 |
CellTree tree = new CellTree(model, null, res);
|
|
157 |
tree = new CellTree(model, null, res); |
|
156 | 158 |
tree.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED); |
157 | 159 |
|
158 | 160 |
panel.add(tree); |
Also available in: Unified diff