org.beanfabrics.model
Interface ITextPM

All Superinterfaces:
Bean, ContextOwner, HasComparable, IValuePM, PresentationModel, Supportable, Validatable
All Known Subinterfaces:
IBigDecimalPM, IBooleanPM, IDatePM, IIntegerPM
All Known Implementing Classes:
BigDecimalPM, BooleanPM, DatePM, DecimalPM, HorizontalAlignmentPM, IconTextPM, ImageTextPM, IntegerPM, MoneyPM, PathPM, PhoneNumberPM, RegexPM, TextPM, TitlePM

public interface ITextPM
extends IValuePM

The ITextPM is the interface of PM components that support a text value.


Method Summary
 Options getOptions()
          Returns the options.
 java.lang.String getText()
          Returns the text value of this PM.
 boolean isModified()
          Returns whether this PM is modified.
 void preset()
          Sets the default text of this PM to the text value of this PM.
 void reformat()
          Reformats the text value by first parsing it and the formatting it with an appropriate format.
 void reset()
          Sets the value of this PM to the value of the default text.
 void setOptions(Options options)
          Sets the Options.
 void setText(java.lang.String aText)
          Set the value of this OPm to the given text.
 
Methods inherited from interface org.beanfabrics.model.IValuePM
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
 
Methods inherited from interface org.beanfabrics.HasComparable
getComparable
 

Method Detail

getText

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

Returns:
the text value

setText

void setText(java.lang.String aText)
Set the value of this OPm to the given text. If the argument is null, it will be changed into the empty string "".

Parameters:
aText - the text value

isModified

boolean isModified()
Returns whether this PM is modified. This PM is modified if the text value isn't equal to the default text.

See Also:
getText(), preset()

reset

void reset()
Sets the value of this PM to the value of the default text.


preset

void preset()
Sets the default text of this PM to the text value of this PM.


setOptions

void setOptions(Options options)
Sets the Options. This attribute is used by some view components to show possible text values that can be choosen.

Parameters:
options -

getOptions

Options getOptions()
Returns the options.

Returns:
the options
See Also:
setOptions(Options)

reformat

void reformat()
Reformats the text value by first parsing it and the formatting it with an appropriate format. It is not required that this method has any effect.