Revision d4ace10a

b/src/gr/grnet/pithos/web/client/Pithos.java
1356 1356
        selectionModels.add(otherSharedTreeSelectionModel);
1357 1357
        otherSharedTreeViewModel = new OtherSharedTreeViewModel(Pithos.this, otherSharedTreeSelectionModel);
1358 1358
        // #3784 We show it empty...
1359
        otherSharedTreeView = new OtherSharedTreeView(otherSharedTreeViewModel);
1359
        otherSharedTreeView = new OtherSharedTreeView(otherSharedTreeViewModel, true);
1360 1360
        trees.insert(otherSharedTreeView, 1);
1361 1361

  
1362 1362
        LOG("Pithos::createOtherSharedTree(), initializing otherSharedTreeViewModel with a callback");
......
1366 1366
                // #3784 ... then remove the empty stuff and add a new view with the populated model
1367 1367
                trees.remove(otherSharedTreeView);
1368 1368

  
1369
                otherSharedTreeView = new OtherSharedTreeView(otherSharedTreeViewModel);
1369
                otherSharedTreeView = new OtherSharedTreeView(otherSharedTreeViewModel, false);
1370 1370
                trees.insert(otherSharedTreeView, 1);
1371 1371
                treeViews.add(otherSharedTreeView);
1372 1372
                scheduleResfresh();
b/src/gr/grnet/pithos/web/client/PithosDisclosurePanel.java
75 75
		
76 76
		@Source("downArrow.png")
77 77
		ImageResource closed();
78

  
79
        @Source("gr/grnet/pithos/resources/ajax-loader.gif")
80
        ImageResource ajaxLoader();
78 81
	}
79 82
	
80 83
	DisclosurePanel panel;
81 84
	
82 85
	Resources resources;
83
	
84
	public PithosDisclosurePanel(final Resources _resources, final String title, boolean open) {
86

  
87
    final boolean ajaxLoader;
88

  
89
    public PithosDisclosurePanel(final Resources _resources, final String title, boolean open) {
90
        this(_resources, title, open, false);
91
    }
92

  
93
	public PithosDisclosurePanel(final Resources _resources, final String title, boolean open, boolean ajaxLoader) {
94
        this.ajaxLoader = ajaxLoader;
95

  
85 96
		resources = _resources;
86 97
		resources.pithosDisclosurePanelCss().ensureInjected();
87 98
		panel = new DisclosurePanel();
......
111 122
        
112 123
		Image img = new Image(resources.icon());
113 124
		header.add(img);
125
        if(ajaxLoader) {
126
            final Image alImg = new Image(resources.ajaxLoader());
127
            header.add(alImg);
128
        }
114 129
		header.setCellVerticalAlignment(img, HasVerticalAlignment.ALIGN_MIDDLE);
115 130
		header.setCellWidth(img, "32px");
116 131
		HTML titleHtml = new HTML(title);
b/src/gr/grnet/pithos/web/client/othersharedtree/OtherSharedTreeView.java
154 154

  
155 155
    private CellTree tree;
156 156
    
157
    public OtherSharedTreeView(OtherSharedTreeViewModel viewModel) {
157
    public OtherSharedTreeView(OtherSharedTreeViewModel viewModel, boolean ajaxLoader) {
158 158
        this.model = viewModel;
159 159
        
160
        PithosDisclosurePanel panel = new PithosDisclosurePanel((Resources) GWT.create(Resources.class), Const.TXT_SHARED_WITH_ME, false);
160
        PithosDisclosurePanel panel = new PithosDisclosurePanel((Resources) GWT.create(Resources.class), Const.TXT_SHARED_WITH_ME, false, ajaxLoader);
161 161
        /*
162 162
         * Create the tree using the model. We use <code>null</code> as the default
163 163
         * value of the root node. The default value will be passed to

Also available in: Unified diff