Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-wizard-widget@99023 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
2fafe206b1
commit
c4b9ec9537
|
@ -6,18 +6,22 @@ package org.gcube.portlets.user.td.wizardwidget.client;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
||||||
|
import org.gcube.portlets.user.td.wizardwidget.client.dataresource.ResourceBundle;
|
||||||
import org.gcube.portlets.user.td.wizardwidget.client.util.ErrorMessageBox;
|
import org.gcube.portlets.user.td.wizardwidget.client.util.ErrorMessageBox;
|
||||||
|
|
||||||
import com.allen_sauer.gwt.log.client.Log;
|
import com.allen_sauer.gwt.log.client.Log;
|
||||||
import com.google.gwt.core.client.Callback;
|
import com.google.gwt.core.client.Callback;
|
||||||
import com.google.gwt.user.client.Command;
|
import com.google.gwt.user.client.Command;
|
||||||
import com.google.gwt.user.client.ui.Widget;
|
import com.google.gwt.user.client.ui.Widget;
|
||||||
import com.google.web.bindery.event.shared.SimpleEventBus;
|
|
||||||
import com.google.web.bindery.event.shared.EventBus;
|
import com.google.web.bindery.event.shared.EventBus;
|
||||||
|
import com.google.web.bindery.event.shared.SimpleEventBus;
|
||||||
|
import com.sencha.gxt.cell.core.client.ButtonCell.IconAlign;
|
||||||
import com.sencha.gxt.core.client.resources.ThemeStyles;
|
import com.sencha.gxt.core.client.resources.ThemeStyles;
|
||||||
|
import com.sencha.gxt.core.client.util.Margins;
|
||||||
import com.sencha.gxt.widget.core.client.Dialog;
|
import com.sencha.gxt.widget.core.client.Dialog;
|
||||||
import com.sencha.gxt.widget.core.client.Window;
|
import com.sencha.gxt.widget.core.client.Window;
|
||||||
import com.sencha.gxt.widget.core.client.button.TextButton;
|
import com.sencha.gxt.widget.core.client.button.TextButton;
|
||||||
|
import com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutData;
|
||||||
import com.sencha.gxt.widget.core.client.container.CardLayoutContainer;
|
import com.sencha.gxt.widget.core.client.container.CardLayoutContainer;
|
||||||
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer;
|
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer;
|
||||||
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData;
|
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData;
|
||||||
|
@ -100,14 +104,19 @@ public class WizardWindow extends Window {
|
||||||
toolbar.addStyleName(ThemeStyles.getStyle().borderTop());
|
toolbar.addStyleName(ThemeStyles.getStyle().borderTop());
|
||||||
|
|
||||||
backButton = new TextButton(BUTTONBACKLABEL);
|
backButton = new TextButton(BUTTONBACKLABEL);
|
||||||
|
backButton.setIcon(ResourceBundle.INSTANCE.wizardPrevious());
|
||||||
|
backButton.setIconAlign(IconAlign.LEFT);
|
||||||
|
|
||||||
backButton.setEnabled(false);
|
backButton.setEnabled(false);
|
||||||
backButton.setTabIndex(1001);
|
backButton.setTabIndex(1001);
|
||||||
toolbar.add(backButton);
|
toolbar.add(backButton,new BoxLayoutData(new Margins(1)));
|
||||||
toolbar.add(new FillToolItem());
|
toolbar.add(new FillToolItem());
|
||||||
|
|
||||||
nextButton = new TextButton(BUTTONNEXTLABEL);
|
nextButton = new TextButton(BUTTONNEXTLABEL);
|
||||||
|
nextButton.setIcon(ResourceBundle.INSTANCE.wizardNext());
|
||||||
|
nextButton.setIconAlign(IconAlign.RIGHT);
|
||||||
nextButton.setTabIndex(1000);
|
nextButton.setTabIndex(1000);
|
||||||
toolbar.add(nextButton);
|
toolbar.add(nextButton, new BoxLayoutData(new Margins(1)));
|
||||||
|
|
||||||
toolbar.setLayoutData(new VerticalLayoutData(1, -1));
|
toolbar.setLayoutData(new VerticalLayoutData(1, -1));
|
||||||
container.add(toolbar);
|
container.add(toolbar);
|
||||||
|
@ -268,6 +277,8 @@ public class WizardWindow extends Window {
|
||||||
*/
|
*/
|
||||||
public void setNextButtonToFinish() {
|
public void setNextButtonToFinish() {
|
||||||
nextButton.setText(BUTTONFINISHLABEL);
|
nextButton.setText(BUTTONFINISHLABEL);
|
||||||
|
nextButton.setIcon(ResourceBundle.INSTANCE.wizardGo());
|
||||||
|
nextButton.setIconAlign(IconAlign.RIGHT);
|
||||||
nextButtonAction = new Command() {
|
nextButtonAction = new Command() {
|
||||||
|
|
||||||
public void execute() {
|
public void execute() {
|
||||||
|
|
|
@ -27,5 +27,25 @@ public interface ResourceBundle extends ClientBundle {
|
||||||
|
|
||||||
@Source("resources/arrow-refresh_32.png")
|
@Source("resources/arrow-refresh_32.png")
|
||||||
ImageResource refresh32();
|
ImageResource refresh32();
|
||||||
|
|
||||||
|
@Source("resources/wizard-next.png")
|
||||||
|
ImageResource wizardNext();
|
||||||
|
|
||||||
|
@Source("resources/wizard-next_32.png")
|
||||||
|
ImageResource wizardNext32();
|
||||||
|
|
||||||
|
@Source("resources/wizard-previous.png")
|
||||||
|
ImageResource wizardPrevious();
|
||||||
|
|
||||||
|
@Source("resources/wizard-previous_32.png")
|
||||||
|
ImageResource wizardPrevious32();
|
||||||
|
|
||||||
|
@Source("resources/wizard-go.png")
|
||||||
|
ImageResource wizardGo();
|
||||||
|
|
||||||
|
@Source("resources/wizard-go_32.png")
|
||||||
|
ImageResource wizardGo32();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 502 B |
Binary file not shown.
After Width: | Height: | Size: 656 B |
Binary file not shown.
After Width: | Height: | Size: 474 B |
Binary file not shown.
After Width: | Height: | Size: 559 B |
Binary file not shown.
After Width: | Height: | Size: 431 B |
Binary file not shown.
After Width: | Height: | Size: 573 B |
Loading…
Reference in New Issue