List of usage examples for com.google.gwt.user.client.ui ListBox addChangeListener
@Deprecated public void addChangeListener(ChangeListener listener)
From source file:ca.aeso.evq.client.widgets.DatePicker.java
License:Apache License
private Widget drawControls(ListBox names, Label name, int prev, int next, int set) { HorizontalPanel hp = new HorizontalPanel(); hp.setHorizontalAlignment(HorizontalPanel.ALIGN_CENTER); hp.addStyleName(STYLE_CONTROL_BLOCK); if (names == dateTable.monthNames()) { monthAction = set;//from w ww .j a va2s .c om } else { yearAction = set; } // move left // if (!showYearMonthListing || set == ACTION_SET_MONTH) { // DatePickerCell left = new DatePickerCell("\u00ab"); // \u00ab is << // left.setType(LocaleCalendarUtils.TYPE_CONTROL); // left.setValue(prev); // left.addStyleName(STYLE_CONTROL); // left.addClickListener(this); // hp.add(left); // } // Need list box or not if (showYearMonthListing) { names.setVisibleItemCount(1); names.addStyleName(STYLE_CONTROL_MENU); names.addChangeListener(this); hp.add(names); } else { name.addStyleName(STYLE_TITLE); hp.add(name); } // move right // if (!showYearMonthListing || set == ACTION_SET_MONTH) { // DatePickerCell right = new DatePickerCell("\u00bb"); // \u00ab is >> // right.setType(LocaleCalendarUtils.TYPE_CONTROL); // right.setValue(next); // right.addStyleName(STYLE_CONTROL); // right.addClickListener(this); // hp.add(right); // } return hp; }
From source file:cazcade.vortex.widgets.client.misc.toolbar.RichTextToolbar.java
License:Apache License
@Nonnull private ListBox createColorList(final String caption) { final ListBox lb = new ListBox(); lb.addChangeListener(listener); lb.setVisibleItemCount(1);/*from w w w.j ava2s.c o m*/ lb.addItem(caption); lb.addItem(strings.white(), "white"); lb.addItem(strings.black(), "black"); lb.addItem(strings.red(), "red"); lb.addItem(strings.green(), "green"); lb.addItem(strings.yellow(), "yellow"); lb.addItem(strings.blue(), "blue"); return lb; }
From source file:cazcade.vortex.widgets.client.misc.toolbar.RichTextToolbar.java
License:Apache License
@Nonnull private ListBox createFontList() { final ListBox lb = new ListBox(); lb.addChangeListener(listener); lb.setVisibleItemCount(1);// ww w . ja v a 2s . co m lb.addItem(strings.font(), ""); lb.addItem(strings.normal(), ""); lb.addItem("Times New Roman", "Times New Roman"); lb.addItem("Arial", "Arial"); lb.addItem("Courier New", "Courier New"); lb.addItem("Georgia", "Georgia"); lb.addItem("Trebuchet", "Trebuchet"); lb.addItem("Verdana", "Verdana"); return lb; }
From source file:cazcade.vortex.widgets.client.misc.toolbar.RichTextToolbar.java
License:Apache License
@Nonnull private ListBox createFontSizes() { final ListBox lb = new ListBox(); lb.addChangeListener(listener); lb.setVisibleItemCount(1);/*w w w .j a va 2s . c om*/ lb.addItem(strings.size()); lb.addItem(strings.xxsmall()); lb.addItem(strings.xsmall()); lb.addItem(strings.small()); lb.addItem(strings.medium()); lb.addItem(strings.large()); lb.addItem(strings.xlarge()); lb.addItem(strings.xxlarge()); return lb; }
From source file:cc.alcina.framework.gwt.client.widget.richtext.RichTextToolbar.java
License:Apache License
private ListBox createColorList(String caption) { ListBox lb = new ListBox(); lb.addChangeListener(listener); lb.setVisibleItemCount(1);/* ww w . j a v a2s . c o m*/ lb.addItem(caption); lb.addItem(strings.white(), "white"); lb.addItem(strings.black(), "black"); lb.addItem(strings.red(), "red"); lb.addItem(strings.green(), "green"); lb.addItem(strings.yellow(), "yellow"); lb.addItem(strings.blue(), "blue"); return lb; }
From source file:cc.alcina.framework.gwt.client.widget.richtext.RichTextToolbar.java
License:Apache License
private ListBox createFontList() { ListBox lb = new ListBox(); lb.addChangeListener(listener); lb.setVisibleItemCount(1);//from w w w .j a v a 2 s . c om lb.addItem(strings.font(), ""); lb.addItem(strings.normal(), ""); lb.addItem("Times New Roman", "Times New Roman"); lb.addItem("Arial", "Arial"); lb.addItem("Courier New", "Courier New"); lb.addItem("Georgia", "Georgia"); lb.addItem("Trebuchet", "Trebuchet"); lb.addItem("Verdana", "Verdana"); return lb; }
From source file:cc.alcina.framework.gwt.client.widget.richtext.RichTextToolbar.java
License:Apache License
private ListBox createFontSizes() { ListBox lb = new ListBox(); lb.addChangeListener(listener); lb.setVisibleItemCount(1);/*w ww . ja v a 2 s. com*/ lb.addItem(strings.size()); lb.addItem(strings.xxsmall()); lb.addItem(strings.xsmall()); lb.addItem(strings.small()); lb.addItem(strings.medium()); lb.addItem(strings.large()); lb.addItem(strings.xlarge()); lb.addItem(strings.xxlarge()); return lb; }
From source file:com.apress.progwt.client.college.gui.ext.RichTextToolbar.java
License:Apache License
private ListBox createColorList(String caption) { ListBox lb = new ListBox(); lb.addChangeListener(listener); lb.setVisibleItemCount(1);/*from w ww . j ava 2 s .c o m*/ lb.addItem(caption); lb.addItem(strings.white(), "white"); lb.addItem(strings.black(), "black"); lb.addItem(strings.red(), "red"); lb.addItem(strings.green(), "green"); lb.addItem(strings.yellow(), "yellow"); lb.addItem(strings.blue(), "blue"); return lb; }
From source file:com.apress.progwt.client.college.gui.ext.RichTextToolbar.java
License:Apache License
private ListBox createFontList() { ListBox lb = new ListBox(); lb.addChangeListener(listener); lb.setVisibleItemCount(1);//from w w w .j av a2 s.com lb.addItem(strings.font(), ""); lb.addItem(strings.normal(), ""); lb.addItem("Times New Roman", "Times New Roman"); lb.addItem("Arial", "Arial"); lb.addItem("Courier New", "Courier New"); lb.addItem("Georgia", "Georgia"); lb.addItem("Trebuchet", "Trebuchet"); lb.addItem("Verdana", "Verdana"); return lb; }
From source file:com.apress.progwt.client.college.gui.ext.RichTextToolbar.java
License:Apache License
private ListBox createFontSizes() { ListBox lb = new ListBox(); lb.addChangeListener(listener); lb.setVisibleItemCount(1);// ww w . jav a 2 s . c o m lb.addItem(strings.size()); lb.addItem(strings.xxsmall()); lb.addItem(strings.xsmall()); lb.addItem(strings.small()); lb.addItem(strings.medium()); lb.addItem(strings.large()); lb.addItem(strings.xlarge()); lb.addItem(strings.xxlarge()); return lb; }