ERD2WUtilities Class Reference

Collaboration diagram for ERD2WUtilities:

Collaboration graph
[legend]

List of all members.

Public Member Functions

D2WPage parentD2WPage (WOComponent sender)

Static Public Member Functions

static boolean assignmentsAreEqual (Assignment a1, Assignment a2)
static Object contextValueForKeyNoInferenceNoException (D2WContext c, String keyPath)
static< T > T enclosingComponentOfClass (WOComponent sender, Class< T > c)
static WOComponent enclosingPageOfClass (WOComponent sender, Class c)
static void finalizeContext (D2WContext context)
static WOComponent nextPageInPage (D2WPage parent)
static EditPageInterface parentEditPage (WOComponent sender)
static ListPageInterface parentListPage (WOComponent sender)
static ERDPickPageInterface parentPickPage (WOComponent sender)
static QueryPageInterface parentQueryPage (WOComponent sender)
static SelectPageInterface parentSelectPage (WOComponent sender)
static void resetContextCache (D2WContext context)
static D2WPage topLevelD2WPage (WOComponent sender)

Static Private Attributes

static Logger log = Logger.getLogger(ERD2WUtilities.class)


Member Function Documentation

static boolean assignmentsAreEqual ( Assignment  a1,
Assignment  a2 
) [static]

static Object contextValueForKeyNoInferenceNoException ( D2WContext  c,
String  keyPath 
) [static]

static <T> T enclosingComponentOfClass ( WOComponent  sender,
Class< T >  c 
) [static]

This method is similar to enclosingPageOfClass. It differs in that it is generic and it inspects the sender argument as well as its parents.

Parameters:
<T> The class type
sender the sender component
c the class
Returns:
sender or the first of sender's parents that is assignable from class c

static WOComponent enclosingPageOfClass ( WOComponent  sender,
Class  c 
) [static]

Utility to return the first enclosing component that matches the given class, if there is one.

static void finalizeContext ( D2WContext  context  )  [static]

static WOComponent nextPageInPage ( D2WPage  parent  )  [static]

Utility to return the next page in the enclosing page.

D2WPage parentD2WPage ( WOComponent  sender  ) 

Utility to return the enclosing D2W page, if there is one.

static EditPageInterface parentEditPage ( WOComponent  sender  )  [static]

Utility to return the enclosing edit page, if there is one.

static ListPageInterface parentListPage ( WOComponent  sender  )  [static]

Utility to return the enclosing list page, if there is one.

static ERDPickPageInterface parentPickPage ( WOComponent  sender  )  [static]

Utility to return the enclosing pick page, if there is one.

static QueryPageInterface parentQueryPage ( WOComponent  sender  )  [static]

Utility to return the enclosing query page, if there is one.

static SelectPageInterface parentSelectPage ( WOComponent  sender  )  [static]

Utility to return the enclosing select page, if there is one.

static void resetContextCache ( D2WContext  context  )  [static]

static D2WPage topLevelD2WPage ( WOComponent  sender  )  [static]

Utility to return the outermost page that is a D2W page. This is needed because this component might be embedded inside a plain page.


Member Data Documentation

Logger log = Logger.getLogger(ERD2WUtilities.class) [static, private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:31 2012 for Project Wonder by  doxygen 1.5.8