org.pm4j.core.pm
Interface PmAttrPmRef<T_REFED_PM extends PmBean<?>>

All Superinterfaces:
java.lang.Comparable<PmObject>, PmAttr<T_REFED_PM>, PmDataInput, PmObject
All Known Implementing Classes:
PmAttrPmRefImpl

public interface PmAttrPmRef<T_REFED_PM extends PmBean<?>>
extends PmAttr<T_REFED_PM>

Presentation model for references to other bean that is represented by a PM.

The PM for the referenced bean will be created according to the PmFactoryCfg. That configuration may also be inherited by its parent context.

Author:
olaf boede

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.pm4j.core.pm.PmAttr
PmAttr.Converter<T>
 
Field Summary
 
Fields inherited from interface org.pm4j.core.pm.PmObject
STYLE_CLASS_DISABLED, STYLE_CLASS_ERROR, STYLE_CLASS_INFO, STYLE_CLASS_REQUIRED, STYLE_CLASS_WARN
 
Method Summary
 T_REFED_PM getValue()
          Repeated base class signature.
 java.lang.Object getValueAsBean()
           
 T_REFED_PM setValueAsBean(java.lang.Object bean)
          Sets the reference using a bean.
 
Methods inherited from interface org.pm4j.core.pm.PmAttr
getFormatString, getMaxLen, getMinLen, getOptionSet, getValueAsString, getValueLocalized, isPmValueChanged, isRequired, resetPmValues, setPmValueChanged, setValue, setValueAsString
 
Methods inherited from interface org.pm4j.core.pm.PmDataInput
commitBufferedPmChanges, isBufferedPmValueMode, pmValidate, rollbackBufferedPmChanges
 
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
 

Method Detail

setValueAsBean

T_REFED_PM setValueAsBean(java.lang.Object bean)
Sets the reference using a bean.

Parameters:
bean - A bean to reference.
Returns:
The presentation model for the given bean.

getValueAsBean

java.lang.Object getValueAsBean()
Returns:
The bean behind the referenced model.

getValue

T_REFED_PM getValue()
Repeated base class signature. Allows reflection based frameworks (such as EL) to identify the referenced type.

Specified by:
getValue in interface PmAttr<T_REFED_PM extends PmBean<?>>
Returns:
The attribute value.