org.pm4j.core.pm
Interface PmElement

All Superinterfaces:
java.lang.Comparable<PmObject>, PmDataInput, PmObject, PmTreeNode
All Known Subinterfaces:
PmBean<T_BEAN>, PmConversation, PmTableRowPm, PmTabSet
All Known Implementing Classes:
PmBeanBase, PmBeanBase.Nested, PmConversationImpl, PmConversationImpl.ChildSession, PmElementBase, PmElementImpl, PmPagerImpl, PmPagerImpl.SelectableItemPm, PmTabSetImpl

public interface PmElement
extends PmObject, PmDataInput, PmTreeNode

A presentation model that supports a set of attributes.

Such models and their attributes are intended to be visualized in form displays.

Author:
olaf boede

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
 PmAttr<?> getPmAttribute(java.lang.String attrName)
           
 java.util.List<PmAttr<?>> getPmAttributes()
           
 java.io.Serializable getPmKey()
           
 
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
 

Method Detail

getPmAttributes

java.util.List<PmAttr<?>> getPmAttributes()
Returns:
The set of attributes.

getPmAttribute

PmAttr<?> getPmAttribute(java.lang.String attrName)
Parameters:
attrName - Name of the requested attribute.
Returns:
The matching attribute instance. Never null.
Throws:
org.pm4j.core.exception.PmRuntimeException - when there is no matching attribute.

getPmKey

java.io.Serializable getPmKey()
Returns:
A key that identifies the element within the session.