Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Missing methods in Interface PickList

    Hello,

    please can you add the following Methods to the Interface
    Code:
    com.smartgwt.client.widgets.form.fields.PickList
    :

    Code:
    public void setPickListFields(ListGridField... pickListFields);
    public void setPickListProperties(ListGrid pickListProperties);
    Thank you
    Andreas
    (evaluating smartgwt enterprise editition 3.1d 2012/09/24)
    Last edited by andy.2003; 28 Sep 2012, 22:44.

    #2
    These are already present on SelectItem and ComboBoxItem (where they should be).

    Could you explain what problem you are trying to solve.

    Comment


      #3
      I want to initialize a PickList (no matter which type) with these setters. At the moment I have to check the type of the PickList with instanceof like this:

      Code:
      if (selectItem instanceof ComboBoxItem) {
      	((ComboBoxItem)selectItem).setPickListFields(lgf);
      } else if (selectItem instanceof SelectItem) {
      	((SelectItem)selectItem).setPickListFields(lgf);
      }
      I think these Methods belongs to all PickList types and so also should be in the Interface.

      Comment

      Working...
      X