Hi Daniel,
UlcEvent inherits constants from IUlcEventConstants.
IUlcEventConstants too has been deprecated, instead developers should use
UlcEventConstants and UlcEventCategories.
In your example you are checking if the model was updated, hence you should
do the following:
if (event.getType() == TableModelEvent.UPDATE) {
doSomethingUseful();
}
I have created a comment on https://www.canoo.com/jira/browse/UBA-7069.
Thanks and regards,
Janak
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of
>[EMAIL PROTECTED]
>Sent: Thursday, January 11, 2007 4:43 PM
>To: [email protected]
>Subject: [ULC-developer] Missing constants to equalize eventtypes
>
>
>
>Hello!
>
>I am currently developing a special behaviour when a tablemodel has been
>updated and I couldn't find an alternative for a deprecated constant.
>
> tableModel.addTableModelListener(new ITableModelListener() {
> public void tableChanged(TableModelEvent event) {
> if (event.getType() == UlcEvent.MODEL_UPDATE) {
> doSomethingUseful();
> }
> }
> });
>
>... where "UlcEvent.MODEL_UPDATE" is due UlcEvent deprecated. Can you
>please tell me where to find the constant to equalize "getType()"? The
>apidocs doesn't show any alternative to me.
>
>
>Thanks & best regards,
>DanielPz"
>
>,=%
>q!2jr
>~u
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer