org.beanfabrics.model
Class IconTextPM

java.lang.Object
  extended by org.beanfabrics.AbstractBean
      extended by org.beanfabrics.ValidatableBean
          extended by org.beanfabrics.model.AbstractPM
              extended by org.beanfabrics.model.AbstractValuePM
                  extended by org.beanfabrics.model.TextPM
                      extended by org.beanfabrics.model.IconTextPM
All Implemented Interfaces:
Bean, ContextOwner, IIconPM, ITextPM, IValuePM, PresentationModel, Supportable, Validatable

public class IconTextPM
extends TextPM
implements IIconPM

Author:
Michael Karneim

Nested Class Summary
 
Nested classes/interfaces inherited from class org.beanfabrics.model.TextPM
TextPM.DefaultOptionsValidationRule, TextPM.TextComparable
 
Nested classes/interfaces inherited from class org.beanfabrics.model.AbstractValuePM
AbstractValuePM.DefaultValidationRule
 
Nested classes/interfaces inherited from class org.beanfabrics.model.AbstractPM
AbstractPM.PropertiesValidationRule
 
Field Summary
 
Fields inherited from class org.beanfabrics.model.TextPM
KEY_MESSAGE_VALUE_NOT_AN_OPTION
 
Constructor Summary
IconTextPM()
           
 
Method Summary
 javax.swing.Icon getIcon()
           
 boolean isEmpty()
          Return true if the content of this model is interpreted as empty.
 void setIcon(javax.swing.Icon newIcon)
           
 void setIconUrl(java.net.URL url)
           
 
Methods inherited from class org.beanfabrics.model.TextPM
getComparable, getDefaultText, getOptions, getText, getText, isModified, isRestrictedToOptions, preset, reformat, reset, setDefaultText, setOptions, setRestrictedToOptions, setText, toString
 
Methods inherited from class org.beanfabrics.model.AbstractValuePM
getDescription, getTitle, isEditable, isMandatory, revalidate, setDescription, setEditable, setMandatory, setTitle
 
Methods inherited from class org.beanfabrics.model.AbstractPM
createPropertiesValidationRule, getContext, getSupportMap, revalidateProperties
 
Methods inherited from class org.beanfabrics.ValidatableBean
getValidationState, getValidator, isValid, 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, wait, wait, wait
 
Methods inherited from interface org.beanfabrics.model.IValuePM
getComparable, getDescription, getTitle, isEditable, isMandatory, setDescription, setEditable, setMandatory, setTitle
 
Methods inherited from interface org.beanfabrics.Bean
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface org.beanfabrics.validation.Validatable
getValidationState, getValidator, isValid, revalidate
 
Methods inherited from interface org.beanfabrics.support.Supportable
getSupportMap
 
Methods inherited from interface org.beanfabrics.context.ContextOwner
getContext
 

Constructor Detail

IconTextPM

public IconTextPM()
Method Detail

setIcon

public void setIcon(javax.swing.Icon newIcon)

getIcon

public javax.swing.Icon getIcon()
Specified by:
getIcon in interface IIconPM

setIconUrl

public void setIconUrl(java.net.URL url)

isEmpty

public boolean isEmpty()
Description copied from class: TextPM
Return true if the content of this model is interpreted as empty.

Specified by:
isEmpty in interface IValuePM
Overrides:
isEmpty in class TextPM
Returns:
true if content is empty, else false


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