Class ParametersViewBean.RenderContext

    • Constructor Detail

      • RenderContext

        public RenderContext​(@NotNull
                             String id,
                             @NotNull
                             Parameter parameter)
    • Method Detail

      • getParameter

        @NotNull
        public Parameter getParameter()
        Description copied from interface: ParameterRenderContext
        Control should be shown for the given parameter. Implementation must use this interface to obtain parameter value
        Specified by:
        getParameter in interface ParameterRenderContext
        Returns:
        Parameter instance to show
      • getId

        @NotNull
        public String getId()
        Description copied from interface: ParameterRenderContext
        Constrol must add an HTML input control with given ID. This control may have input control of the same name. Host will use this the id to persist form and/or to get value from the control
        Specified by:
        getId in interface ParameterRenderContext
        Returns:
        Control HTML element ID to be used
      • getAdditionalParameter

        @Nullable
        public <T> T getAdditionalParameter​(@NotNull
                                            AdditionalParameter<T> parameter)
        Description copied from interface: ParameterContext
        Returns parameter by given key
        Specified by:
        getAdditionalParameter in interface ParameterContext
        Type Parameters:
        T - type of parameter
        Parameters:
        parameter - key and type of parameter to get
        Returns:
        parameter or null