1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    27
    Vote Rating
    0
    billsalvucci is on a distinguished road

      0  

    Default Why doesn't ListView use deferred binding for its Appearance

    Why doesn't ListView use deferred binding for its Appearance


    Code:
    public ListView(ListStore<M> store, ValueProvider<? super M, N> valueProvider) {
        this(store, valueProvider, new ListViewDefaultAppearance<M>());
      }
    Shouldn't this be:
    this(store, valueProvider, GWT.<ListViewAppearance> create(ListViewAppearance.class));


    How can I use my own implementation of ListViewAppearance from my theme?

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Posts
    1,924
    Vote Rating
    55
    Colin Alworth is a jewel in the rough Colin Alworth is a jewel in the rough Colin Alworth is a jewel in the rough

      1  

    Default


    This was a mistake that was fixed before the 3.0.3 release. As a workaround, you may call the appearance constructor to specify your default appearance:
    Code:
      public ListView(final ListStore<M> store, ValueProvider<? super M, N> valueProvider, ListViewAppearance<M> appearance) {
    Another workaround could be to subclass ListView and call that same constructor, this time invoking GWT.create to use the rebind rules that are present.