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) { 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){ if(isSelected){
FileModel lastParent = this.wsPortlet.getToolBarPath().getLastParent(); FileModel lastParent = this.wsPortlet.getToolBarPath().getLastParent();
@ -671,7 +671,7 @@ public class AppController implements SubscriberInterface {
@Override @Override
public void execute() { 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; return toolBarItemFunct;
} }
@ -94,4 +94,8 @@ public class GxtCardLayoutResultPanel extends LayoutContainer{
return activePanel; return activePanel;
} }
public GxtToolBarItemAccounting getToolBarItemDetails() {
return toolBarItemDetails;
}
} }

View File

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