Revision c46c9e31 src/gr/grnet/pithos/web/client/grouptree/GroupTreeView.java
b/src/gr/grnet/pithos/web/client/grouptree/GroupTreeView.java | ||
---|---|---|
38 | 38 |
import gr.grnet.pithos.web.client.FolderContextMenu; |
39 | 39 |
import gr.grnet.pithos.web.client.PithosDisclosurePanel; |
40 | 40 |
import gr.grnet.pithos.web.client.TreeView; |
41 |
import gr.grnet.pithos.web.client.PithosDisclosurePanel.Style; |
|
41 | 42 |
import gr.grnet.pithos.web.client.foldertree.Folder; |
42 | 43 |
|
43 | 44 |
import com.google.gwt.core.client.GWT; |
... | ... | |
58 | 59 |
public class GroupTreeView extends Composite implements TreeView { |
59 | 60 |
|
60 | 61 |
public void updateChildren(Group group) { |
61 |
TreeNode root = ((CellTree) getWidget()).getRootTreeNode();
|
|
62 |
TreeNode root = tree.getRootTreeNode();
|
|
62 | 63 |
if (group != null) |
63 | 64 |
updateChildren(root, group); |
64 | 65 |
else { |
... | ... | |
122 | 123 |
|
123 | 124 |
static Images images = GWT.create(Images.class); |
124 | 125 |
|
125 |
interface Resources extends gr.grnet.pithos.web.client.PithosDisclosurePanel.Resources {
|
|
126 |
interface Style extends gr.grnet.pithos.web.client.PithosDisclosurePanel.Style {
|
|
126 | 127 |
@Override |
128 |
String header(); |
|
129 |
} |
|
130 |
|
|
131 |
interface Resources extends gr.grnet.pithos.web.client.PithosDisclosurePanel.Resources { |
|
132 |
@Override |
|
133 |
@Source("PithosGroupDisclosurePanel.css") |
|
134 |
Style pithosDisclosurePanelCss(); |
|
135 |
|
|
136 |
@Override |
|
127 | 137 |
@Source("gr/grnet/pithos/resources/groups22.png") |
128 | 138 |
ImageResource icon(); |
129 | 139 |
} |
... | ... | |
136 | 146 |
} |
137 | 147 |
|
138 | 148 |
private GroupTreeViewModel model; |
149 |
|
|
150 |
private CellTree tree; |
|
139 | 151 |
|
140 | 152 |
public GroupTreeView(GroupTreeViewModel viewModel) { |
141 | 153 |
this.model = viewModel; |
... | ... | |
147 | 159 |
* CustomTreeModel#getNodeInfo(); |
148 | 160 |
*/ |
149 | 161 |
CellTree.Resources res = GWT.create(BasicResources.class); |
150 |
CellTree tree = new CellTree(model, null, res);
|
|
162 |
tree = new CellTree(model, null, res); |
|
151 | 163 |
tree.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED); |
152 | 164 |
|
153 | 165 |
panel.add(tree); |
Also available in: Unified diff