T - Preference bean type the can be edited by this form.public abstract class BasePreferenceForm<T> extends Object
WorkbenchScreen annotated with PreferenceForm)
must inherit, to be able to be initialized in a proper manner, which is receiving its preference object.| Constructor and Description |
|---|
BasePreferenceForm() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
beforeSave()
Method called just before the preferences saving.
|
T |
getPreference() |
void |
hierarchyItemFormInitializationEvent(HierarchyItemFormInitializationEvent event) |
abstract void |
init(T preference)
Method called when the form is opened, so it can receive the current persisted preference value.
|
void |
onStartup(PlaceRequest placeRequest) |
abstract void |
onUndo()
Method called when the "Undo" action is fired by the user.
|
void |
preSaveEvent(PreferencesCentralPreSaveEvent event) |
void |
undoChangesEvent(PreferencesCentralUndoChangesEvent event) |
public abstract void init(T preference)
preference - public abstract void beforeSave()
public abstract void onUndo()
public void onStartup(PlaceRequest placeRequest)
public void hierarchyItemFormInitializationEvent(@Observes
HierarchyItemFormInitializationEvent event)
public void preSaveEvent(@Observes
PreferencesCentralPreSaveEvent event)
public void undoChangesEvent(@Observes
PreferencesCentralUndoChangesEvent event)
public T getPreference()
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.