From 69d49facdfac0eda24bc5a4e287ea8b3eb89aedf Mon Sep 17 00:00:00 2001 From: Fakhreddine Belgaied Date: Sun, 4 Jun 2017 04:21:45 +0100 Subject: [PATCH] Update CustomStringSchema add the title to the checkbox and the default value --- .../java/io/asfjava/ui/core/schema/CustomStringSchema.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/io/asfjava/ui/core/schema/CustomStringSchema.java b/src/main/java/io/asfjava/ui/core/schema/CustomStringSchema.java index b24533b..992f1be 100644 --- a/src/main/java/io/asfjava/ui/core/schema/CustomStringSchema.java +++ b/src/main/java/io/asfjava/ui/core/schema/CustomStringSchema.java @@ -33,6 +33,12 @@ public void enrichWithBeanProperty(BeanProperty beanProperty) { Set enums = new HashSet<>(Arrays.asList(Comboannotation.values())); this.setEnums(enums); } + CheckBox checkBoxannotation=beanProperty.getAnnotation(CheckBox.class); + if(checkBoxannotation != null) + { + this.setTitle(checkBoxannotation.title()); + this.setDefault(checkBoxannotation.defaultvalue()); + } TextArea textArea = beanProperty.getAnnotation(TextArea.class); if (textArea != null) { this.setTitle(textArea.title());