topbar icons renewed, added refresh button still missing handler though
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace@81120 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
88767424d6
commit
c8e78b701a
|
@ -8,6 +8,9 @@ package org.gcube.portlets.user.workspace.client;
|
|||
public class ConstantsPortlet {
|
||||
|
||||
// ToolBar button
|
||||
public static final String CATEGORIZE = "Categorize";
|
||||
|
||||
public static final String REFRESH = "Refresh";
|
||||
public static final String ADDFOLDER = "New Folder";
|
||||
public static final String REMOVEITEM = "Remove";
|
||||
public static final String RENAMEITEM = "Rename";
|
||||
|
|
|
@ -40,6 +40,7 @@ import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
|
|||
public class GxtToolBarItemFunctionality {
|
||||
|
||||
private Button btnAddFolder = null;
|
||||
private Button btnRefreshFolder = null;
|
||||
private Button btnRemoveItem = null;
|
||||
private Button btnRenameItem = null;
|
||||
private Button btnUploadFile = null;
|
||||
|
@ -71,7 +72,7 @@ public class GxtToolBarItemFunctionality {
|
|||
|
||||
private void initToolBar() {
|
||||
|
||||
btnGridView = new ToggleButton("Category View", Resources.getIconGridView());
|
||||
btnGridView = new ToggleButton(ConstantsPortlet.CATEGORIZE, Resources.getIconGridView());
|
||||
btnGridView.setScale(ButtonScale.SMALL);
|
||||
btnGridView.setIconAlign(IconAlign.TOP);
|
||||
btnGridView.toggle(true);
|
||||
|
@ -94,6 +95,14 @@ public class GxtToolBarItemFunctionality {
|
|||
btnUploadFile.setArrowAlign(ButtonArrowAlign.BOTTOM);
|
||||
|
||||
toolBar.add(btnUploadFile);
|
||||
|
||||
btnRefreshFolder = new Button(ConstantsPortlet.REFRESH,
|
||||
Resources.getIconRefresh());
|
||||
btnRefreshFolder.setScale(ButtonScale.SMALL);
|
||||
btnRefreshFolder.setIconAlign(IconAlign.TOP);
|
||||
btnRefreshFolder.setArrowAlign(ButtonArrowAlign.BOTTOM);
|
||||
|
||||
toolBar.add(btnRefreshFolder);
|
||||
|
||||
toolBar.add(new SeparatorToolItem());
|
||||
// btnGetInfo = new Button("Info", Resources.getIconInfo());
|
||||
|
|
Loading…
Reference in New Issue