Revision 39f6d7b0 src/gr/grnet/pithos/web/client/othersharedtree/OtherSharedTreeView.java
b/src/gr/grnet/pithos/web/client/othersharedtree/OtherSharedTreeView.java | ||
---|---|---|
36 | 36 |
package gr.grnet.pithos.web.client.othersharedtree; |
37 | 37 |
|
38 | 38 |
import gr.grnet.pithos.web.client.FolderContextMenu; |
39 |
import gr.grnet.pithos.web.client.PithosDisclosurePanel; |
|
39 | 40 |
import gr.grnet.pithos.web.client.TreeView; |
40 | 41 |
import gr.grnet.pithos.web.client.foldertree.Folder; |
41 | 42 |
|
... | ... | |
133 | 134 |
public SafeHtml nameSpan(String name); |
134 | 135 |
} |
135 | 136 |
|
137 |
interface Resources extends gr.grnet.pithos.web.client.PithosDisclosurePanel.Resources { |
|
138 |
@Override |
|
139 |
@Source("gr/grnet/pithos/resources/othersshared.png") |
|
140 |
ImageResource icon(); |
|
141 |
} |
|
142 |
|
|
136 | 143 |
private OtherSharedTreeViewModel model; |
137 | 144 |
|
138 | 145 |
public OtherSharedTreeView(OtherSharedTreeViewModel viewModel) { |
139 | 146 |
this.model = viewModel; |
147 |
|
|
148 |
PithosDisclosurePanel panel = new PithosDisclosurePanel((Resources) GWT.create(Resources.class), "Shared to me", false); |
|
140 | 149 |
/* |
141 | 150 |
* Create the tree using the model. We use <code>null</code> as the default |
142 | 151 |
* value of the root node. The default value will be passed to |
... | ... | |
146 | 155 |
CellTree tree = new CellTree(model, null, res); |
147 | 156 |
tree.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED); |
148 | 157 |
|
149 |
initWidget(tree); |
|
158 |
panel.add(tree); |
|
159 |
initWidget(panel); |
|
150 | 160 |
} |
151 | 161 |
|
152 | 162 |
|
Also available in: Unified diff