|
© 2003 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.netuix.servlets.controls.ControlContext | +--com.bea.netuix.servlets.controls.PresentationContext
The control framework provides instances of subclasses of PresentationContext
during actions and in backing files.
Field Summary |
Fields inherited from class com.bea.netuix.servlets.controls.ControlContext |
debug |
Constructor Summary | |
protected |
PresentationContext(PresentationControl presentationControl)
|
Method Summary | |
List |
getChildren()
Return an iterator of child PresentationContext objects |
List |
getChildren(String tagName)
|
static String |
getControlState(HttpServletRequest request)
Returns any state prepared for embedding in each URL. |
PresentationContext |
getFirstChild(String tagName)
Given a JSP tag name return the controls context. |
Properties |
getParsedProperties()
Get the extra properties of the control, if they exist. |
String |
getPresentationClass()
Get the presentation class of the control, if it exists. |
String |
getPresentationId()
Get the presentation id of the control, if it exists. |
String |
getPresentationStyle()
Get the presentation style of the control, if it exists. |
String |
getProperties()
Get the extra properties string of the control, if it exists. |
String |
getProperty(String key)
Get a property of the underlying control. |
String |
getProperty(String key,
String defaultValue)
Get a property of the underlying control, using the specified default if none exists. |
boolean |
getPropertyAsBoolean(String key,
boolean defaultValue)
Get a property of the underlying control, using the specified default if none exists. |
int |
getPropertyAsInt(String key,
int defaultValue)
Get a property of the underlying control, using the specified default if none exists. |
Locale |
getResolvedLocale()
Returns the Locale associated with the best matching Presentation control resource based on user request Locale preferrences. |
String |
getTagName()
|
boolean |
isVisible()
|
void |
render(HttpServletRequest request)
Render the parent control; this will call both begin render and end render methods. |
void |
setVisible(boolean visible)
Set the visible state of the control. |
Methods inherited from class com.bea.netuix.servlets.controls.ControlContext |
getContextFromRequest, getContextKey, getControl, getRequestKey, getUniqueId, removeContextFromRequest, setContextInRequest |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected PresentationContext(PresentationControl presentationControl)
Method Detail |
public String getPresentationId()
public String getPresentationClass()
public String getPresentationStyle()
public String getTagName()
public Locale getResolvedLocale()
public String getProperties()
my-first-key: my-first-value; my-second-key: my-second-value;Any number of properties may be in a properties string.
getParsedProperties()
public Properties getParsedProperties()
Properties
class returned by this method is the parsed view of
those from getProperties()
.
public String getProperty(String key)
key
argument should not be null.
key
- The property key
public String getProperty(String key, String defaultValue)
key
argument
should not be null.
key
- The property keydefaultValue
- The value to use if no value is found for the specified key
public int getPropertyAsInt(String key, int defaultValue)
key
argument should not be null. This is
a convenience method that attempts a conversion of the value from a
String
to an int. Failure during conversion causes the default
value to be returned.
key
- The property keydefaultValue
- The value to use if no value is found for the specified key
public boolean getPropertyAsBoolean(String key, boolean defaultValue)
key
argument should not be null. This is
a convenience method that attempts a conversion of the value from a
String
to a boolean. Failure during conversion causes a
value of false
to be returned. The default value is used
if the key lookup in the properties instance returned null
.
key
- The property keydefaultValue
- The value to use if no value is found for the specified key
public PresentationContext getFirstChild(String tagName)
tagName
- The namespace qualified tag name namespace:tagname
public List getChildren(String tagName)
public List getChildren()
PresentationContext
objects
PresentationControl
this method
will return an empty iterator.public void setVisible(boolean visible)
false
will cause the beginRender
and endRender
methods to
not be called during the render lifecycle stage.
visible
- The boolean
value to set the visibility state.public boolean isVisible()
public void render(HttpServletRequest request) throws IOException, com.bea.netuix.nf.UIControlException
IOException
- May be thrown when rendering the underlying control
com.bea.netuix.nf.UIControlException
public static final String getControlState(HttpServletRequest request)
Returns any state prepared for embedding in each URL. If the state encoding scheme is set use sessions, this method returns an empty string.
|
© 2003 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |