Interface FormControl

    • Method Detail

      • attachedForm

        void attachedForm​(MForm form)
        Call if the control is added to the form. Remember the form object.
        Parameters:
        form -
      • focus

        void focus​(UiComponent component)
        The component gets focus.
        Parameters:
        component -
      • newValue

        boolean newValue​(UiComponent component,
                         Object newValue)
        Set a new value to the component. Return true if the value is valid.
        Parameters:
        component -
        newValue -
        Returns:
        If the value was accepted.
      • reverted

        void reverted​(UiComponent component)
        The value was reverted.
        Parameters:
        component -
      • valueSet

        void valueSet​(UiComponent component)
        The method is called after every value update.
        Parameters:
        component -
      • setup

        void setup()
        The method is called after the form is initialized to set the default state.
      • doAction

        void doAction​(String action,
                      Object... params)
        This function can be called by custom code, e.g. if a action is triggered.
        Parameters:
        action -
        params -