Release notes for MVC
Release notes for MVC 2.1
- Fixed bug in Editor -- removed obsolete
register(JTable)
method.
- Added account example, to demonstrate usage of interacting
GUI widgets.
Release notes for MVC 2.0
- Eliminated class
FieldID, generally simplified the
API. For backwards compatibility, all changes are
confind to subpackage v2; exisitng classes are
however deprecated.
- All examples updated to the v.2 API.
- Fixed a bug in the verifiers; updated Javadoc.
Porting an application to MVC 2.0
If your application was coded againts the 1.x API, here are the steps
for porting it to the new API.
- Remove all import statements for
FieldID .
- Convert all MVC
import statements
from
alma.obops.mvc to
alma.obops.mvc.v2. For instance,
import alma.obops.mvc.v2.Editor;
If you are using verifiers, convert all import statements from
alma.obops.mvc.verifiers to
alma.obops.mvc.v2.verifiers
- Convert all field IDs definitions from
FieldID to String; for instance, from
static final FieldID FID_TIMEDATE = new FieldID();
to
static final String FID_TIMEDATE = "time-date";
- In
Editor subclasses, convert all calls to
register(JComponent,FieldID) for instance, from
register( datetime, FID_TIMEDATE );
to
datetime.setName( FID_TIMEDATE );
register( datetime );
- In subclasses of
AbstractEditorPlugin, convert the definition
of register() from
public void register( Editor, FieldID, JComponent )
to
public void register( Editor, String, JComponent )
In the body of the method, change all FieldID variable
definitions to be String instead.
- In subclasses of
Model, convert the definition
of update() from
public Object update( Editor, FieldID, Object )
to
public Object update( Editor, String, Object )
In the body of the method, change all FieldID variable
definitions to be String instead.
- In classes implementing
ModelChangeSubscriber,
convert the definition
of modelChanged() from
public void modelChanged( Model, FieldID, Object )
to
public void modelChanged( Model, String, Object )
In the body of the method, change all FieldID variable
definitions to be String instead.
Release notes for MVC 1.1.1
- Fixed bug: NullPointerException thrown when no plugins
were registered with the MVC platform.