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:
parent
fbc5357a79
commit
9c7606b033
|
@ -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.button.Button;
|
||||
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.SeparatorToolItem;
|
||||
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
|
||||
|
@ -56,6 +57,18 @@ public class GxtBottomToolBarItem extends ToolBar{
|
|||
|
||||
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.setIcon(Resources.getIconHistory());
|
||||
|
||||
|
@ -94,9 +107,7 @@ public class GxtBottomToolBarItem extends ToolBar{
|
|||
}
|
||||
});
|
||||
|
||||
add(btnGetInfo);
|
||||
add(new SeparatorToolItem());
|
||||
add(bHistory);
|
||||
aclDivInfo = new ACLDivInfo("", null);
|
||||
|
||||
//COMMENTED AT 29/08/2013
|
||||
// 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(new SeparatorMenuItem());
|
||||
add(btnGetInfo);
|
||||
add(bHistory);
|
||||
add(new FillToolItem());
|
||||
add(aclDivInfo);
|
||||
|
||||
enableInfoHistoryButtons(false);
|
||||
|
||||
|
|
Loading…
Reference in New Issue