return captionHTML;
}
-// protected void onWindowResized(int height) {
-// // Adjust the split panel to take up the available room in the window.
-// int newHeight = height - splitPanel.getAbsoluteTop() - 60;
-// if (newHeight < 1)
-// newHeight = 1;
-// splitPanel.setHeight("" + newHeight);
-// inner.setHeight("" + newHeight);
-// }
+ protected void onWindowResized(int height) {
+ // Adjust the split panel to take up the available room in the window.
+ int newHeight = height - splitPanel.getAbsoluteTop() - 60;
+ if (newHeight < 1)
+ newHeight = 1;
+ splitPanel.setHeight("" + newHeight);
+ inner.setHeight("" + newHeight);
+ }
@Override
public void onResize(ResizeEvent event) {
int height = event.getHeight();
-// onWindowResized(height);
+ onWindowResized(height);
}
/**
deselectOthers(mysharedTreeView, mysharedTreeSelectionModel);
upload.setEnabled(false);
updateSharedFolder(mysharedTreeSelectionModel.getSelectedObject(), true);
+ mysharedTreeView.addStyleName("cellTreeWidget-selectedTree");
}
- }
+ else
+ mysharedTreeView.removeStyleName("cellTreeWidget-selectedTree");
+ }
});
selectionModels.add(mysharedTreeSelectionModel);
mysharedTreeViewModel = new MysharedTreeViewModel(Pithos.this, mysharedTreeSelectionModel);
deselectOthers(otherSharedTreeView, otherSharedTreeSelectionModel);
applyPermissions(otherSharedTreeSelectionModel.getSelectedObject());
updateOtherSharedFolder(otherSharedTreeSelectionModel.getSelectedObject(), true);
+ otherSharedTreeView.addStyleName("cellTreeWidget-selectedTree");
}
- }
+ else
+ otherSharedTreeView.removeStyleName("cellTreeWidget-selectedTree");
+ }
});
selectionModels.add(otherSharedTreeSelectionModel);
otherSharedTreeViewModel = new OtherSharedTreeViewModel(Pithos.this, otherSharedTreeSelectionModel);