56 lines
1.4 KiB
Java
56 lines
1.4 KiB
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.portlets.widgets.wsexplorer.client.view;
|
|
|
|
import org.gcube.portlets.widgets.wsexplorer.client.WorkspaceExplorerConstants;
|
|
|
|
import com.github.gwtbootstrap.client.ui.NavWidget;
|
|
import com.github.gwtbootstrap.client.ui.constants.IconType;
|
|
import com.google.gwt.core.client.GWT;
|
|
import com.google.gwt.dom.client.Style.Unit;
|
|
import com.google.gwt.uibinder.client.UiBinder;
|
|
import com.google.gwt.uibinder.client.UiField;
|
|
import com.google.gwt.user.client.ui.Composite;
|
|
import com.google.gwt.user.client.ui.Widget;
|
|
|
|
/**
|
|
*
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
|
* Jun 24, 2015
|
|
*/
|
|
public class Navigation extends Composite{
|
|
|
|
private static NavigationUiBinder uiBinder = GWT.create(NavigationUiBinder.class);
|
|
|
|
@UiField
|
|
NavWidget home;
|
|
|
|
@UiField
|
|
NavWidget vre_folder;
|
|
|
|
/**
|
|
* The Interface BreadcrumbsUiBinder.
|
|
*
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
|
* Jun 23, 2015
|
|
*/
|
|
interface NavigationUiBinder extends UiBinder<Widget, Navigation> {
|
|
}
|
|
|
|
/**
|
|
*
|
|
*/
|
|
public Navigation() {
|
|
initWidget(uiBinder.createAndBindUi(this));
|
|
getElement().getStyle().setMarginLeft(5.0, Unit.PX);
|
|
home.setActive(true);
|
|
home.setText(WorkspaceExplorerConstants.HOME_LABEL);
|
|
home.setIcon(IconType.HOME);
|
|
|
|
vre_folder.setActive(true);
|
|
vre_folder.setText(WorkspaceExplorerConstants.VRE_FOLDERS_LABEL);
|
|
vre_folder.setIcon(IconType.FOLDER_OPEN_ALT);
|
|
}
|
|
}
|