Changeset 1080
- Timestamp:
- 10/15/07 13:50:21 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
org.jalcedo.client.examples/trunk/org.jalcedo.client.examples.beans.crud/src/org/jalcedo/client/examples/beans/crud/views/PeapleMasterDetailComposite.java
r1055 r1080 35 35 public class PeapleMasterDetailComposite extends Composite { 36 36 37 private DataBindingContext dbc = null; 38 37 39 private IObservableList masterData = null; 38 40 … … 54 56 private Text ageText = null; 55 57 56 public PeapleMasterDetailComposite(Composite parent, int style, IObservableList list ) {58 public PeapleMasterDetailComposite(Composite parent, int style, IObservableList list, DataBindingContext dbc) { 57 59 super(parent, style); 60 this.dbc = dbc; 58 61 this.masterData = list; 59 62 initialize(); … … 61 64 initializeActions(); 62 65 } 66 67 public PeapleMasterDetailComposite(Composite parent, int style, List<Person> personList, DataBindingContext dbc) { 68 this(parent, style, new WritableList(personList, Person.class), dbc); 69 } 63 70 64 71 public PeapleMasterDetailComposite(Composite parent, int style, List<Person> personList) { 65 this(parent, style, new WritableList(personList, Person.class));72 this(parent, style, personList, null); 66 73 } 67 74 68 75 public PeapleMasterDetailComposite(Composite parent, int style) { 69 this(parent, style, new WritableList() );76 this(parent, style, new WritableList(), null); 70 77 } 71 78 … … 103 110 .observeDetailValue(Realm.getDefault(), selection, "age", int.class); 104 111 105 DataBindingContext dbc = new DataBindingContext(); 112 if (dbc == null) { 113 dbc = new DataBindingContext(); 114 } 106 115 107 116 dbc.bindValue(
