1 package cz
.cvut
.promod
.services
.userService
;
3 import com
.jgoodies
.binding
.value
.ValueModel
;
4 import com
.jgoodies
.binding
.beans
.Model
;
5 import com
.jgoodies
.binding
.PresentationModel
;
8 * ProMod, master thesis project
9 * User: Petr Zverina, petr.zverina@gmail.com
10 * Date: 17:51:26, 10.10.2009
14 * UserService implementation
16 public class UserServiceImpl
extends Model
implements UserService
{
18 public static String USER_PROPERTY
= "user";
21 private final PresentationModel
<UserServiceImpl
> presentationModel
= new PresentationModel
<UserServiceImpl
>(this);
22 private final ValueModel userValueModel
= presentationModel
.getModel(USER_PROPERTY
);
25 public String
getUser() {
30 public void setUser(final String user
) {
31 final String oldUser
= this.user
;
33 firePropertyChange(USER_PROPERTY
, oldUser
, user
);
37 public ValueModel
getUserValueModel() {
38 return userValueModel
;
42 public boolean check() {