Class AbstractModalPanelBuilder<T extends Serializable>
- java.lang.Object
-
- org.apache.syncope.client.ui.commons.wizards.AbstractModalPanelBuilder<T>
-
- All Implemented Interfaces:
Serializable,ModalPanelBuilder<T>
- Direct Known Subclasses:
AjaxWizardBuilder,ClientAppModalPanelBuilder,PolicyModalPanelBuilder,UsernameAttributeProviderModalPanelBuilder
public abstract class AbstractModalPanelBuilder<T extends Serializable> extends Object implements ModalPanelBuilder<T>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected IEventSinkeventSinkprotected PageReferencepageRef
-
Constructor Summary
Constructors Constructor Description AbstractModalPanelBuilder(T defaultItem, PageReference pageRef)Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetDefaultItem()IEventSinkgetEventSink()protected TgetOriginalItem()PageReferencegetPageReference()protected TnewModelObject()protected SerializableonApplyInternal(T modelObject)protected voidonCancelInternal(T modelObject)ModalPanelBuilder<T>setEventSink(IEventSink eventSink)AbstractModalPanelBuilder<T>setItem(T item)Replaces the default value provided with the constructor and nullify working item object.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.syncope.client.ui.commons.wizards.ModalPanelBuilder
build
-
-
-
-
Field Detail
-
pageRef
protected final PageReference pageRef
-
eventSink
protected IEventSink eventSink
-
-
Constructor Detail
-
AbstractModalPanelBuilder
public AbstractModalPanelBuilder(T defaultItem, PageReference pageRef)
Construct.- Parameters:
defaultItem- default item.pageRef- Caller page reference.
-
-
Method Detail
-
onCancelInternal
protected void onCancelInternal(T modelObject)
-
onApplyInternal
protected Serializable onApplyInternal(T modelObject)
-
getOriginalItem
protected T getOriginalItem()
-
getDefaultItem
public T getDefaultItem()
- Specified by:
getDefaultItemin interfaceModalPanelBuilder<T extends Serializable>
-
newModelObject
protected T newModelObject()
-
setItem
public AbstractModalPanelBuilder<T> setItem(T item)
Description copied from interface:ModalPanelBuilderReplaces the default value provided with the constructor and nullify working item object.- Specified by:
setItemin interfaceModalPanelBuilder<T extends Serializable>- Parameters:
item- new value.- Returns:
- the current wizard factory instance.
-
getPageReference
public PageReference getPageReference()
- Specified by:
getPageReferencein interfaceModalPanelBuilder<T extends Serializable>
-
setEventSink
public ModalPanelBuilder<T> setEventSink(IEventSink eventSink)
- Specified by:
setEventSinkin interfaceModalPanelBuilder<T extends Serializable>
-
getEventSink
public IEventSink getEventSink()
- Specified by:
getEventSinkin interfaceModalPanelBuilder<T extends Serializable>
-
-