org.beanfabrics.model
Class AbstractOperationPM

java.lang.Object
  extended by org.beanfabrics.AbstractBean
      extended by org.beanfabrics.ValidatableBean
          extended by org.beanfabrics.model.AbstractPM
              extended by org.beanfabrics.model.AbstractOperationPM
All Implemented Interfaces:
Bean, ContextOwner, IOperationPM, PresentationModel, Supportable, Validatable
Direct Known Subclasses:
OperationPM

public abstract class AbstractOperationPM
extends AbstractPM
implements IOperationPM

Author:
Michael Karneim

Nested Class Summary
 
Nested classes/interfaces inherited from class org.beanfabrics.model.AbstractPM
AbstractPM.PropertiesValidationRule
 
Constructor Summary
AbstractOperationPM()
           
 
Method Summary
 void check()
          
abstract  void execute()
          
 java.lang.String getDescription()
          
 javax.swing.Icon getIcon()
          
 java.lang.String getTitle()
          
 boolean isEnabled()
          
 void setDescription(java.lang.String description)
          
 void setIcon(javax.swing.Icon newIcon)
          
 void setIconUrl(java.net.URL url)
          
 void setTitle(java.lang.String title)
          
 
Methods inherited from class org.beanfabrics.model.AbstractPM
createPropertiesValidationRule, getContext, getSupportMap, revalidateProperties
 
Methods inherited from class org.beanfabrics.ValidatableBean
getValidationState, getValidator, isValid, revalidate, setValidationState
 
Methods inherited from class org.beanfabrics.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, equals, getPropertyChangeSupport, 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.beanfabrics.model.IOperationPM
getValidator
 
Methods inherited from interface org.beanfabrics.Bean
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface org.beanfabrics.validation.Validatable
getValidationState, isValid, revalidate
 
Methods inherited from interface org.beanfabrics.support.Supportable
getSupportMap
 
Methods inherited from interface org.beanfabrics.context.ContextOwner
getContext
 

Constructor Detail

AbstractOperationPM

public AbstractOperationPM()
Method Detail

setIcon

public void setIcon(javax.swing.Icon newIcon)

Specified by:
setIcon in interface IOperationPM

getIcon

public javax.swing.Icon getIcon()

Specified by:
getIcon in interface IOperationPM

setIconUrl

public void setIconUrl(java.net.URL url)

Specified by:
setIconUrl in interface IOperationPM

getTitle

public java.lang.String getTitle()

Specified by:
getTitle in interface IOperationPM

setTitle

public void setTitle(java.lang.String title)

Specified by:
setTitle in interface IOperationPM

getDescription

public java.lang.String getDescription()

Specified by:
getDescription in interface IOperationPM

setDescription

public void setDescription(java.lang.String description)

Specified by:
setDescription in interface IOperationPM

execute

public abstract void execute()
                      throws java.lang.Throwable

Specified by:
execute in interface IOperationPM
Throws:
java.lang.Throwable

isEnabled

public boolean isEnabled()

Specified by:
isEnabled in interface IOperationPM

check

public void check()
           throws java.lang.IllegalStateException

Specified by:
check in interface IOperationPM
Throws:
java.lang.IllegalStateException


© 2010 by Michael Karneim, http://www.beanfabrics.org