Пример #1
0
 protected void overrideBaseComponentBean(BaseComponentBean componentBean) {
   super.setBaseComponentBean(componentBean);
   // 1st of property defined in tag put it in bean
   // if (style != null) ((TextBean)componentBean).setStyle(style);
   // 2nd if property exists in bean then use it
   if (((TextBean) componentBean).getStyle() != null) {
     style = ((TextBean) componentBean).getStyle();
   } else {
     ((TextBean) componentBean).setStyle(style);
   }
 }
Пример #2
0
 protected void setBaseComponentBean(BaseComponentBean componentBean) {
   super.setBaseComponentBean(componentBean);
   if (style != null) ((TextBean) componentBean).setStyle(style);
 }
Пример #3
0
 protected void updateBaseComponentBean(BaseComponentBean componentBean) {
   super.setBaseComponentBean(componentBean);
   if (style != null && ((TextBean) componentBean).getStyle() == null) {
     ((TextBean) componentBean).setStyle(style);
   }
 }