Last active
March 14, 2020 22:10
-
-
Save niloc132/b1a84265ed2a4d5cf422201ca293167a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Generated("org.gwtproject.editor.processor.DriverProcessor") | |
public class DelegateMapTest_1PersonEditorWithCoAddressEditorView_manager_name_Context extends AbstractEditorContext<String> { | |
private final Person parent; | |
public DelegateMapTest_1PersonEditorWithCoAddressEditorView_manager_name_Context(Person parent, Editor<String> editor, String path) { | |
super(editor, path); | |
this.parent = parent; | |
} | |
@Override | |
public boolean canSetInModel() { | |
return parent != null && true && parent.getManager() != null; | |
} | |
@Override | |
public String checkAssignment(Object value) { | |
return (String) value; | |
} | |
@Override | |
public Class getEditedType() { | |
return java.lang.String.class; | |
} | |
@Override | |
public String getFromModel() { | |
return (parent != null && parent.getManager() != null) ? parent.getManager().getName() : null; | |
} | |
@Override | |
public void setInModel(String data) { | |
parent.getManager().setName(data);; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Generated("org.gwtproject.editor.processor.DriverProcessor") | |
public class DelegateMapTest_1PersonEditorWithCoAddressEditorView_name_Context extends AbstractEditorContext<String> { | |
private final Person parent; | |
public DelegateMapTest_1PersonEditorWithCoAddressEditorView_name_Context(Person parent, Editor<String> editor, String path) { | |
super(editor, path); | |
this.parent = parent; | |
} | |
@Override | |
public boolean canSetInModel() { | |
return parent != null && true && true; | |
} | |
@Override | |
public String checkAssignment(Object value) { | |
return (String) value; | |
} | |
@Override | |
public Class getEditedType() { | |
return java.lang.String.class; | |
} | |
@Override | |
public String getFromModel() { | |
return (parent != null && true) ? parent.getName() : null; | |
} | |
@Override | |
public void setInModel(String data) { | |
parent.setName(data);; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Simple data object used by multiple tests. */ | |
public class Person { | |
Address address; | |
Person manager; | |
String name; | |
long localTime; | |
public Address getAddress() { | |
return address; | |
} | |
public long getLocalTime() { | |
return localTime; | |
} | |
public Person getManager() { | |
return manager; | |
} | |
public String getName() { | |
return name; | |
} | |
public void setAddress(Address address) { | |
this.address = address; | |
} | |
public void setLocalTime(long localTime) { | |
this.localTime = localTime; | |
} | |
public void setManager(Person manager) { | |
this.manager = manager; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PersonEditorWithCoAddressEditorView implements Editor<Person> { | |
AddressCoEditorView addressEditor = new AddressCoEditorView(); | |
SimpleEditor<String> name = SimpleEditor.of("uninitialized"); | |
@Path("manager.name") | |
SimpleEditorWithDelegate<String> managerName = | |
new SimpleEditorWithDelegate<String>("uninitialized"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment