org.pm4j.core.pm.impl
Class PmBeanBase.Nested<T_BEAN>

java.lang.Object
  extended by org.pm4j.core.pm.impl.PmObjectBase
      extended by org.pm4j.core.pm.impl.PmDataInputBase
          extended by org.pm4j.core.pm.impl.PmElementBase
              extended by org.pm4j.core.pm.impl.PmBeanBase<T_BEAN>
                  extended by org.pm4j.core.pm.impl.PmBeanBase.Nested<T_BEAN>
Type Parameters:
T_BEAN - Type of the backing bean.
All Implemented Interfaces:
java.lang.Comparable<PmObject>, PmBean<T_BEAN>, PmDataInput, PmElement, PmObject, PmTreeNode
Enclosing class:
PmBeanBase<T_BEAN>

public static class PmBeanBase.Nested<T_BEAN>
extends PmBeanBase<T_BEAN>

A special PmBeanBase class that provides access to the bean that is handled by the embedding PmBeanBase instance.

If this class is not used in such an embedded context, it acts just like its base class PmBeanBase.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.pm4j.core.pm.impl.PmBeanBase
PmBeanBase.MetaData, PmBeanBase.Nested<T_BEAN>
 
Nested classes/interfaces inherited from class org.pm4j.core.pm.impl.PmObjectBase
PmObjectBase.NameBuilder, PmObjectBase.NameBuilderAbsoluteName, PmObjectBase.NameBuilderShortName, PmObjectBase.NameBuilderTitle
 
Field Summary
 
Fields inherited from class org.pm4j.core.pm.impl.PmObjectBase
pmCacheLog
 
Fields inherited from interface org.pm4j.core.pm.PmObject
STYLE_CLASS_DISABLED, STYLE_CLASS_ERROR, STYLE_CLASS_INFO, STYLE_CLASS_REQUIRED, STYLE_CLASS_WARN
 
Constructor Summary
PmBeanBase.Nested(PmObject parentPm)
          Creates the PM bound to a null-pmBean .
 
Method Summary
protected  T_BEAN findPmBeanImpl()
          Looks up for the bean behind this PM.
protected  void onPmInit()
          Gets called when the meta data part of this PM is initialized and assigned to this instance.
 
Methods inherited from class org.pm4j.core.pm.impl.PmBeanBase
getPmBean, getPmBeanClass, getPmBeanImpl, getPmKey, initMetaData, makeMetaData, setPmBean
 
Methods inherited from class org.pm4j.core.pm.impl.PmElementBase
accept, clearCachedPmValues, findAnnotationsInPmHierarchy, getNodeDetailsPm, getPmAttribute, getPmAttributes, getPmChildNodes, getPmChildNodesImpl, getPmConversation, isPmReadonlyImpl, isPmTreeLeaf, isValidatingOnSetPmValue
 
Methods inherited from class org.pm4j.core.pm.impl.PmDataInputBase
commitBufferedPmChanges, isBufferedPmValueMode, isPmValueChanged, pmValidate, resetPmValues, rollbackBufferedPmChanges
 
Methods inherited from class org.pm4j.core.pm.impl.PmObjectBase
addToPmComposite, canSetPmTitle, clearPmInvalidValues, compareTo, ensurePmMetaDataInitialization, getPmConversationImpl, getPmIconPath, getPmMetaData, getPmMetaDataWithoutPmInitCall, getPmName, getPmParent, getPmProperty, getPmRelativeName, getPmResKey, getPmResKeyBase, getPmResLoaderCtxtClasses, getPmShortTitle, getPmStyleClasses, getPmStyleClassesImpl, getPmTitle, getPmTitleDef, getPmTitleImpl, getPmTooltip, getPmTooltipImpl, getVisiblePmCommands, getVisiblePmCommands, isMetaDataInitialized, isPmEnabled, isPmEnabledImpl, isPmReadonly, isPmValid, isPmVisible, isPmVisibleImpl, onPmChildStateChange, onPmValueChange, readCacheStrategy, removePmChild, setPmEnabled, setPmParent, setPmProperty, setPmTitle, setPmVisible, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.pm4j.core.pm.PmElement
getPmAttribute, getPmAttributes
 
Methods inherited from interface org.pm4j.core.pm.PmDataInput
commitBufferedPmChanges, isBufferedPmValueMode, isPmValueChanged, pmValidate, resetPmValues, rollbackBufferedPmChanges
 
Methods inherited from interface org.pm4j.core.pm.PmTreeNode
getNodeDetailsPm, getPmChildNodes, isPmTreeLeaf
 
Methods inherited from interface org.pm4j.core.pm.PmObject
accept, canSetPmTitle, compareTo, getPmConversation, getPmIconPath, getPmName, getPmParent, getPmProperty, getPmRelativeName, getPmShortTitle, getPmStyleClasses, getPmTitle, getPmTooltip, isPmEnabled, isPmReadonly, isPmValid, isPmVisible, setPmEnabled, setPmParent, setPmProperty, setPmTitle, setPmVisible
 

Constructor Detail

PmBeanBase.Nested

public PmBeanBase.Nested(PmObject parentPm)
Creates the PM bound to a null-pmBean .

Parameters:
parentPm - The parent context PM.
Method Detail

onPmInit

protected void onPmInit()
Description copied from class: PmObjectBase
Gets called when the meta data part of this PM is initialized and assigned to this instance.

Overrides:
onPmInit in class PmObjectBase

findPmBeanImpl

protected T_BEAN findPmBeanImpl()
Description copied from class: PmBeanBase
Looks up for the bean behind this PM.

The default implementation looks for a PM property for the expression provided by #getPmBeanKey().

Subclasses may provide alternative implementations.

Overrides:
findPmBeanImpl in class PmBeanBase<T_BEAN>
Returns:
The found bean or null.