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); } }
protected void setBaseComponentBean(BaseComponentBean componentBean) { super.setBaseComponentBean(componentBean); if (style != null) ((TextBean) componentBean).setStyle(style); }
protected void updateBaseComponentBean(BaseComponentBean componentBean) { super.setBaseComponentBean(componentBean); if (style != null && ((TextBean) componentBean).getStyle() == null) { ((TextBean) componentBean).setStyle(style); } }