Class FormControlAdapter

    • Field Detail

      • form

        protected MForm form
    • Constructor Detail

      • FormControlAdapter

        public FormControlAdapter()
    • Method Detail

      • newValue

        public boolean newValue​(UiComponent component,
                                Object newValue)
        Description copied from interface: FormControl
        Set a new value to the component. Return true if the value is valid.
        Specified by:
        newValue in interface FormControl
        Returns:
        If the value was accepted.
      • attachedForm

        public void attachedForm​(MForm form)
        Description copied from interface: FormControl
        Call if the control is added to the form. Remember the form object.
        Specified by:
        attachedForm in interface FormControl
      • valueSet

        public void valueSet​(UiComponent component)
        Description copied from interface: FormControl
        The method is called after every value update.
        Specified by:
        valueSet in interface FormControl
      • setup

        public void setup()
        Description copied from interface: FormControl
        The method is called after the form is initialized to set the default state.
        Specified by:
        setup in interface FormControl
      • doAction

        public void doAction​(String action,
                             Object... params)
        Description copied from interface: FormControl
        This function can be called by custom code, e.g. if a action is triggered.
        Specified by:
        doAction in interface FormControl