OracleJavaScript API Reference for Oracle ADF Faces

 

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

oracle.adfinternal.view.js.behavior
Class AdfShowPopupBehavior

Warning:

org.ecmascript.object.Object
   |
   +--oracle.adf.view.js.base.AdfObject
         |
         +--oracle.adf.view.js.base.AdfClientBehavior
               |
               +--oracle.adfinternal.view.js.behavior.AdfShowPopupBehavior

public class AdfShowPopupBehavior
extends AdfClientBehavior
Client behavior implementation for showing popup components



Field Summary

private Object
_align
private Object
_alignId
private Object
_popupId
private Object
_type


Fields inherited from oracle.adf.view.js.base.AdfObject

constructor, superclass


Fields inherited from org.ecmascript.object.Object

prototype


Constructor Summary

public
AdfShowPopupBehavior(Object popupId, Object align, Object alignId, Object type)
Client behavior implementation for showing popup components


Method Summary

public Object
fire(Object event)
The fire method is called back when the event has been fired.
private Object
_fireCancel(Object event)
Callback "mouseOut" listener that cancels a pending delayed launch for "mouseIn" or "mouseHover" trigger types.
private AdfDhtmlPopupWindow
_getPopupWindow(AdfRichPopup component)
Returns an internal popup controller for an open popup component.
protected Object
Init(String popupId, String align, String alignId, String type)
Behavior constructor.
public Object
initialize(AdfUIComponent component)
As part of the client behavior contract, initialize is called when the component is created to give the behavior a chance to register event listeners.
private Boolean
_isInlinePopupSelector(AdfDhtmlPopupWindow popupElement)
Checks to see if the component is an inline popup selector.
private Object
_onMouseOverTimeout(Object state)
A 500 ms delayed callback that launches a popup when the triggering event type is a "mouseOver" event.
private Boolean
_wasOpendedFromSameSource(AdfDhtmlPopupWindow popupElement, String launchSourceId)


Methods inherited from oracle.adf.view.js.base.AdfObject

adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toDebugString, toString


Field Detail


_align

private Object _align

_alignId

private Object _alignId

_popupId

private Object _popupId

_type

private Object _type

Constructor Detail


AdfShowPopupBehavior

public AdfShowPopupBehavior(Object popupId,
                            Object align,
                            Object alignId,
                            Object type)

Client behavior implementation for showing popup components

Parameters:
popupId    
align    
alignId    
type    

Method Detail


fire

public Object fire(Object event)

The fire method is called back when the event has been fired.

Parameters:
event  -  The event that has been fired
Return:
Object

_fireCancel

private Object _fireCancel(Object event)

Callback "mouseOut" listener that cancels a pending delayed launch for "mouseIn" or "mouseHover" trigger types. If the mouse out event is fired before the 500ms timeout, the launch request is canceled.

Parameters:
event  -  The event that has been fired
Return:
Object

_getPopupWindow

private AdfDhtmlPopupWindow _getPopupWindow(AdfRichPopup component)

Returns an internal popup controller for an open popup component.

Parameters:
component  -  source of target popup component
Return:
AdfDhtmlPopupWindow - popup floating element "controller"

Init

protected Object Init(String popupId,
                      String align,
                      String alignId,
                      String type)

Behavior constructor.

Parameters:
popupId  -  clientId of the target popup
align  -  enumeration of positioning
Default value = null
alignId  -  clientId of the component the popup should be aligned to
Default value = null
type  -  client event to trigger this behavior
Return:
Object
See also:
AdfRichPopup
Overrides:
AdfObject.Init()

initialize

public Object initialize(AdfUIComponent component)

As part of the client behavior contract, initialize is called when the component is created to give the behavior a chance to register event listeners.

Parameters:
component  -  command family component
Return:
Object
Overrides:
AdfClientBehavior.initialize(Object)

_isInlinePopupSelector

private Boolean _isInlinePopupSelector(AdfDhtmlPopupWindow popupElement)

Checks to see if the component is an inline popup selector. This condition is determined by looking at the popup element registered with the peer. The clientId of the popup component is used to register the popup element. The popupElement will be a instance of AdfDhtmlSimpleFloat (dialog or panelWindow), AdfDhtmlPopupMenu, AdfDhtmlPopupSelector or AdfDhtmlNotWindowPopupSelector.

Parameters:
popupElement  -  window "controller"
Return:
Boolean - returns true if the popup element is a AdfDhtmlPopupSelector

_onMouseOverTimeout

private Object _onMouseOverTimeout(Object state)

A 500 ms delayed callback that launches a popup when the triggering event type is a "mouseOver" event. This is a BLAF requirement and mocks the same behavior found in the AdfDhtmlEditableValuePeer for launching note windows.

Parameters:
state  -  map holding the popup hints and target popup component
Return:
Object

_wasOpendedFromSameSource

private Boolean _wasOpendedFromSameSource(AdfDhtmlPopupWindow popupElement,
                                          String launchSourceId)

Parameters:
popupElement  -  popup "controller" is opened
launchSourceId  -  client id of the current event source
Return:
Boolean - returns true if the launchSourceId is the same as the launchSourceId used to last open the popup.

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

 

Generated on 2011.10.24 21:45 UTC
Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.