at.spardat.xma.mdl.list
Interface IListWMClient

All Superinterfaces:
IListWM, ISelectable, IWModelClient
All Known Implementing Classes:
ListWMClient

public interface IListWMClient
extends IListWM, IWModelClient

Client side interface of the widged model to represent a list of choises. It adds the functionality of formatters to its super interface.


Field Summary
 
Fields inherited from interface at.spardat.xma.mdl.list.IListWM
S_MULTI_SELECT, S_NOT_STRICT
 
Method Summary
 at.spardat.enterprise.fmt.IFmt getFmt()
          Returns the associated Formatter or null if none is associated.
 java.lang.String getFormattedString()
          Provides a string that results from applying the formatter to the internally stored representation of the selected entry.
 boolean isDoPrefixSearch()
           
 boolean isMandatory()
          Returns the MANDATORY-property of the associated formatter.
 boolean isPrefixSearchCaseSensitive()
           
 void setDoPrefixSearch(boolean doPrefixSearch)
          determine if prefix search has to be done on this model
 void setFmt(at.spardat.enterprise.fmt.IFmt formatter)
          Sets a new Formatter.
 void setMandatory(boolean what)
          If there is a formatter attached, this method clones the old formatter, changes the MANDATORY-property of the formatter to the provided value, and sets the formatter.
 void setPrefixSearchCaseSensitive(boolean prefixSearchCaseSensitive)
          determine if prefix seach has to be done case sensitive or not
 
Methods inherited from interface at.spardat.xma.mdl.list.IListWM
add, add, add, add, add, add, add, clear, contains, contains, getEntry, getEntry, getStringEntry, indexOf, indexOf, remove, remove, remove, replace, replace, size
 
Methods inherited from interface at.spardat.xma.mdl.ISelectable
deselect, deselectAll, getSelected, getSelection, getSelectionCount, isMultiSelect, isSelected, isStrict, select
 
Methods inherited from interface at.spardat.xma.mdl.IWModelClient
getUIDelegate, isEditable, isEnabled, setEditable, setEnabled
 

Method Detail

getFmt

public at.spardat.enterprise.fmt.IFmt getFmt()
Returns the associated Formatter or null if none is associated.

Returns:
the attached formatter

setFmt

public void setFmt(at.spardat.enterprise.fmt.IFmt formatter)
Sets a new Formatter.

Parameters:
formatter - to be set. It must be compatible to the type of the entries. For type T_STRING, any formatter may be set. For the other types, the type of the formatter must be compatible with the type specified in the superclass.

getFormattedString

public java.lang.String getFormattedString()
Provides a string that results from applying the formatter to the internally stored representation of the selected entry.


isMandatory

public boolean isMandatory()
Returns the MANDATORY-property of the associated formatter. Returns false, if there is no formatter associated.


setMandatory

public void setMandatory(boolean what)
If there is a formatter attached, this method clones the old formatter, changes the MANDATORY-property of the formatter to the provided value, and sets the formatter. If there is no formatter attached, this method does nothing.


isPrefixSearchCaseSensitive

public boolean isPrefixSearchCaseSensitive()
Returns:
if prefix search will be done case sensitive
Since:
1.7.3

setPrefixSearchCaseSensitive

public void setPrefixSearchCaseSensitive(boolean prefixSearchCaseSensitive)
determine if prefix seach has to be done case sensitive or not

Parameters:
prefixSearchCaseSensitive -
Since:
1.7.3

isDoPrefixSearch

public boolean isDoPrefixSearch()
Returns:
if prefix search will be done on this list model
Since:
1.8.1

setDoPrefixSearch

public void setDoPrefixSearch(boolean doPrefixSearch)
determine if prefix search has to be done on this model

Since:
1.8.1