Class DropDownChoicePanel<M,​I,​P,​S>

    • Constructor Detail

      • DropDownChoicePanel

        public DropDownChoicePanel​(String id,
                                   IModel<P> model,
                                   IModel<I> rowModel,
                                   AbstractColumn<M,​I,​S> column,
                                   IModel<? extends List<P>> choices,
                                   IChoiceRenderer<P> renderer)
        Constructor
        Parameters:
        id - component id
        model - model for the field
        rowModel - model for the data row
        column - column to which this panel belongs
        choices - choices for displaying in the drop down list
        renderer - how to display the data in the drop down
    • Method Detail

      • newDropDownChoice

        protected DropDownChoice<P> newDropDownChoice​(String id,
                                                      IModel<P> model,
                                                      IModel<? extends List<P>> choices)
        newDropDownChoice
        Parameters:
        id - component id
        model - field model
        choices - options to display in the drop down
        Returns:
        DropDownChoice FormComponent
      • newDropDownChoice

        protected DropDownChoice<P> newDropDownChoice​(String id,
                                                      IModel<P> model,
                                                      IModel<? extends List<P>> choices,
                                                      IChoiceRenderer<P> renderer)
        newDropDownChoice
        Parameters:
        id - component id
        model - field model
        choices - options to display in the drop down
        renderer - how to display the data
        Returns:
        DropDownChoice FormComponent