changed order of bottom icons

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace@95680 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2014-05-14 13:48:33 +00:00
parent fbc5357a79
commit 9c7606b033
1 changed files with 20 additions and 22 deletions

View File

@ -15,6 +15,7 @@ import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.widget.Text; import com.extjs.gxt.ui.client.widget.Text;
import com.extjs.gxt.ui.client.widget.button.Button; import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.form.TextField; import com.extjs.gxt.ui.client.widget.form.TextField;
import com.extjs.gxt.ui.client.widget.menu.SeparatorMenuItem;
import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem; import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem;
import com.extjs.gxt.ui.client.widget.toolbar.SeparatorToolItem; import com.extjs.gxt.ui.client.widget.toolbar.SeparatorToolItem;
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar; import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
@ -56,6 +57,18 @@ public class GxtBottomToolBarItem extends ToolBar{
private void initToolbar(){ private void initToolbar(){
btnGetTrash = new Button("Trash");
btnGetTrash.setIcon(Resources.getTrashEmpty());
btnGetTrash.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
AppController.getEventBus().fireEvent(new TrashEvent(WorkspaceTrashOperation.SHOW, null));
}
});
bHistory = new Button(HISTORY); bHistory = new Button(HISTORY);
bHistory.setIcon(Resources.getIconHistory()); bHistory.setIcon(Resources.getIconHistory());
@ -94,9 +107,7 @@ public class GxtBottomToolBarItem extends ToolBar{
} }
}); });
add(btnGetInfo); aclDivInfo = new ACLDivInfo("", null);
add(new SeparatorToolItem());
add(bHistory);
//COMMENTED AT 29/08/2013 //COMMENTED AT 29/08/2013
// add(new SeparatorToolItem()); // add(new SeparatorToolItem());
@ -104,25 +115,12 @@ public class GxtBottomToolBarItem extends ToolBar{
add(new FillToolItem());
aclDivInfo = new ACLDivInfo("", null);
add(aclDivInfo);
btnGetTrash = new Button("Trash");
btnGetTrash.setIcon(Resources.getTrashEmpty());
btnGetTrash.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
AppController.getEventBus().fireEvent(new TrashEvent(WorkspaceTrashOperation.SHOW, null));
}
});
add(new FillToolItem());
add(btnGetTrash); add(btnGetTrash);
add(new SeparatorMenuItem());
add(btnGetInfo);
add(bHistory);
add(new FillToolItem());
add(aclDivInfo);
enableInfoHistoryButtons(false); enableInfoHistoryButtons(false);