public abstract class AbstractTuttiBeanUIModel<E,B extends AbstractTuttiBeanUIModel<E,B>> extends org.jdesktop.beans.AbstractSerializableBean implements TuttiEntity, PropagatePropertyChangeListener.PropagatePropertyChange
| Modifier and Type | Field and Description |
|---|---|
protected String |
id |
protected boolean |
modify |
static String |
PROPERTY_MODIFY |
static String |
PROPERTY_VALID |
protected boolean |
valid |
PROPERTY_ID| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTuttiBeanUIModel(Class<E> entityType,
org.nuiton.util.beans.Binder<E,B> fromBeanBinder,
org.nuiton.util.beans.Binder<B,E> toBeanBinder) |
| Modifier and Type | Method and Description |
|---|---|
void |
firePropertyChanged(String propertyName,
Object oldValue,
Object newValue) |
void |
fromBean(E bean) |
void |
fromEntity(E entity) |
protected <B> B |
getChild(Collection<B> child,
int index) |
protected <B> B |
getChild(List<B> child,
int index) |
String |
getId() |
Integer |
getIdAsInt() |
boolean |
isCreate() |
boolean |
isModify() |
boolean |
isValid() |
protected abstract E |
newEntity() |
void |
setId(Integer id) |
void |
setId(String id) |
void |
setModify(boolean modify) |
void |
setValid(boolean valid) |
E |
toBean() |
E |
toEntity() |
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListenerpublic static final String PROPERTY_MODIFY
public static final String PROPERTY_VALID
protected String id
protected boolean modify
protected boolean valid
public void fromEntity(E entity)
public E toEntity()
public final void fromBean(E bean)
public final E toBean()
protected abstract E newEntity()
public boolean isModify()
public void setModify(boolean modify)
public boolean isValid()
public void setValid(boolean valid)
public boolean isCreate()
public Integer getIdAsInt()
getIdAsInt in interface TuttiEntitypublic void setId(Integer id)
setId in interface TuttiEntitypublic String getId()
getId in interface TuttiEntitypublic void setId(String id)
setId in interface TuttiEntitypublic void firePropertyChanged(String propertyName, Object oldValue, Object newValue)
firePropertyChanged in interface PropagatePropertyChangeListener.PropagatePropertyChangeprotected <B> B getChild(Collection<B> child, int index)
protected <B> B getChild(List<B> child, int index)
Copyright © 2012–2013 Ifremer. All rights reserved.