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 IEventSink
eventSink
protected PageReference
pageRef
-
Constructor Summary
Constructors Constructor Description AbstractModalPanelBuilder(T defaultItem, PageReference pageRef)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getDefaultItem()
IEventSink
getEventSink()
protected T
getOriginalItem()
PageReference
getPageReference()
protected T
newModelObject()
protected Serializable
onApplyInternal(T modelObject)
protected void
onCancelInternal(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:
getDefaultItem
in interfaceModalPanelBuilder<T extends Serializable>
-
newModelObject
protected T newModelObject()
-
setItem
public AbstractModalPanelBuilder<T> setItem(T item)
Description copied from interface:ModalPanelBuilder
Replaces the default value provided with the constructor and nullify working item object.- Specified by:
setItem
in interfaceModalPanelBuilder<T extends Serializable>
- Parameters:
item
- new value.- Returns:
- the current wizard factory instance.
-
getPageReference
public PageReference getPageReference()
- Specified by:
getPageReference
in interfaceModalPanelBuilder<T extends Serializable>
-
setEventSink
public ModalPanelBuilder<T> setEventSink(IEventSink eventSink)
- Specified by:
setEventSink
in interfaceModalPanelBuilder<T extends Serializable>
-
getEventSink
public IEventSink getEventSink()
- Specified by:
getEventSink
in interfaceModalPanelBuilder<T extends Serializable>
-
-