at.spardat.xma.mdl
Interface IWModelClient

All Known Subinterfaces:
IListDomWMClient, IListWMClient, ISimpleWMClient, ITableWMClient, ITreeWMClient
All Known Implementing Classes:
ListDomWMClient, ListWMClient, SimpleWMClient, TableWMClient, TreeWMClient

public interface IWModelClient

This interface is realized by all WidgetModels executing at the client side. All WidgetModels implementing this interface must also construct a UIDelegateClient at construction time, which must be accessible via getUIDelegate.


Method Summary
 UIDelegateClient getUIDelegate()
          Returns the attached UIDelegateClient.
 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.
 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.
 

Method Detail

getUIDelegate

public UIDelegateClient getUIDelegate()
Returns the attached UIDelegateClient.

Returns:
the UIDelegateClient which never is null.

isEditable

public boolean isEditable()
Returns true if this model's widget may be modified by the end-user. Returns false, if the widget may not be edited, but the content of the widget should be readable and receive focus.


setEditable

public void setEditable(boolean what)
Sets the editable-state of this models's widget. A widget which is not editable can not be modified by the end user. Unlike the disabled-state, its contents remains readable and still receives focus.

Usually, 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.

Parameters:
what - true if the model's widget should be editable, false otherwise.

isEnabled

public boolean isEnabled()
Returns true, if this model's widget is enabled. Returns false, if it is disabled. A disabled control is displayed in a greyed look and does not receive focus.


setEnabled

public void setEnabled(boolean what)
Sets the enabled-state of this model's widget.

Parameters:
what - the state to set.