public class SelectionEvent extends PageEditorEvent
SelectionEvent is a notification that a component is selected
using the various means Oracle Composer supports. These include
selection on the page, the Structure Navigator etc.
The selected component is the parameter of SelectionEvent.
| Constructor and Description |
|---|
SelectionEvent(java.lang.Object source,
javax.faces.component.UIComponent selComp)
Creates a Selection Event with the client id of the component that is
selected.
|
| Modifier and Type | Method and Description |
|---|---|
Event |
getEventType()
Returns the type of this event.
|
javax.faces.component.UIComponent |
getSelectedComponent()
Returns the component that is selected.
|
java.lang.Object |
getSource()
Returns the source of the selection event.
|
void |
processListener(PageEditorListener listener)
Broadcast this
SelectionEvent to the specified
PageEditorListener, by whatever mechanism is appropriate. |
isEventHandled, setEventHandledpublic SelectionEvent(java.lang.Object source,
javax.faces.component.UIComponent selComp)
selCompClientId - Client id of the selected component.NullPointerException - If the given id is
null.public void processListener(PageEditorListener listener) throws javax.faces.event.AbortProcessingException
SelectionEvent to the specified
PageEditorListener, by whatever mechanism is appropriate.
This is accomplished by calling processSelection method on
SelectionListener, and passing this
SelectionEvent as a paramter.processListener in class PageEditorEventlistener - PageEditorListener to send this
SelectionEvent to.javax.faces.event.AbortProcessingException - Signal Oracle Composer that no further
processing on the current event should be performed.public javax.faces.component.UIComponent getSelectedComponent()
UIComponent of the selected component. If the
component with the given id cannot be found, returns
null.public java.lang.Object getSource()
public final Event getEventType()
getEventType in class PageEditorEventEvent.COMP_SELECTION_EVENT.