51 lines
1.3 KiB
Java
51 lines
1.3 KiB
Java
package org.gcube.portlets.user.geoportaldataentry.client.ui;
|
|
|
|
import com.github.gwtbootstrap.client.ui.NavLink;
|
|
import com.google.gwt.core.client.GWT;
|
|
import com.google.gwt.event.dom.client.ClickEvent;
|
|
import com.google.gwt.event.shared.EventBus;
|
|
import com.google.gwt.uibinder.client.UiBinder;
|
|
import com.google.gwt.uibinder.client.UiField;
|
|
import com.google.gwt.uibinder.client.UiHandler;
|
|
import com.google.gwt.user.client.Window;
|
|
import com.google.gwt.user.client.ui.Composite;
|
|
import com.google.gwt.user.client.ui.Widget;
|
|
|
|
public class GeonaNavigationBar extends Composite {
|
|
|
|
private static GeonaNavigationBarUiBinder uiBinder = GWT.create(GeonaNavigationBarUiBinder.class);
|
|
|
|
interface GeonaNavigationBarUiBinder extends UiBinder<Widget, GeonaNavigationBar> {
|
|
}
|
|
|
|
private EventBus eventBus;
|
|
|
|
public GeonaNavigationBar() {
|
|
initWidget(uiBinder.createAndBindUi(this));
|
|
}
|
|
|
|
public GeonaNavigationBar(EventBus eventBus) {
|
|
this();
|
|
this.eventBus = eventBus;
|
|
bindEvents();
|
|
}
|
|
|
|
private void bindEvents() {
|
|
// TODO Auto-generated method stub
|
|
|
|
}
|
|
|
|
@UiField
|
|
NavLink linkCreateNewProject;
|
|
|
|
public GeonaNavigationBar(String firstName) {
|
|
initWidget(uiBinder.createAndBindUi(this));
|
|
}
|
|
|
|
@UiHandler("linkCreateNewProject")
|
|
void onClick(ClickEvent e) {
|
|
Window.alert("Hello!");
|
|
}
|
|
|
|
}
|