|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.util.beans.BeanChangeSupport
org.progeeks.util.DefaultViewContext
public class DefaultViewContext
Default implementation of the ViewContext interface.
Constructor Summary | |
---|---|
DefaultViewContext()
Creates a default view context with null as a parent. |
|
DefaultViewContext(ViewContext parent)
Creates a default view context with the specified parent. |
Method Summary | |
---|---|
static ViewContext |
findContext(ViewContext context,
java.lang.Class type)
Searches up the hierarchy and returns the first context of the specified class that is encountered. |
protected boolean |
getBooleanProperty(java.lang.String property,
boolean defaultValue)
Retrieves the boolean-typed property value for the specified property name. |
protected double |
getDoubleProperty(java.lang.String property,
double defaultValue)
Retrieves the double-typed property value for the specified property name. |
protected int |
getIntProperty(java.lang.String property,
int defaultValue)
Retrieves the int-typed property value for the specified property name. |
protected java.lang.Object |
getObjectProperty(java.lang.String property)
Retrieves the object-typed property value for the specified property name. |
protected java.lang.Object |
getObjectProperty(java.lang.String property,
java.lang.Object defaultValue)
Retrieves the object-typed property value for the specified property name. |
ViewContext |
getParentContext()
Returns the parent context upon which this context depends, or null if this is a root-level context. |
static ViewContext |
getRootContext(ViewContext context)
Searches up the hierarchy and returns the highest non-null parent of the specified context. |
protected java.lang.String |
getStringProperty(java.lang.String property,
java.lang.String defaultValue)
Retrieves the string-typed property value for the specified property name. |
protected boolean |
setBooleanProperty(java.lang.String property,
boolean b)
Sets the specified property to the specified value firing a change notification as appropriate. |
protected boolean |
setDoubleProperty(java.lang.String property,
double d)
Sets the specified property to the specified value firing a change notification as appropriate. |
protected boolean |
setIntProperty(java.lang.String property,
int i)
Sets the specified property to the specified value firing a change notification as appropriate. |
protected boolean |
setObjectProperty(java.lang.String property,
java.lang.Object obj)
Sets the specified property to the specified value firing a change notification as appropriate. |
void |
setParentContext(ViewContext parent)
Sets the parent context of this context. |
protected boolean |
setStringProperty(java.lang.String property,
java.lang.String value)
Sets the specified property to the specified value firing a change notification as appropriate. |
Methods inherited from class org.progeeks.util.beans.BeanChangeSupport |
---|
addPropertyChangeListener, addPropertyChangeListener, clearAllListeners, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, hasListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.progeeks.util.beans.StandardBean |
---|
addPropertyChangeListener, addPropertyChangeListener, hasListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
Constructor Detail |
---|
public DefaultViewContext()
public DefaultViewContext(ViewContext parent)
Method Detail |
---|
public void setParentContext(ViewContext parent)
setParentContext
in interface ViewContext
public ViewContext getParentContext()
getParentContext
in interface ViewContext
public static ViewContext getRootContext(ViewContext context)
public static ViewContext findContext(ViewContext context, java.lang.Class type)
protected boolean setObjectProperty(java.lang.String property, java.lang.Object obj)
protected java.lang.Object getObjectProperty(java.lang.String property)
protected java.lang.Object getObjectProperty(java.lang.String property, java.lang.Object defaultValue)
protected boolean setStringProperty(java.lang.String property, java.lang.String value)
protected java.lang.String getStringProperty(java.lang.String property, java.lang.String defaultValue)
protected boolean setIntProperty(java.lang.String property, int i)
protected int getIntProperty(java.lang.String property, int defaultValue)
protected boolean setDoubleProperty(java.lang.String property, double d)
protected double getDoubleProperty(java.lang.String property, double defaultValue)
protected boolean setBooleanProperty(java.lang.String property, boolean b)
protected boolean getBooleanProperty(java.lang.String property, boolean defaultValue)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |