|
Oracle Fusion Middleware Java API Reference for Oracle ADF Faces 12c Release 1 (12.1.2.0.0) E23185-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.adf.view.rich.event.BasePolytypeListener
public abstract class BasePolytypeListener
Base class for creating a listener that can register with all our server-side faces events. The event type passed as a constructor parameter will determine what faces event the listener will act on. Concrete classes must implement the handleEvent method. The following events with associated listeners are supported:
Note: This abstract listener should support all faces events we provide in our component library. To add a new event, consider the following:
handleEvent(javax.faces.event.FacesEvent)| Nested Class Summary | |
|---|---|
static class |
BasePolytypeListener.EventTypeThese enumerations define the types of events this listener can process. |
| Constructor Summary | |
|---|---|
BasePolytypeListener(BasePolytypeListener.EventType eventType)Constructor requires an enumeration of BasePolytypeListener.EventType that defines what associated event this particular instance handles. |
|
| Method Summary | |
|---|---|
static boolean |
addListener(BasePolytypeListener listener, javax.faces.component.UIComponent component)Registers a poly type listener with the component. |
protected BasePolytypeListener.EventType |
getEventType()Gets the eventType from the state holder bean. |
protected org.apache.myfaces.trinidad.bean.FacesBean |
getFacesBean() |
protected abstract void |
handleEvent(javax.faces.event.FacesEvent event)Called passing in the target event of the registered event type. |
protected boolean |
isAppropriate(javax.faces.event.FacesEvent event)This method is similar to the isAppropriateListener you might find on a concrete instance of FacesEvent but this check is not if the listener implements an interface. |
boolean |
isTransient()Realization of StateHolder. |
protected void |
process(javax.faces.event.FacesEvent event)If the event matchings the target eventType then delecate to the handleEvent method. |
void |
processAction(javax.faces.event.ActionEvent event)The ActionListener implementation that resets input component values under the process root. |
void |
processCalendar(CalendarEvent event)The CalendarListener implementation that resets input component values under the process root. |
void |
processCalendarActivity(CalendarActivityEvent event)The CalendarActivityListener implementation that resets input component values under the process root. |
void |
processCalendarActivityDurationChange(CalendarActivityDurationChangeEvent event)The CalendarActivityDurationChangeListener implementation that resets input component values under the process root. |
void |
processCalendarDisplayChange(CalendarDisplayChangeEvent event)The CalendarDisplayChangeListener implementation that resets input component values under the process root. |
void |
processCarouselSpin(CarouselSpinEvent event)The CarouselSpinListener implementation that resets input component values under the process root. |
void |
processContextInfo(ContextInfoEvent event)The ContextInfoListener implementation that resets input component values under the process root. |
void |
processDataReturn(ReturnPopupDataEvent event)The ReturnPopupDataListener implementation that resets input component values under the process root. |
void |
processDialog(DialogEvent event)The DialogListener implementation that resets input component values under the process root. |
void |
processDisclosure(org.apache.myfaces.trinidad.event.DisclosureEvent event)The DisclosureListener implementation that resets input component values under the process root. |
void |
processDisclosure(org.apache.myfaces.trinidad.event.RowDisclosureEvent event)The RowDisclosureListener implementation that resets input component values under the process root. |
void |
processFocus(org.apache.myfaces.trinidad.event.FocusEvent event)The FocusListener implementation that resets input component values under the process root. |
void |
processItemEvent(ItemEvent event)The ItemListener implementation that resets input component values under the process root. |
void |
processLaunch(org.apache.myfaces.trinidad.event.LaunchEvent event)The LaunchListener implementation that resets input component values under the process root. |
void |
processLaunch(LaunchPopupEvent event)The LaunchPopupListener implementation that resets input component values under the process root. |
void |
processPoll(org.apache.myfaces.trinidad.event.PollEvent event)The PollListener implementation that resets input component values under the process root. |
void |
processPopupCanceled(PopupCanceledEvent event)The PopupCanceledListener implementation that resets input component values under the process root. |
void |
processPopupFetch(PopupFetchEvent event)The PopupFetchListener implementation that resets input component values under the process root. |
void |
processQuery(QueryEvent event)The QueryListener implementation that resets input component values under the process root. |
void |
processQueryOperation(QueryOperationEvent event)The QueryOperationListener implementation that resets input component values under the process root. |
void |
processRangeChange(org.apache.myfaces.trinidad.event.RangeChangeEvent event)The RangeChangeListener implementation that resets input component values under the process root. |
void |
processRegionNavigation(RegionNavigationEvent event)The RegionNavigationListener implementation that resets input component values under the process root. |
void |
processReturn(org.apache.myfaces.trinidad.event.ReturnEvent event)The ReturnListener implementation that resets input component values under the process root. |
void |
processReturn(ReturnPopupEvent event)The ReturnPopupListener implementation that resets input component values under the process root. |
void |
processSelection(org.apache.myfaces.trinidad.event.SelectionEvent event)The SelectionListener implementation that resets input component values under the process root. |
void |
processSort(org.apache.myfaces.trinidad.event.SortEvent event)The SortListener implementation that resets input component values under the process root. |
void |
processSpringboardChange(SpringboardChangeEvent event)The SpringboardChangeListener implementation that resets input component values under the process root. |
void |
processValueChange(javax.faces.event.ValueChangeEvent event)The ValueChangeListener implementation that resets input component values under the process root. |
void |
restoreState(javax.faces.context.FacesContext context, Object object)Restores the internal state into the faces bean. |
Object |
saveState(javax.faces.context.FacesContext context)Saves the listener's state with the component tree. |
protected void |
setEventType(BasePolytypeListener.EventType eventType)Sets the eventType to the state holder bean. |
void |
setTransient(boolean isTransient)Realization of StateHolder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasePolytypeListener(BasePolytypeListener.EventType eventType)
BasePolytypeListener.EventType that defines what associated event this particular instance handles.
eventType - framework concrete eventIllegalArgumentException - eventType cannot be null| Method Detail |
|---|
protected abstract void handleEvent(javax.faces.event.FacesEvent event)
eventType passed as a constructor argument matches the target event.event - faces event corresponding to the BasePolytypeListener.EventType passed via the constructorisAppropriate(javax.faces.event.FacesEvent)protected BasePolytypeListener.EventType getEventType()
protected void setEventType(BasePolytypeListener.EventType eventType)
eventType - that defines the target event the listener should act onpublic Object saveState(javax.faces.context.FacesContext context)
StateHolder.saveState in interface javax.faces.component.StateHoldercontext - faces context
public void restoreState(javax.faces.context.FacesContext context,
Object object)
StateHolder.restoreState in interface javax.faces.component.StateHoldercontext - faces contextobject - internal statepublic boolean isTransient()
StateHolder.isTransient in interface javax.faces.component.StateHolderfalsepublic void setTransient(boolean isTransient)
StateHolder.setTransient in interface javax.faces.component.StateHolderisTransient -UnsupportedOperationException - noop implementation
public final void processAction(javax.faces.event.ActionEvent event)
throws javax.faces.event.AbortProcessingException
ActionListener implementation that resets input component values under the process root.processAction in interface javax.faces.event.ActionListenerevent - target action eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processDialog(DialogEvent event)
throws javax.faces.event.AbortProcessingException
DialogListener implementation that resets input component values under the process root.processDialog in interface DialogListenerevent - target dialog eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processPopupCanceled(PopupCanceledEvent event)
throws javax.faces.event.AbortProcessingException
PopupCanceledListener implementation that resets input component values under the process root.processPopupCanceled in interface PopupCanceledListenerevent - popup canceled eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processPopupFetch(PopupFetchEvent event)
throws javax.faces.event.AbortProcessingException
PopupFetchListener implementation that resets input component values under the process root.processPopupFetch in interface PopupFetchListenerevent - popup fetch eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processCalendar(CalendarEvent event)
throws javax.faces.event.AbortProcessingException
CalendarListener implementation that resets input component values under the process root.processCalendar in interface CalendarListenerevent - calendar eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processCalendarActivity(CalendarActivityEvent event)
throws javax.faces.event.AbortProcessingException
CalendarActivityListener implementation that resets input component values under the process root.processCalendarActivity in interface CalendarActivityListenerevent - calendar activity eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processCalendarActivityDurationChange(CalendarActivityDurationChangeEvent event)
throws javax.faces.event.AbortProcessingException
CalendarActivityDurationChangeListener implementation that resets input component values under the process root.processCalendarActivityDurationChange in interface CalendarActivityDurationChangeListenerevent - calendar activity duration change eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processCalendarDisplayChange(CalendarDisplayChangeEvent event)
throws javax.faces.event.AbortProcessingException
CalendarDisplayChangeListener implementation that resets input component values under the process root.processCalendarDisplayChange in interface CalendarDisplayChangeListenerevent - calendar display change eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processCarouselSpin(CarouselSpinEvent event)
throws javax.faces.event.AbortProcessingException
CarouselSpinListener implementation that resets input component values under the process root.processCarouselSpin in interface CarouselSpinListenerevent - carousel spin eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processContextInfo(ContextInfoEvent event)
throws javax.faces.event.AbortProcessingException
ContextInfoListener implementation that resets input component values under the process root.processContextInfo in interface ContextInfoListenerevent - context info eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processDataReturn(ReturnPopupDataEvent event)
throws javax.faces.event.AbortProcessingException
ReturnPopupDataListener implementation that resets input component values under the process root.processDataReturn in interface ReturnPopupDataListenerevent - LOV data return eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processDisclosure(org.apache.myfaces.trinidad.event.RowDisclosureEvent event)
throws javax.faces.event.AbortProcessingException
RowDisclosureListener implementation that resets input component values under the process root.processDisclosure in interface org.apache.myfaces.trinidad.event.RowDisclosureListenerevent - row disclosure eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processDisclosure(org.apache.myfaces.trinidad.event.DisclosureEvent event)
throws javax.faces.event.AbortProcessingException
DisclosureListener implementation that resets input component values under the process root.processDisclosure in interface org.apache.myfaces.trinidad.event.DisclosureListenerevent - disclosure eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processFocus(org.apache.myfaces.trinidad.event.FocusEvent event)
throws javax.faces.event.AbortProcessingException
FocusListener implementation that resets input component values under the process root.processFocus in interface org.apache.myfaces.trinidad.event.FocusListenerevent - focus eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processItemEvent(ItemEvent event)
throws javax.faces.event.AbortProcessingException
ItemListener implementation that resets input component values under the process root.processItemEvent in interface ItemListenerevent - item eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processLaunch(org.apache.myfaces.trinidad.event.LaunchEvent event)
throws javax.faces.event.AbortProcessingException
LaunchListener implementation that resets input component values under the process root.processLaunch in interface org.apache.myfaces.trinidad.event.LaunchListenerevent - dialog framework launch eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processLaunch(LaunchPopupEvent event)
throws javax.faces.event.AbortProcessingException
LaunchPopupListener implementation that resets input component values under the process root.processLaunch in interface LaunchPopupListenerevent - LOV popup launch eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processPoll(org.apache.myfaces.trinidad.event.PollEvent event)
throws javax.faces.event.AbortProcessingException
PollListener implementation that resets input component values under the process root.processPoll in interface org.apache.myfaces.trinidad.event.PollListenerevent - poll eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processQuery(QueryEvent event)
throws javax.faces.event.AbortProcessingException
QueryListener implementation that resets input component values under the process root.processQuery in interface QueryListenerevent - query eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processQueryOperation(QueryOperationEvent event)
throws javax.faces.event.AbortProcessingException
QueryOperationListener implementation that resets input component values under the process root.processQueryOperation in interface QueryOperationListenerevent - query eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processRangeChange(org.apache.myfaces.trinidad.event.RangeChangeEvent event)
throws javax.faces.event.AbortProcessingException
RangeChangeListener implementation that resets input component values under the process root.processRangeChange in interface org.apache.myfaces.trinidad.event.RangeChangeListenerevent - range change eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processRegionNavigation(RegionNavigationEvent event)
throws javax.faces.event.AbortProcessingException
RegionNavigationListener implementation that resets input component values under the process root.processRegionNavigation in interface RegionNavigationListenerevent - region navigationjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processReturn(org.apache.myfaces.trinidad.event.ReturnEvent event)
throws javax.faces.event.AbortProcessingException
ReturnListener implementation that resets input component values under the process root.processReturn in interface org.apache.myfaces.trinidad.event.ReturnListenerevent - dialog return eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processReturn(ReturnPopupEvent event)
throws javax.faces.event.AbortProcessingException
ReturnPopupListener implementation that resets input component values under the process root.processReturn in interface ReturnPopupListenerevent - LOV popup return eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processSelection(org.apache.myfaces.trinidad.event.SelectionEvent event)
throws javax.faces.event.AbortProcessingException
SelectionListener implementation that resets input component values under the process root.processSelection in interface org.apache.myfaces.trinidad.event.SelectionListenerevent - selection eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processSpringboardChange(SpringboardChangeEvent event)
throws javax.faces.event.AbortProcessingException
SpringboardChangeListener implementation that resets input component values under the process root.processSpringboardChange in interface SpringboardChangeListenerevent - springboard change eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processSort(org.apache.myfaces.trinidad.event.SortEvent event)
throws javax.faces.event.AbortProcessingException
SortListener implementation that resets input component values under the process root.processSort in interface org.apache.myfaces.trinidad.event.SortListenerevent - sort eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)
public final void processValueChange(javax.faces.event.ValueChangeEvent event)
throws javax.faces.event.AbortProcessingException
ValueChangeListener implementation that resets input component values under the process root.processValueChange in interface javax.faces.event.ValueChangeListenerevent - value change eventjavax.faces.event.AbortProcessingException - exception during processing eventprocess(javax.faces.event.FacesEvent)protected boolean isAppropriate(javax.faces.event.FacesEvent event)
isAppropriateListener you might find on a concrete instance of FacesEvent but this check is not if the listener implements an interface. This one listener can work with several event types. The BasePolytypeListener.EventType enumeration passed to the constructor is associated with an event class. If the event's class is the same as the event class established via the constructor, processing is invoked.event - targettrue if the event should be processed by the listenerprocess(javax.faces.event.FacesEvent)protected void process(javax.faces.event.FacesEvent event)
eventType then delecate to the handleEvent method.event - faces eventisAppropriate(javax.faces.event.FacesEvent), handleEvent(javax.faces.event.FacesEvent)
public static boolean addListener(BasePolytypeListener listener,
javax.faces.component.UIComponent component)
true value is returned. Otherwise; if the component does not support this event, false is returned.listener - concrete poly type listenercomponent - to add the target listenertrue if the listener was successfully addedIllegalArgumentException - listener cannot be null; component cannot be nullprotected org.apache.myfaces.trinidad.bean.FacesBean getFacesBean()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Faces 12c Release 1 (12.1.2.0.0) E23185-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2013 Oracle Corporation. All Rights Reserved.