Class BasePreferenceForm<T>
- java.lang.Object
-
- org.uberfire.ext.preferences.client.base.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 aWorkbenchScreenannotated withPreferenceForm) must inherit, to be able to be initialized in a proper manner, which is receiving its preference object.
-
-
Constructor Summary
Constructors Constructor Description BasePreferenceForm()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidbeforeSave()Method called just before the preferences saving.TgetPreference()voidhierarchyItemFormInitializationEvent(HierarchyItemFormInitializationEvent event)abstract voidinit(T preference)Method called when the form is opened, so it can receive the current persisted preference value.voidonStartup(org.uberfire.mvp.PlaceRequest placeRequest)abstract voidonUndo()Method called when the "Undo" action is fired by the user.voidpreSaveEvent(PreferencesCentralPreSaveEvent event)voidundoChangesEvent(PreferencesCentralUndoChangesEvent event)
-
-
-
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)
-
hierarchyItemFormInitializationEvent
public void hierarchyItemFormInitializationEvent(@Observes HierarchyItemFormInitializationEvent event)
-
preSaveEvent
public void preSaveEvent(@Observes PreferencesCentralPreSaveEvent event)
-
undoChangesEvent
public void undoChangesEvent(@Observes PreferencesCentralUndoChangesEvent event)
-
getPreference
public T getPreference()
-
-