Mobile Tools for Java
Release 1.0

org.eclipse.mtj.ui.editors.models
Interface IModel


public interface IModel


Method Summary
 void add(org.eclipse.mtj.ui.internal.forms.blocks.NamedObject[] objs, boolean notify)
          Add the elements to the model.
 void addModelListener(IModelListener listener)
          Add a listener to model modifications.
 void clear()
          Remove all elements from the model.
 void fireModelChanged(Object[] objects, String type, String property)
           
 Object[] getContents()
          Return all elements on the model
 void remove(org.eclipse.mtj.ui.internal.forms.blocks.NamedObject[] objs, boolean notify)
          Remove elements from the model.
 void removeModelListener(IModelListener listener)
          Remove the specified model listener
 

Method Detail

add

void add(org.eclipse.mtj.ui.internal.forms.blocks.NamedObject[] objs,
         boolean notify)
Add the elements to the model.

Parameters:
objs - objects to be added to the model
notify - flag to indicate if the ModelListeners must be notified about the inclusion action.

addModelListener

void addModelListener(IModelListener listener)
Add a listener to model modifications.

Parameters:
listener - the listener to be added.

clear

void clear()
Remove all elements from the model.


fireModelChanged

void fireModelChanged(Object[] objects,
                      String type,
                      String property)
Parameters:
objects -
type -
property -

getContents

Object[] getContents()
Return all elements on the model

Returns:
the elements on the model

remove

void remove(org.eclipse.mtj.ui.internal.forms.blocks.NamedObject[] objs,
            boolean notify)
Remove elements from the model.

Parameters:
objs - objects to be removed from the model
notify - flag to indicate if the ModelListeners must be notified about the removal action.

removeModelListener

void removeModelListener(IModelListener listener)
Remove the specified model listener

Parameters:
listener - the listener to be removed

Mobile Tools for Java
Release 1.0