Hi Janak,
How would I write a coder for a class with multiple constructor. Do I have
to add setters and getters?
public class DynamicListEditor extends EditableStringListEditor
{
private ArrayList RefList= new ArrayList();
public DynamicListEditor(List<StringEntry> list) {
}
public DynamicListEditor(boolean lazyInitialization, List<StringEntry>
list) {
}
public DynamicListEditor(boolean lazyInitialization, List<StringEntry>
list, List<ULCIcon> icons) {
}
}
public class DynamicListEditorCoder implements IStreamCoder {
public String getPeerClassName() {
return DynamicListEditor.class.getName();
}
public void writeObject(IObjectOutputStream out, Object data) {
DynamicListEditor c = (DynamicListEditor)data;
try {
} catch (IOException e) {
e.printStackTrace(); //To change body of catch statement use
File | Settings | File Templates.
}
}
public Object readObject(IObjectInputStream in) throws IOException {
// Which parameters to use and which constructor????
return new DynamicListEditor(????);
}
}
Mario
Abacus Research
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer