|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.xma.mdl.WModel
at.spardat.xma.mdl.list.ListWM
at.spardat.xma.mdl.list.ListWMClient
Client side implementation of ListWM.
| Field Summary |
| Fields inherited from class at.spardat.xma.mdl.WModel |
S_NULL |
| Fields inherited from interface at.spardat.xma.mdl.list.IListWM |
S_MULTI_SELECT, S_NOT_STRICT |
| Constructor Summary | |
ListWMClient(short id,
Page pm,
int style)
Constructs a ListWMClient. |
|
| 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. |
PageClient |
getPageModelC()
Returns the PageClient this WidgetModelC belongs to. |
UIDelegateClient |
getUIDelegate()
Returns the attached UIDelegateClient. |
boolean |
handle(ModelChangeEvent event)
All events that might change a WidgetModel are executed via this method. |
boolean |
isDoPrefixSearch()
|
boolean |
isEditable()
Returns true if this model's widget may be modified by the end-user. |
boolean |
isEnabled()
Returns true, if this model's widget is enabled. |
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 |
setEditable(boolean what)
Sets the editable-state of this models's widget. |
void |
setEnabled(boolean what)
Sets the enabled-state of this model's widget. |
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 class at.spardat.xma.mdl.list.ListWM |
add, add, add, add, add, add, add, changed, clear, commit, contains, contains, describe, deselect, deselectAll, equalsCS, estimateMemory, externalize, getEntry, getEntry, getSelected, getSelection, getSelectionCount, getStringEntry, indexOf, indexOf, internalize, isMultiSelect, isSelected, isStrict, isUserStrict, randomlyChange, remove, remove, remove, replace, replace, rollback, select, size |
| Methods inherited from class at.spardat.xma.mdl.WModel |
cleanUpAfterServerEvent, getId, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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 |
| Constructor Detail |
public ListWMClient(short id,
Page pm,
int style)
IListWM.S_MULTI_SELECT
IListWM.S_NOT_STRICT
id - a numeric id which identifies the WidgetModel within its Page.pm - reference to the enclosing Pagestyle - one of the style-constants listed above or S_NULL.| Method Detail |
public at.spardat.enterprise.fmt.IFmt getFmt()
IListWMClient
getFmt in interface IListWMClientpublic void setFmt(at.spardat.enterprise.fmt.IFmt formatter)
IListWMClient
setFmt in interface IListWMClientformatter - 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.public java.lang.String getFormattedString()
IListWMClient
getFormattedString in interface IListWMClientpublic boolean handle(ModelChangeEvent event)
WModel
handle in class ListWMpublic UIDelegateClient getUIDelegate()
IWModelClient
getUIDelegate in interface IWModelClientpublic PageClient getPageModelC()
public boolean isEditable()
IWModelClient
isEditable in interface IWModelClientpublic void setEditable(boolean what)
IWModelClientUsually, this method is called on all widget-models of a page to set the whole page to a read-only mode.
If this method is not called, the default is true.
setEditable in interface IWModelClientwhat - true if the model's widget should be editable, false otherwise.public boolean isEnabled()
IWModelClient
isEnabled in interface IWModelClientpublic void setEnabled(boolean what)
IWModelClient
setEnabled in interface IWModelClientwhat - the state to set.public boolean isMandatory()
IListWMClient
isMandatory in interface IListWMClientISimpleWMClient.isMandatory()public void setMandatory(boolean what)
IListWMClient
setMandatory in interface IListWMClientISimpleWMClient.setMandatory(boolean)public boolean isPrefixSearchCaseSensitive()
isPrefixSearchCaseSensitive in interface IListWMClientpublic void setPrefixSearchCaseSensitive(boolean prefixSearchCaseSensitive)
setPrefixSearchCaseSensitive in interface IListWMClientprefixSearchCaseSensitive - public boolean isDoPrefixSearch()
isDoPrefixSearch in interface IListWMClientpublic void setDoPrefixSearch(boolean doPrefixSearch)
setDoPrefixSearch in interface IListWMClient
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||