use of com.manydesigns.elements.reflection.ClassAccessor in project Portofino by ManyDesigns.
the class SelectFieldTest3 method setupSelectFields.
private void setupSelectFields(Mode mode) {
ClassAccessor classAccessor = JavaClassAccessor.getClassAccessor(SelectBean3.class);
PropertyAccessor myPropertyAccessor = null;
try {
myPropertyAccessor = classAccessor.getProperty("longValue");
} catch (NoSuchFieldException e) {
fail(e.getMessage(), e);
}
// impostiamo selectField1
selectField = new SelectField(myPropertyAccessor, mode, null);
selectField.setSelectionModel(selectionModel);
}
use of com.manydesigns.elements.reflection.ClassAccessor in project Portofino by ManyDesigns.
the class TextFieldTest method setupFields.
private void setupFields(Mode mode) {
ClassAccessor classAccessor = JavaClassAccessor.getClassAccessor(this.getClass());
try {
PropertyAccessor myPropertyAccessor = classAccessor.getProperty("myText");
textField = new TextField(myPropertyAccessor, mode, null);
myPropertyAccessor = classAccessor.getProperty("annotatedText");
annotatedTextField = new TextField(myPropertyAccessor, mode, null);
} catch (NoSuchFieldException e) {
fail("No such field", e);
}
}
use of com.manydesigns.elements.reflection.ClassAccessor in project Portofino by ManyDesigns.
the class AnnotatedSelectFieldTest method setupField.
private void setupField(Mode mode) throws Exception {
ClassAccessor classAccessor = JavaClassAccessor.getClassAccessor(this.getClass());
PropertyAccessor myPropertyAccessor = classAccessor.getProperty("myText");
selectField = new SelectField(myPropertyAccessor, mode, null);
}
use of com.manydesigns.elements.reflection.ClassAccessor in project Portofino by ManyDesigns.
the class DateFieldTest method setupFields.
private void setupFields(Mode mode) {
ClassAccessor classAccessor = JavaClassAccessor.getClassAccessor(this.getClass());
try {
PropertyAccessor myPropertyAccessor = classAccessor.getProperty("date");
dateField = new DateField(myPropertyAccessor, mode, null);
} catch (NoSuchFieldException e) {
fail(e.getMessage(), e);
}
}
use of com.manydesigns.elements.reflection.ClassAccessor in project Portofino by ManyDesigns.
the class NumericFieldTest method setUp.
@Override
@BeforeMethod
public void setUp() throws Exception {
super.setUp();
myDecimal = null;
ClassAccessor classAccessor = JavaClassAccessor.getClassAccessor(this.getClass());
PropertyAccessor myPropertyAccessor = classAccessor.getProperty("myDecimal");
decimalField = new NumericField(myPropertyAccessor, Mode.EDIT, null);
}
Aggregations