Class BasePreferenceForm<T>

  • Type Parameters:
    T - Preference bean type the can be edited by this form.

    public abstract class BasePreferenceForm<T>
    extends Object
    Class that all preference forms (defined by a WorkbenchScreen annotated with PreferenceForm) must inherit, to be able to be initialized in a proper manner, which is receiving its preference object.
    • Constructor Detail

      • BasePreferenceForm

        public BasePreferenceForm()
    • Method Detail

      • init

        public abstract void init​(T preference)
        Method called when the form is opened, so it can receive the current persisted preference value.
        Parameters:
        preference -
      • beforeSave

        public abstract void beforeSave()
        Method called just before the preferences saving.
      • onUndo

        public abstract void onUndo()
        Method called when the "Undo" action is fired by the user. It is expected that the form undo any unsaved changes in this method implementation.
      • onStartup

        public void onStartup​(org.uberfire.mvp.PlaceRequest placeRequest)
      • getPreference

        public T getPreference()