task_21363 #1
|
@ -3,7 +3,6 @@ package org.gcube.portlets.widgets.ckancontentmoderator.client.ui;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.gcube.portlets.widgets.ckancontentmoderator.client.resources.ContentModeratorWidgetResources;
|
|
||||||
import org.gcube.portlets.widgets.ckancontentmoderator.client.ui.util.UtilFunct;
|
import org.gcube.portlets.widgets.ckancontentmoderator.client.ui.util.UtilFunct;
|
||||||
|
|
||||||
import com.github.gwtbootstrap.client.ui.Icon;
|
import com.github.gwtbootstrap.client.ui.Icon;
|
||||||
|
@ -21,7 +20,6 @@ import com.google.gwt.event.dom.client.LoadHandler;
|
||||||
import com.google.gwt.uibinder.client.UiBinder;
|
import com.google.gwt.uibinder.client.UiBinder;
|
||||||
import com.google.gwt.uibinder.client.UiField;
|
import com.google.gwt.uibinder.client.UiField;
|
||||||
import com.google.gwt.user.client.Element;
|
import com.google.gwt.user.client.Element;
|
||||||
import com.google.gwt.user.client.ui.AbstractImagePrototype;
|
|
||||||
import com.google.gwt.user.client.ui.Composite;
|
import com.google.gwt.user.client.ui.Composite;
|
||||||
import com.google.gwt.user.client.ui.Widget;
|
import com.google.gwt.user.client.ui.Widget;
|
||||||
|
|
||||||
|
@ -91,6 +89,16 @@ public class MainTabPanel extends Composite {
|
||||||
public void onLoad(LoadEvent event) {
|
public void onLoad(LoadEvent event) {
|
||||||
tab.setIcon(IconType.BOOK);
|
tab.setIcon(IconType.BOOK);
|
||||||
setNoSpinner(tab);
|
setNoSpinner(tab);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
tab.addClickHandler(new ClickHandler() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onClick(ClickEvent event) {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
Icon icon = new Icon(IconType.REMOVE);
|
Icon icon = new Icon(IconType.REMOVE);
|
||||||
icon.setTitle("Close this tab");
|
icon.setTitle("Close this tab");
|
||||||
|
@ -111,16 +119,6 @@ public class MainTabPanel extends Composite {
|
||||||
|
|
||||||
icon.addDomHandler(clickHandler, ClickEvent.getType());
|
icon.addDomHandler(clickHandler, ClickEvent.getType());
|
||||||
tab.addDecorate(icon);
|
tab.addDecorate(icon);
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
tab.addClickHandler(new ClickHandler() {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(ClickEvent event) {
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
String shortTitle = UtilFunct.ellipsis(heading, 20, false);
|
String shortTitle = UtilFunct.ellipsis(heading, 20, false);
|
||||||
tab.asWidget().setTitle(heading);
|
tab.asWidget().setTitle(heading);
|
||||||
|
|
Loading…
Reference in New Issue