Git Product home page Git Product logo

gwtbootstrap3-extras's Introduction

GwtBootstrap3 Build Status Maven Central

NOTE: This project is inactive.

GWTBootstrap3 is a wrapper for Twitter Bootstrap, which helps you develop responsive, mobile first HTML, CSS, and JS projects on the web using Java and Google Web Toolkit (GWT).

Add GWTBootstrap3 to your project

You can easily add GWTBootstrap3 to your project by including the library as a Maven dependency.

<dependency>
    <groupId>org.gwtbootstrap3</groupId>
    <artifactId>gwtbootstrap3</artifactId>
    <version>VERSION</version>
    <scope>provided</scope>
</dependency>

Final Release

  • 1.0.1 - Released on 14 November 2019.
    • Based on Bootstrap v3.4.1
  • 1.0.0 - Released on 26 August 2019.
    • Based on Bootstrap v3.4.0
  • Demo - The GWTBootstrap3 1.0.0 Demo.
  • API Docs - The GWTBootstrap3 1.0.0 API Javadoc.
  • Supported Features - Current releases supported features.

Resources

  • Project Wiki - Help with getting started and other useful project help. Join the chat at https://gitter.im/gwtbootstrap3/gwtbootstrap3

gwtbootstrap3-extras's People

Contributors

ahumellihuk avatar arlol avatar bauna avatar bendol avatar crevete avatar czocher avatar emilburzo avatar enricoor avatar frankw76 avatar gmsa avatar gslender avatar jbrun avatar jeffisenhart avatar jgodi avatar jwest011 avatar kainaer avatar koljascasino avatar markonikolic avatar mharray avatar michalroszko avatar nemoo2580 avatar porcelli avatar povilasb avatar rishirajanand avatar sjardine avatar svenjacobs avatar w007878 avatar wfxjeff avatar yuppyavd avatar zlamalp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gwtbootstrap3-extras's Issues

Growl should be added to Demo

https://github.com/gwtbootstrap3/gwtbootstrap3-extras/tree/master/src/main/resources/org/gwtbootstrap3/extras/growl

Select's "Option" should have setter/getter for object

Select Option should have a setter/getter for a generic object. In doing so, the developer can store a serialized object (a DTO/Database proxy entity) in the selected option.

Another approach would allow the developer to pass in a generic "Object" instead of the "Option". Then, the developer could specify the label property of the Object to display on the Select control (label="ingredients" or label="name").

That's how Flex allows the Select to accept generic objects, while still returning a serialized DTO upon request.

http://flex.apache.org/asdoc/spark/components/ComboBox.html

Growl should accept iconStyle as an IconType enum

$.growl( { 
  title: 'I have a title', 
  icon: 'glyphicon glyphicon-info-sign', 
  message: 'This growl contains both a Title and a Icon'  
});
public static void growl(String title, String message, String iconStyle, GrowlOptions options) {
        if (options == null) {
            show(title, message, iconStyle);
        } else {
            show(title, message, iconStyle, options);
        }

    }

See: http://bootstrap-growl.remabledesigns.com/
See: https://github.com/gwtbootstrap3/gwtbootstrap3-extras/blob/master/src/main/java/org/gwtbootstrap3/extras/growl/client/ui/Growl.java

DateTimePicker can't be converted into js

Uncaught exception appearedcom.google.gwt.core.client.JavaScriptException: (TypeError) @org.gwtbootstrap3.extras.datetimepicker.client.ui.base.DateTimeBoxBase::configure(Lcom/google/gwt/dom/client/Element;ZZZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)([JavaScript object(122), bool: true, bool: true, bool: false, string: 'fa fa-clock-o', string: 'fa fa-calendar', string: 'fa fa-arrow-up', string: 'fa fa-arrow-down']): Object [object Object] has no method 'datetimepicker'
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:304)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at org.gwtbootstrap3.extras.datetimepicker.client.ui.base.DateTimeBoxBase.configure(DateTimeBoxBase.java)
at org.gwtbootstrap3.extras.datetimepicker.client.ui.base.DateTimeBoxBase.configure(DateTimeBoxBase.java:298)
at org.gwtbootstrap3.extras.datetimepicker.client.ui.base.DateTimeBoxBase.configure(DateTimeBoxBase.java:293)
at org.gwtbootstrap3.extras.datetimepicker.client.ui.base.DateTimeBoxBase.onLoad(DateTimeBoxBase.java:271)
at com.google.gwt.user.client.ui.Widget.onAttach(Widget.java:359)
at com.google.gwt.user.client.ui.Widget.setParent(Widget.java:484)
at com.google.gwt.user.client.ui.Panel.adopt(Panel.java:124)
at com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:105)
at com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:97)

DateTimePicker - setValue() in constructor

I suggest to remove this line:

public DateTimeBoxBase() {
    textBox = new TextBox();
    setElement((Element) textBox.getElement());
    setFormat(format);
    setValue(new Date());   // <- remove
}

On a web page with a lot of DateTimeBox objects there is always a kind of flicker when a DateTimeBox is newly created and then set to a new value immediately.

Add a name in the Select widget so we can submit it...

Or, if the functionality is already there, how do I specify a name in the html select tag.

I just can't seem to be able to correctly submit a Select widget. Looking through the generated html code the select lacks a valid name:

<select class="bootstrap-select" style="display: none;">
...
...
</select>

DateTimeBox doesn't work correctly when tabbing through fields in Chrome 34

It seems that either the DateTimeBox doesn't implement the correct tabIndex or that it somehow resets the tabindex to 0 when trying to tab through it. You can see the issue on the demo page. https://gwtbootstrap3.github.io/gwtbootstrap3-demo/#dateTimePicker

Attempting to tab from the first datebox to the second results in tabbing up to the header. If you continue to tab through the header you will make it back to the date box and the process will start over again.

Can't set select options after component initialization

Hello,

I tried to set option values on select component created by UI binder. Select is still empty even when I call selecBox.seValues("test", "test2") or selecBox.setValues(option1, option2). I tried to call selecBox.refresh() after values set and still no success (tried version 0.6 and 0.7-snapshot).

UI binder code:
..........
"xmlns:select="urn:import:org.gwtbootstrap3.extras.select.client.ui"
.........
<select:Select ui:field="selecBox">
/select:Select

DateTimeBox should implement HasValue<Date>

DateTimeBox should implement HasValue, as GWT does for DateBox. This would create a consistent behavior and implementation, since the Interfaces in the Presenters tend to reference the view's controls by HasValue, HasValue, HasClickHandlers, etc.

Oops. This should be part of "Extras".

Datetimepicker sets time to midnight

When selecting 12:00, the getValue() method returns the correct year, month and day but 00:00. Everything else works as it should, 13:00 => 13:00 and so on.

My parameters are forceParse="false" autoClose="true" startView="MONTH" minView="DAY" maxView="MONTH" language="DE" format="dd.mm.yyyy HH:ii" minuteStep="60"

Inherits GwtBootstrap3 or GwtBootstrap3NoTheme conflicts

DateTimePicker.gwt.xml inherits GwtBootstrap3,
this module includes theme files.

If I use DateTimePicker and GwtBootstrap3NoTheme in my project.
It will cause a conflict.

A solution is create a DateTimePickerNoTheme.gwt.xml.
Is this ok?

Thanks.

Select cannot be cast to Custom Panel

So I'm receiving a hugely cryptic error in a Composite class I've made to hold an input group for a select box.

I receive this error:

16:35:09.885 [ERROR] [recondohismodern] Uncaught exception escaped
com.google.gwt.event.shared.UmbrellaException: Exception caught: org.gwtbootstrap3.extras.select.client.ui.Select cannot be cast to com.recondotech.recondohismodern.client.elements.HISListComposite
    at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:129)
    at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:129)
    at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java:125)
    at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java:177)
    at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1467)
    at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1406)
    at com.google.gwt.user.client.impl.DOMImplStandard.dispatchEvent(DOMImplStandard.java:323)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
    at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:347)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:304)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
    at org.gwtbootstrap3.extras.select.client.ui.Select.setValue(Select.java)
    at org.gwtbootstrap3.extras.select.client.ui.Select.setValue(Select.java:231)
    at org.gwtbootstrap3.extras.select.client.ui.Select.setValue(Select.java:244)
    at com.recondotech.recondohismodern.client.elements.HISListComposite.setOptions(HISListComposite.java:214)
    at com.recondotech.recondohismodern.client.panels.HISPanel.populateFacility(HISPanel.java:114)
    at com.recondotech.recondohismodern.client.panels.HISPanel.access$1(HISPanel.java:109)
    at com.recondotech.recondohismodern.client.panels.HISPanel$1.onSuccess(HISPanel.java:100)
    at com.recondotech.recondohismodern.client.panels.HISPanel$1.onSuccess(HISPanel.java:1)
    at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:232)
    at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:259)
    at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:412)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
    at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:347)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassCastException: org.gwtbootstrap3.extras.select.client.ui.Select cannot be cast to com.recondotech.recondohismodern.client.elements.HISListComposite
    at com.recondotech.recondohismodern.client.panels.HISPanel$SelectListChangeHandler.onChange(HISPanel.java:147)
    at com.google.gwt.event.dom.client.ChangeEvent.dispatch(ChangeEvent.java:56)
    at com.google.gwt.event.dom.client.ChangeEvent.dispatch(ChangeEvent.java:1)
    at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)
    at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40)
    at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193)
    at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88)
    at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127)
    at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:129)
    at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java:125)
    at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java:177)
    at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1467)
    at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1406)
    at com.google.gwt.user.client.impl.DOMImplStandard.dispatchEvent(DOMImplStandard.java:323)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
    at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:347)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:304)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
    at org.gwtbootstrap3.extras.select.client.ui.Select.setValue(Select.java)
    at org.gwtbootstrap3.extras.select.client.ui.Select.setValue(Select.java:231)
    at org.gwtbootstrap3.extras.select.client.ui.Select.setValue(Select.java:244)
    at com.recondotech.recondohismodern.client.elements.HISListComposite.setOptions(HISListComposite.java:214)
    at com.recondotech.recondohismodern.client.panels.HISPanel.populateFacility(HISPanel.java:114)
    at com.recondotech.recondohismodern.client.panels.HISPanel.access$1(HISPanel.java:109)
    at com.recondotech.recondohismodern.client.panels.HISPanel$1.onSuccess(HISPanel.java:100)
    at com.recondotech.recondohismodern.client.panels.HISPanel$1.onSuccess(HISPanel.java:1)
    at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:232)
    at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:259)
    at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:412)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
    at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:347)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Unknown Source)

at this line in my code:

selectList.setValue(oldSelectedOption);

This is my code:

  public void setOptions(Map<String, List<KeyValue>> map) {
    System.out.println("------------Option Set------------");
    List<KeyValue> keyValues = map.get(domain);

    if (keyValues != null && !keyValues.isEmpty()) {
      List<Option> tempOptionList = new ArrayList<>();

      Collections.sort(keyValues, new KeyValueSorter());

      for (KeyValue kv : keyValues) {
        Option opt = new Option();
        opt.setText(kv.value);
        opt.setId(kv.key);
        tempOptionList.add(opt);
      }

      Option oldSelectedOption = getSelectedOption();
      tempOptionList.add(oldSelectedOption);

      // if the lists aren't we need to remove all the old values 
      // from the dropdown and then add all the new values
      selectList.add(oldSelectedOption);
      if (!tempOptionList.equals(optionList)) {
        for (Option option : optionList) {
          selectList.remove(option);
        }
        for (Option option : tempOptionList) {
          selectList.add(option);
          optionList.add(option);
        }
      }

      selectList.setValue(oldSelectedOption);
      selectList.refresh();
    }
  }

I have no clue what I'm doing wrong, if it's a problem with Select, or if it's a problem with GWT. If I'm wrong to post this here please let me know, I'm just very frustrated with this right now and I need some help.

Select doesn't layout correctly inside FormGroup

The Select doesn't layout correctly inside of a FormGroup.

I believe the problem is the reference to the Select's class name, instead of the Button Group.

private void doLayout()
{
    FieldSet fieldSet= new FieldSet();
    Select select = new Select<DTO>();
    FormGroup formGroup = new FormGroup();
    FormLabel label = new FormLabel();
    label.setText("Label");
    label.setFor(select.getClass().getName());
    formGroup.add(label);
    formGroup.add(select);
    fieldSet.add(formGroup);
}

Issues with scheduleFixedDelay() in DateTimeBoxBase's setValue()

DateTimeBoxBase's use of scheduleFixedDelay() makes it hard to call setValue() and do a getValue() immediately if there was a preceding setValue() that "blocks" the write. The result of a setValue(A), setValue(B) and getValue() is the value A not B (called in less then 200 ms).

Call

setDate( null ):
setDate( new Date() ):

on this test case:

public void setDate( Date date )
{
  dateBox.setValue( date );
  System.out.println( dateBox.getValue() ); // get after set is returning null not date
  Scheduler.get().scheduleFixedDelay( new Scheduler.RepeatingCommand() {
    @Override public boolean execute() {
      System.out.println( dateBox.getValue() );  // correct date
      return false;
    }
  }, 400 );
}

An alternative implementation of DateTimeBoxBase and setValue() is desirable.

Growl Options should require typed AlertType for Alert Style

To set the Alert Type style, the GrowlOptions currently require the developer to use one of the following:

setDangerType()
setInfoType()
setSuccessType()
setWarningType()

    public final native void setInfoType() /*-{
        this.type = 'info';
    }-*/;

    public final native void setSuccessType() /*-{
        this.type = 'success';
    }-*/;

    public final native void setDangerType() /*-{
        this.type = 'danger';
    }-*/;

    public final native void setWarningType() /*-{
        this.type = 'warning';
    }-*/;

For consistency with the rest of the framework, to pass a parameter in the setter, and to use a typed Enum, these should be consolidated into:

setType(AlertType alertType)

getSelectElement() should be a protected accessor

org.gwtbootstrap3.extras.select.client.ui.Select.

Actual
private SelectElement getSelectElement()

Expected
protected SelectElement getSelectElement()

This may be true with the other private operations in the class, too.

Cannot select specific items in Select

In a select that allows multiple options I cannot select specific indexes via code. I can only (de)select all options. I looked at the Option class but it too does not allow to set the selected attribute. It would be great if this were supported :)

Growl Position Setters have no parameters

setTop works as expected.

  public final native void setTop(boolean top) /*-{
        if (top) {
            this.from = "top";
        } else {
            this.from = "bottom";
        }
    }-*/;


    public final native void setLeft() /*-{
        this.align = "left";
    }-*/;

    public final native void setCenter() /*-{
        this.align = "center";
    }-*/;

    public final native void setRight() /*-{
        this.align = "right";
    }-*/;

DateTimeBox setEndDate doesn't work

I try to set an end date. It just doesnt do anything. Do I have to set a start date also to make it work ? I dont know.

I usef the format they wanted as yyyy-MM-dd

this.date.setEndDate("2014-06-17");

Nothing is disabled. 06-18 and more are still enabled

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.