|
||||||||||
| 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.ListDomWM
at.spardat.xma.mdl.list.ListDomWMClient
Implementation of IListDomWMClient.
| Field Summary |
| Fields inherited from class at.spardat.xma.mdl.WModel |
S_NULL |
| Fields inherited from interface at.spardat.xma.mdl.list.IListDomWMClient |
MANDATORY, ORDER_LONG, ORDER_NATURAL, ORDER_SHORT, SHOW_LONG, SHOW_SHORT, SHOW_SHORT_LONG |
| Constructor Summary | |
ListDomWMClient(short id,
Page pm,
java.lang.String dataSource,
int style)
Constructs with a provided data source. |
|
| Method Summary | |
int |
getOrderStyle()
Returns one of the SHOW_* constants. |
PageClient |
getPageModelC()
Returns the PageClient this WidgetModelC belongs to. |
int |
getShowStyle()
Returns one of the ORDER_* constants. |
UIDelegateClient |
getUIDelegate()
Returns the attached UIDelegateClient. |
boolean |
handle(ModelChangeEvent event)
All events that might change a WidgetModel are executed via this method. |
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 true if the MANDATORY style has been set at construction time |
boolean |
isShowLongValueAsTooltips_()
Returns if the selected long value should be shown as tooltip. |
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 |
setMandatory(boolean what)
Sets the mandatory-property. |
void |
setOrderStyle(int orderStyle)
Sets the style that determines the sort order. |
void |
setShowLongValueToolTips()
Changes the behaviour of the combo box to show the long values of the selected value as tooltips, instead of the value entered in the UI-designer. |
void |
setShowStyle(int showStyle)
Sets the style that drives what is shown in the combo box. |
| Methods inherited from class at.spardat.xma.mdl.list.ListDomWM |
changed, clear, commit, describe, deselect, deselectAll, equalsCS, estimateMemory, externalize, getDataSource, getPage, getSelected, getSelection, getSelectionCount, internalize, isDynamicDataSource, isMultiSelect, isSelected, isStrict, randomlyChange, rollback, select, setDataSource, setDynamicDataSource |
| 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.IListDomWM |
getDataSource, isDynamicDataSource, setDataSource |
| Methods inherited from interface at.spardat.xma.mdl.ISelectable |
deselect, deselectAll, getSelected, getSelection, getSelectionCount, isMultiSelect, isSelected, isStrict, select |
| Constructor Detail |
public ListDomWMClient(short id,
Page pm,
java.lang.String dataSource,
int style)
id - a numeric id which identifies the WidgetModel within its Page.pm - reference to the enclosing PagedataSource - specifies a tabular data sourcestyle - one of the SHOW_-constants or MANDATORY defined in IListDomWMClient.
java.lang.IllegalArgumentException - if dataSource is null or empty.| Method Detail |
public void setShowStyle(int showStyle)
This set method may only be called after construction. Calling it later won't effect the visual appearance of the combo.
showStyle - must be either SHOW_LONG or SHOW_SHORT_LONG. If non of these
style is set, this method does nothing.public void setOrderStyle(int orderStyle)
This method may only be called after construction. Calling it later won't affect the visual appearance of the combo.
orderStyle - may be ORDER_LONG, ORDER_SHORT or
ORDER_NATURAL.public int getOrderStyle()
IListDomWMClient
getOrderStyle in interface IListDomWMClientIListDomWMClient.getOrderStyle()public int getShowStyle()
IListDomWMClient
getShowStyle in interface IListDomWMClientIListDomWMClient.getShowStyle()public boolean isMandatory()
IListDomWMClient
isMandatory in interface IListDomWMClientIListDomWMClient.isMandatory()public void setMandatory(boolean what)
IListDomWMClient
setMandatory in interface IListDomWMClientwhat - the new value of the mandatory-valueIListDomWMClient.setMandatory(boolean)public UIDelegateClient getUIDelegate()
IWModelClient
getUIDelegate in interface IWModelClientIWModelClient.getUIDelegate()public boolean handle(ModelChangeEvent event)
WModel
handle in class ListDomWMWModel.handle(at.spardat.xma.mdl.ModelChangeEvent)public PageClient getPageModelC()
public boolean isEditable()
IWModelClient
isEditable in interface IWModelClientIWModelClient.isEditable()public boolean isEnabled()
IWModelClient
isEnabled in interface IWModelClientIWModelClient.isEnabled()public 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.IWModelClient.setEditable(boolean)public void setEnabled(boolean what)
IWModelClient
setEnabled in interface IWModelClientwhat - the state to set.IWModelClient.setEnabled(boolean)public boolean isShowLongValueAsTooltips_()
public void setShowLongValueToolTips()
IListDomWMClient
setShowLongValueToolTips in interface IListDomWMClientIListDomWMClient.setShowLongValueToolTips()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||