org.beanfabrics.model
Interface ITextPM

All Superinterfaces:
Bean, ContextOwner, IValuePM, PresentationModel, Supportable, Validatable
All Known Subinterfaces:
IBigDecimalPM, IBooleanPM, IDatePM, IIntegerPM
All Known Implementing Classes:
BigDecimalPM, BooleanPM, DatePM, DecimalPM, IconTextPM, IntegerPM, MoneyPM, TextPM

public interface ITextPM
extends IValuePM

Author:
Michael Karneim

Method Summary
 Options getOptions()
           
 java.lang.String getText()
          Returns the text value of this model.
 boolean isModified()
          Returns if this object was modified (means: if the text value equals the default text).
 void preset()
          Sets the text value as default text.
 void reformat()
          Parses the content and formats it.
 void reset()
          Sets the default text as text value.
 void setOptions(Options options)
           
 void setText(java.lang.String aText)
          Set the text to be stored in this model.
 
Methods inherited from interface org.beanfabrics.model.IValuePM
getComparable, getDescription, getTitle, isEditable, isEmpty, 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
 

Method Detail

getText

java.lang.String getText()
Returns the text value of this model.

Returns:
the text value

setText

void setText(java.lang.String aText)
Set the text to be stored in this model. If the argument is null, it will be changed into the empty string "".

Parameters:
aText - the text to set

isModified

boolean isModified()
Returns if this object was modified (means: if the text value equals the default text).


reset

void reset()
Sets the default text as text value.


preset

void preset()
Sets the text value as default text.


setOptions

void setOptions(Options options)

getOptions

Options getOptions()

reformat

void reformat()
Parses the content and formats it.



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