Revision 7e8e9ff0 src/gr/grnet/pithos/web/client/mysharedtree/MysharedTreeView.java
b/src/gr/grnet/pithos/web/client/mysharedtree/MysharedTreeView.java | ||
---|---|---|
55 | 55 |
public class MysharedTreeView extends Composite implements TreeView { |
56 | 56 |
|
57 | 57 |
public void updateChildren(Folder folder) { |
58 |
TreeNode root = ((CellTree) getWidget()).getRootTreeNode();
|
|
58 |
TreeNode root = tree.getRootTreeNode();
|
|
59 | 59 |
updateChildren(root, folder); |
60 | 60 |
} |
61 | 61 |
|
... | ... | |
105 | 105 |
@Source("gr/grnet/pithos/resources/home22.png") |
106 | 106 |
ImageResource home(); |
107 | 107 |
|
108 |
@Source("gr/grnet/pithos/resources/folder22.png") |
|
108 |
@Source("gr/grnet/pithos/resources/2folder22.png")
|
|
109 | 109 |
public ImageResource folderYellow(); |
110 | 110 |
|
111 | 111 |
@Source("gr/grnet/pithos/resources/mimetypes/document.png") |
112 | 112 |
ImageResource document(); |
113 | 113 |
|
114 |
@Source("gr/grnet/pithos/resources/othersshared.png") |
|
115 |
ImageResource othersShared(); |
|
116 |
|
|
117 | 114 |
@Source("gr/grnet/pithos/resources/myshared22.png") |
118 | 115 |
ImageResource myShared(); |
119 | 116 |
|
117 |
@Source("gr/grnet/pithos/resources/sharedbyme22.png") |
|
118 |
ImageResource sharedByMe(); |
|
119 |
|
|
120 | 120 |
@Source("gr/grnet/pithos/resources/folder_user.png") |
121 | 121 |
ImageResource sharedFolder(); |
122 | 122 |
} |
... | ... | |
132 | 132 |
|
133 | 133 |
interface Resources extends gr.grnet.pithos.web.client.PithosDisclosurePanel.Resources { |
134 | 134 |
@Override |
135 |
@Source("gr/grnet/pithos/resources/myshared22.png")
|
|
135 |
@Source("gr/grnet/pithos/resources/sharedbyme22.png")
|
|
136 | 136 |
ImageResource icon(); |
137 | 137 |
} |
138 | 138 |
|
139 | 139 |
private MysharedTreeViewModel model; |
140 | 140 |
|
141 |
private CellTree tree; |
|
142 |
|
|
141 | 143 |
public MysharedTreeView(MysharedTreeViewModel viewModel) { |
142 | 144 |
this.model = viewModel; |
143 | 145 |
|
... | ... | |
148 | 150 |
* CustomTreeModel#getNodeInfo(); |
149 | 151 |
*/ |
150 | 152 |
CellTree.Resources res = GWT.create(BasicResources.class); |
151 |
CellTree tree = new CellTree(model, null, res);
|
|
153 |
tree = new CellTree(model, null, res); |
|
152 | 154 |
tree.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED); |
153 | 155 |
|
154 | 156 |
panel.add(tree); |
Also available in: Unified diff