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:
parent
14bb58b5dc
commit
f57b8b133b
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue