OracleJavaScript API Reference for Oracle ADF Faces

 

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

oracle.adfinternal.view.js.laf.dhtml.rich
Class AdfDhtmlMessagesPeer

Warning:

org.ecmascript.object.Object
   |
   +--oracle.adf.view.js.base.AdfObject
         |
         +--oracle.adf.view.js.base.AdfUIPeer
               |
               +--oracle.adf.view.js.laf.rich.AdfRichUIPeer
                     |
                     +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlMessagesPeer

public class AdfDhtmlMessagesPeer
extends AdfRichUIPeer
Peer for the messages component. The AdfDhtmlMessagesPeer is only used when the messages component is inline, when using a dialog the document peer is used.



Field Summary


Fields inherited from oracle.adf.view.js.laf.rich.AdfRichUIPeer

addComponentPropertyChanges, addComponentPropertyGetters, BUSY_STYLECLASS, DISABLED_STYLECLASS, DRAG_SOURCE_STYLECLASS, DROP_TARGET_STYLECLASS, FOCUS_TARGET_STYLECLASS, HOVER_TARGET_STYLECLASS, READONLY_STYLECLASS


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

constructor, superclass


Fields inherited from org.ecmascript.object.Object

prototype


Constructor Summary

public
AdfDhtmlMessagesPeer()
Peer for the messages component.


Method Summary

public Object
componentRemoved(Object component)
Clean up the peer because it's component is being removed.
protected String
GetComponentGlobalOnly(AdfUIComponent component, HTMLElement root)
Optimized getter for the attribute named globalOnly.
protected String
GetComponentMessage(AdfUIComponent component, HTMLElement root)
Optimized getter for the attribute named message.
protected String
GetComponentShortDesc(AdfUIComponent component, HTMLElement root)
Optimized getter for the attribute named shortDesc.
protected String
GetComponentText(AdfUIComponent component, HTMLElement root)
Optimized getter for the attribute named text.
protected Object
GetSubIdDomElement(Object subElementId)
Returns the DOM element identified by the passed in subId.
protected static Object
InitSubclass()
Class initializer.
public Boolean
isMessagesDialogShowable()
The AdfDhtmlMessagesPeer is only used when the messages component is inline, when using a dialog the document peer is used.
protected Object
MessageNotify(Object maxType, Object messages)
Called to notify the peer that its messages have changed.
protected Object
MessageShow(Object maxType, Object messages)
Called to notify the peer that its messages should be shown.
private Object
_messageUpdate(Object maxType, Object messages, Object alwaysShow)
public Object
setMessagesDialogShown(Boolean visible)
The AdfDhtmlMessagesPeer is only used when the messages component is inline, when using a dialog the document peer is used.


Methods inherited from oracle.adf.view.js.laf.rich.AdfRichUIPeer

addComponentEventHandlers, addComponentPropertyChanges, addComponentPropertyGetters, addDomEventHandlers, addEventHandlerToDomInstance, addSuppressedPPRAttributes, bind, BindToComponent, cancelAllPopups, cancelPopup, ChildVisibilityChanged, ComponentInlineStyleChanged, ComponentPropertyChanged, ComponentRemoved, ComponentStyleClassChanged, ComponentVisibleChanged, ConvertClientIdToLocator, convertLocatorToClientId, CreateDraggableNode, createPeerClass, createSubId, CreateSubId, DefaultInitClass, descendantMessageChanged, DescendantMessageChanged, DispatchComponentEvent, domReplaceNotify, DomReplaceNotify, focus, Focus, getAbsoluteId, getAbsoluteLocator, getAccessibleName, GetAccessibleName, getAllPopups, getComponent, GetComponent, GetComponentId, getComponentParent, getComponentProperty, GetComponentVisible, getDescendantComponents, getDomContentElement, getDomContentElementForComponent, GetDomContentElementForNode, getDomDocument, getDomElement, getDomElementForComponent, getDomNode, GetDomNodeForCommentComponent, getDomNodeForComponent, getDragOverFeedback, GetDragOverFeedback, getDragTransferable, GetDragTransferable, getFirstAncestorComponent, getInlineEditor, GetInlineEditor, getInlineStyleProperty, getLocatorByDomElement, getPagePosition, getPopupWindow, getReadyState, GetReadyState, GetRichResourceURL, getSubIdDomElement, hideAllPopups, hidePopup, Init, InitClass, InitDomElement, initialize, isActive, isInActiveHeirarchy, isPopupVisible, messageNotify, messageShow, needsChildVisibilityChanges, PopupClosed, processPushData, ProcessPushData, registerKeyStroke, replaceDomElement, ReplaceDomElement, resizeNotify, ResizeNotify, scrollIntoView, ScrollIntoView, setBusy, SetBusy, setInlineStyleProperty, showContextMenu, showPopup, TruncateClientId, TruncateClientIdOnceImpl, UnbindFromComponent, unregisterKeyStroke, visitChildren


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

getDefaultDragRecognizer, getParentPeer, initiateDrag, isVisible, needsResizeNotify


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

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


Field Detail


Constructor Detail


AdfDhtmlMessagesPeer

public AdfDhtmlMessagesPeer()

Peer for the messages component. The AdfDhtmlMessagesPeer is only used when the messages component is inline, when using a dialog the document peer is used.

Method Detail


componentRemoved

public Object componentRemoved(Object component)

Clean up the peer because it's component is being removed.

Parameters:
component    
Return:
Object
Overrides:
AdfUIPeer.componentRemoved(AdfUIComponent)

GetComponentGlobalOnly

protected String GetComponentGlobalOnly(AdfUIComponent component,
                                        HTMLElement root)

Optimized getter for the attribute named globalOnly.

Parameters:
component  -  the component for this peer
root  -  the root DOM element for this peer
Return:
String - the globalOnly attribute value

GetComponentMessage

protected String GetComponentMessage(AdfUIComponent component,
                                     HTMLElement root)

Optimized getter for the attribute named message.

Parameters:
component  -  the component for this peer
root  -  the root DOM element for this peer
Return:
String - the message attribute value

GetComponentShortDesc

protected String GetComponentShortDesc(AdfUIComponent component,
                                       HTMLElement root)

Optimized getter for the attribute named shortDesc.

Parameters:
component  -  the component for this peer
root  -  the root DOM element for this peer
Return:
String - the shortDesc attribute value

GetComponentText

protected String GetComponentText(AdfUIComponent component,
                                  HTMLElement root)

Optimized getter for the attribute named text.

Parameters:
component  -  the component for this peer
root  -  the root DOM element for this peer
Return:
String - the text attribute value

GetSubIdDomElement

protected Object GetSubIdDomElement(Object subElementId)

Returns the DOM element identified by the passed in subId.

Parameters:
subElementId    
Return:
Object - the DOM element
Overrides:
AdfRichUIPeer.getSubIdDomElement(Object, Object)

InitSubclass

protected static Object InitSubclass()

Class initializer.

Return:
Object

isMessagesDialogShowable

public Boolean isMessagesDialogShowable()

The AdfDhtmlMessagesPeer is only used when the messages component is inline, when using a dialog the document peer is used. See AdfDhtmlDocumentPeer.isMessagesDialogShowable for the method called when a popup MessageHandler API used by the messaging framework pieces. Determines whether the setMessagesDialogShown() API is able to show a dialog. If no dialog is showable, then links that would invoke it should be hidden.

Return:
Boolean - true if setMessageDialogShown(true) will do anything, false otherwise

MessageNotify

protected Object MessageNotify(Object maxType,
                               Object messages)

Called to notify the peer that its messages have changed. The messages provided will be an array of FacesMessage or AdfFacesMessage objects. If this array is null then all the messages have been cleared from this component.

Parameters:
maxType    
messages    
Return:
Object
Overrides:
AdfUIPeer.messageNotify(Object, Number, Array)

MessageShow

protected Object MessageShow(Object maxType,
                             Object messages)

Called to notify the peer that its messages should be shown. The messages provided will be an array of FacesMessage or AdfFacesMessage objects. If this array is null then all the messages have been cleared from this component.

Parameters:
maxType    
messages    
Return:
Object
Overrides:
AdfUIPeer.messageShow(Object, Number, Array)

_messageUpdate

private Object _messageUpdate(Object maxType,
                              Object messages,
                              Object alwaysShow)

Parameters:
maxType    
messages    
alwaysShow    
Return:
Object

setMessagesDialogShown

public Object setMessagesDialogShown(Boolean visible)

The AdfDhtmlMessagesPeer is only used when the messages component is inline, when using a dialog the document peer is used. See AdfDhtmlDocumentPeer.setMessagesDialogShown for the method called when a popup MessageHandler API used by the messaging framework pieces. Specifies the visibility of the document's "all messages" dialog. If setting it to be visible, this will also move focus into the dialog.

Parameters:
visible  -  true if to make it visible, false to hide it
Return:
Object

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

 

Generated on 2011.04.27 02:28 UTC
Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.