org.pm4j.core.pm.impl.commands
Class PmListAddItemCommand

java.lang.Object
  extended by org.pm4j.core.pm.impl.PmObjectBase
      extended by org.pm4j.core.pm.impl.PmCommandImpl
          extended by org.pm4j.core.pm.impl.commands.PmListAddItemCommand
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable<PmObject>, PmCommand, PmObject

public class PmListAddItemCommand
extends PmCommandImpl
implements PmCommand

Command that changes an attribute value.

Author:
olaf boede

Nested Class Summary
 
Nested classes/interfaces inherited from class org.pm4j.core.pm.impl.PmCommandImpl
PmCommandImpl.MetaData
 
Nested classes/interfaces inherited from class org.pm4j.core.pm.impl.PmObjectBase
PmObjectBase.NameBuilder, PmObjectBase.NameBuilderAbsoluteName, PmObjectBase.NameBuilderShortName, PmObjectBase.NameBuilderTitle
 
Nested classes/interfaces inherited from interface org.pm4j.core.pm.PmCommand
PmCommand.CmdKind, PmCommand.CommandSet, PmCommand.CommandState
 
Field Summary
 
Fields inherited from class org.pm4j.core.pm.impl.PmCommandImpl
NAVI_PARAM_NEXT_DLG_PM, PERFORMED_REDIRECT
 
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
PmListAddItemCommand(PmAttrPmList<?> pmListAttr, java.util.Collection<?> addedItems)
           
PmListAddItemCommand(PmAttrPmList<?> presentationModel, java.lang.Object addedItem)
           
 
Method Summary
protected  void doItImpl()
          Subclasses may implement here their concrete logic.
 java.util.Collection<PmElement> getAddedItems()
           
 
Methods inherited from class org.pm4j.core.pm.impl.PmCommandImpl
accept, actionReturnOnFailure, addCommandDecorator, afterDo, beforeDo, clone, doIt, doIt, doItReturnNextDlgPm, doItReturnString, doItReturnVoid, getCmdKind, getCommandState, getNavigateBackLink, getNaviLink, getNaviLinkImpl, getParentCommands, getUndoCommand, getVetoCommandDecorator, getVisiblePmCommands, initMetaData, isASubCommandEnabled, isASubCommandVisible, isPmEnabledImpl, isPmVisibleImpl, isRequiresValidValues, makeMetaData, makeOptionalSuccessMsg, navigateBack, navigateTo, setNaviLink, setUndoCommand, validate
 
Methods inherited from class org.pm4j.core.pm.impl.PmObjectBase
addToPmComposite, canSetPmTitle, clearCachedPmValues, clearPmInvalidValues, compareTo, ensurePmMetaDataInitialization, findAnnotationsInPmHierarchy, getPmConversation, getPmConversationImpl, getPmIconPath, getPmMetaData, getPmMetaDataWithoutPmInitCall, getPmName, getPmParent, getPmProperty, getPmRelativeName, getPmResKey, getPmResKeyBase, getPmResLoaderCtxtClasses, getPmShortTitle, getPmStyleClasses, getPmStyleClassesImpl, getPmTitle, getPmTitleDef, getPmTitleImpl, getPmTooltip, getPmTooltipImpl, getVisiblePmCommands, isMetaDataInitialized, isPmEnabled, isPmReadonly, isPmReadonlyImpl, isPmValid, isPmVisible, onPmChildStateChange, onPmInit, onPmValueChange, readCacheStrategy, removePmChild, setPmEnabled, setPmParent, setPmProperty, setPmTitle, setPmVisible, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.pm4j.core.pm.PmCommand
addCommandDecorator, doIt, doItReturnNextDlgPm, doItReturnString, doItReturnVoid, getCmdKind, getCommandState, getNaviLink, getParentCommands, getUndoCommand, isRequiresValidValues
 
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

PmListAddItemCommand

public PmListAddItemCommand(PmAttrPmList<?> pmListAttr,
                            java.util.Collection<?> addedItems)

PmListAddItemCommand

public PmListAddItemCommand(PmAttrPmList<?> presentationModel,
                            java.lang.Object addedItem)
Method Detail

doItImpl

protected void doItImpl()
                 throws java.lang.Exception
Description copied from class: PmCommandImpl
Subclasses may implement here their concrete logic.

Overrides:
doItImpl in class PmCommandImpl
Throws:
java.lang.Exception - In case of an unexpected failure.

getAddedItems

public java.util.Collection<PmElement> getAddedItems()