Revision 39f6d7b0 src/gr/grnet/pithos/web/client/mysharedtree/MysharedTreeView.java
b/src/gr/grnet/pithos/web/client/mysharedtree/MysharedTreeView.java | ||
---|---|---|
36 | 36 |
package gr.grnet.pithos.web.client.mysharedtree; |
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 |
|
42 | 43 |
import com.google.gwt.core.client.GWT; |
43 | 44 |
import com.google.gwt.resources.client.ImageResource; |
44 |
import com.google.gwt.resources.client.ClientBundle.Source; |
|
45 | 45 |
import com.google.gwt.resources.client.ImageResource.ImageOptions; |
46 | 46 |
import com.google.gwt.resources.client.ImageResource.RepeatStyle; |
47 | 47 |
import com.google.gwt.safehtml.client.SafeHtmlTemplates; |
... | ... | |
130 | 130 |
public SafeHtml nameSpan(String name); |
131 | 131 |
} |
132 | 132 |
|
133 |
interface Resources extends gr.grnet.pithos.web.client.PithosDisclosurePanel.Resources { |
|
134 |
@Override |
|
135 |
@Source("gr/grnet/pithos/resources/myshared22.png") |
|
136 |
ImageResource icon(); |
|
137 |
} |
|
138 |
|
|
133 | 139 |
private MysharedTreeViewModel model; |
134 | 140 |
|
135 | 141 |
public MysharedTreeView(MysharedTreeViewModel viewModel) { |
136 | 142 |
this.model = viewModel; |
143 |
|
|
144 |
PithosDisclosurePanel panel = new PithosDisclosurePanel((Resources) GWT.create(Resources.class), "Shared by me", false); |
|
137 | 145 |
/* |
138 | 146 |
* Create the tree using the model. We use <code>null</code> as the default |
139 | 147 |
* value of the root node. The default value will be passed to |
... | ... | |
143 | 151 |
CellTree tree = new CellTree(model, null, res); |
144 | 152 |
tree.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED); |
145 | 153 |
|
146 |
initWidget(tree); |
|
154 |
panel.add(tree); |
|
155 |
initWidget(panel); |
|
147 | 156 |
} |
148 | 157 |
|
149 | 158 |
|
Also available in: Unified diff