Project Wonder 5.0

com.webobjects.directtoweb
Class ERD2WUtilities

java.lang.Object
  extended by com.webobjects.directtoweb.ERD2WUtilities

public class ERD2WUtilities
extends Object


Constructor Summary
ERD2WUtilities()
           
 
Method Summary
static boolean assignmentsAreEqual(com.webobjects.directtoweb.Assignment a1, com.webobjects.directtoweb.Assignment a2)
           
static Object contextValueForKeyNoInferenceNoException(com.webobjects.directtoweb.D2WContext c, String keyPath)
           
static
<T> T
enclosingComponentOfClass(WOComponent sender, Class<T> c)
          This method is similar to enclosingPageOfClass.
static WOComponent enclosingPageOfClass(WOComponent sender, Class c)
          Utility to return the first enclosing component that matches the given class, if there is one.
static void finalizeContext(com.webobjects.directtoweb.D2WContext context)
           
static WOComponent nextPageInPage(com.webobjects.directtoweb.D2WPage parent)
          Utility to return the next page in the enclosing page.
 com.webobjects.directtoweb.D2WPage parentD2WPage(WOComponent sender)
          Utility to return the enclosing D2W page, if there is one.
static com.webobjects.directtoweb.EditPageInterface parentEditPage(WOComponent sender)
          Utility to return the enclosing edit page, if there is one.
static com.webobjects.directtoweb.ListPageInterface parentListPage(WOComponent sender)
          Utility to return the enclosing list page, if there is one.
static ERDPickPageInterface parentPickPage(WOComponent sender)
          Utility to return the enclosing pick page, if there is one.
static com.webobjects.directtoweb.QueryPageInterface parentQueryPage(WOComponent sender)
          Utility to return the enclosing query page, if there is one.
static com.webobjects.directtoweb.SelectPageInterface parentSelectPage(WOComponent sender)
          Utility to return the enclosing select page, if there is one.
static void resetContextCache(com.webobjects.directtoweb.D2WContext context)
           
static com.webobjects.directtoweb.D2WPage topLevelD2WPage(WOComponent sender)
          Utility to return the outermost page that is a D2W page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERD2WUtilities

public ERD2WUtilities()
Method Detail

finalizeContext

public static void finalizeContext(com.webobjects.directtoweb.D2WContext context)

resetContextCache

public static void resetContextCache(com.webobjects.directtoweb.D2WContext context)

assignmentsAreEqual

public static boolean assignmentsAreEqual(com.webobjects.directtoweb.Assignment a1,
                                          com.webobjects.directtoweb.Assignment a2)

contextValueForKeyNoInferenceNoException

public static Object contextValueForKeyNoInferenceNoException(com.webobjects.directtoweb.D2WContext c,
                                                              String keyPath)

nextPageInPage

public static WOComponent nextPageInPage(com.webobjects.directtoweb.D2WPage parent)
Utility to return the next page in the enclosing page.


enclosingPageOfClass

public static WOComponent enclosingPageOfClass(WOComponent sender,
                                               Class c)
Utility to return the first enclosing component that matches the given class, if there is one.


enclosingComponentOfClass

public static <T> T enclosingComponentOfClass(WOComponent sender,
                                              Class<T> c)
This method is similar to enclosingPageOfClass. It differs in that it is generic and it inspects the sender argument as well as its parents.

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

topLevelD2WPage

public static com.webobjects.directtoweb.D2WPage topLevelD2WPage(WOComponent sender)
Utility to return the outermost page that is a D2W page. This is needed because this component might be embedded inside a plain page.


parentListPage

public static com.webobjects.directtoweb.ListPageInterface parentListPage(WOComponent sender)
Utility to return the enclosing list page, if there is one.


parentEditPage

public static com.webobjects.directtoweb.EditPageInterface parentEditPage(WOComponent sender)
Utility to return the enclosing edit page, if there is one.


parentSelectPage

public static com.webobjects.directtoweb.SelectPageInterface parentSelectPage(WOComponent sender)
Utility to return the enclosing select page, if there is one.


parentQueryPage

public static com.webobjects.directtoweb.QueryPageInterface parentQueryPage(WOComponent sender)
Utility to return the enclosing query page, if there is one.


parentPickPage

public static ERDPickPageInterface parentPickPage(WOComponent sender)
Utility to return the enclosing pick page, if there is one.


parentD2WPage

public com.webobjects.directtoweb.D2WPage parentD2WPage(WOComponent sender)
Utility to return the enclosing D2W page, if there is one.


Last updated: Wed, Feb 22, 2012 • 07:00 AM EST

Copyright © 2002 – 2011 Project Wonder.