added case create on history

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace@76328 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2013-05-27 16:25:26 +00:00
parent 14bb58b5dc
commit f57b8b133b
3 changed files with 15 additions and 4 deletions

View File

@ -575,8 +575,8 @@ public class AppController implements SubscriberInterface {
private void doElementGridSelected(boolean isSelected, FileModel target) {
wsPortlet.getGxtCardLayoutResultPanel().getToolBarItem().activeButtonsOnSelect(target, isSelected);
wsPortlet.getGxtCardLayoutResultPanel().getToolBarItemFunctionalities().activeButtonsOnSelect(target, isSelected);
wsPortlet.getGxtCardLayoutResultPanel().getToolBarItemDetails().enableButtons(isSelected);
if(isSelected){
FileModel lastParent = this.wsPortlet.getToolBarPath().getLastParent();
@ -671,7 +671,7 @@ public class AppController implements SubscriberInterface {
@Override
public void execute() {
wsPortlet.getGxtCardLayoutResultPanel().getToolBarItem().toggleGridViewButton(instanceWithGrouping);
wsPortlet.getGxtCardLayoutResultPanel().getToolBarItemFunctionalities().toggleGridViewButton(instanceWithGrouping);
}
});

View File

@ -86,7 +86,7 @@ public class GxtCardLayoutResultPanel extends LayoutContainer{
}
public GxtToolBarItemFunctionality getToolBarItem() {
public GxtToolBarItemFunctionality getToolBarItemFunctionalities() {
return toolBarItemFunct;
}
@ -94,4 +94,8 @@ public class GxtCardLayoutResultPanel extends LayoutContainer{
return activePanel;
}
public GxtToolBarItemAccounting getToolBarItemDetails() {
return toolBarItemDetails;
}
}

View File

@ -71,6 +71,8 @@ public class GxtToolBarItemAccounting extends ToolBar{
add(bHistory);
add(new SeparatorToolItem());
add(bRead);
enableButtons(false);
}
public void resetDetails(){
@ -81,6 +83,11 @@ public class GxtToolBarItemAccounting extends ToolBar{
this.txtOwner.setText("");
}
public void enableButtons(boolean enable){
bHistory.setEnabled(enable);
bRead.setEnabled(enable);
}
public void setDetails(String itemName, String description, String dimension, String creationTime, String owner){
this.resetDetails();