public abstract class AbstractModalPanelBuilder<T extends Serializable> extends Object implements ModalPanelBuilder<T>
Modifier and Type | Field and Description |
---|---|
protected IEventSink |
eventSink |
protected PageReference |
pageRef |
Constructor and Description |
---|
AbstractModalPanelBuilder(T defaultItem,
PageReference pageRef)
Construct.
|
Modifier and Type | Method and 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build
protected final PageReference pageRef
protected IEventSink eventSink
public AbstractModalPanelBuilder(T defaultItem, PageReference pageRef)
defaultItem
- default item.pageRef
- Caller page reference.protected void onCancelInternal(T modelObject)
protected Serializable onApplyInternal(T modelObject)
protected T getOriginalItem()
public T getDefaultItem()
getDefaultItem
in interface ModalPanelBuilder<T extends Serializable>
protected T newModelObject()
public AbstractModalPanelBuilder<T> setItem(T item)
ModalPanelBuilder
setItem
in interface ModalPanelBuilder<T extends Serializable>
item
- new value.public PageReference getPageReference()
getPageReference
in interface ModalPanelBuilder<T extends Serializable>
public ModalPanelBuilder<T> setEventSink(IEventSink eventSink)
setEventSink
in interface ModalPanelBuilder<T extends Serializable>
public IEventSink getEventSink()
getEventSink
in interface ModalPanelBuilder<T extends Serializable>
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.