Package org.araneaframework.uilib.form

Examples of org.araneaframework.uilib.form.GenericFormElement


  public void writeForm(FormWidget form, Map map) {

    for (Iterator i = map.keySet().iterator(); i.hasNext();) {

      String key = (String) i.next();
      GenericFormElement element = form.getElement(key);

      if (element != null) {
        if (element instanceof FormElement) {
          Data data = ((FormElement) element).getData();
          if (data != null) {
View Full Code Here


  public void writeFormBean(FormWidget form, Object vo) {
    List voFields = beanMapper.getBeanFields();

    for (Iterator i = voFields.iterator(); i.hasNext();) {
      String field = (String) i.next();
      GenericFormElement element = form.getElement(field);
      if (element != null) {
        if (element instanceof FormElement) {         
          Data data = ((FormElement) element).getData();
          if (data != null) {
            data.setValue(beanMapper.getBeanFieldValue(vo, field));
View Full Code Here

  public void readFormBean(Object vo) {
    BeanMapper beanMapper = new BeanMapper(vo.getClass());
    for (Iterator i = compositeFormElement.getElements().entrySet().iterator(); i.hasNext();) {
      Map.Entry entry = (Map.Entry) i.next();
     
      GenericFormElement element = (GenericFormElement) entry.getValue();
      String elementId = (String) entry.getKey();
     
      if (element instanceof FormElement) {
        if (beanMapper.fieldIsWritable(elementId)) {
          Data data = ((FormElement) element).getData();
View Full Code Here

    Map result = new HashMap();

    for (Iterator i = compositeFormElement.getElements().entrySet().iterator(); i.hasNext();) {
      Map.Entry entry = (Map.Entry) i.next();
     
      GenericFormElement element = (GenericFormElement) entry.getValue();
      String elementId = (String) entry.getKey();
     
      if (element instanceof FormElement) {
        Data data = ((FormElement) element).getData();
        if (data != null) {
View Full Code Here

    public static void setFormElementDefaultEditableTags(FormWidget form) {
      for (Iterator i = form.getElements().entrySet().iterator(); i.hasNext();) {
        Map.Entry entry = (Map.Entry) i.next();
       
        String elementId = (String) entry.getKey();
        GenericFormElement element = (GenericFormElement) entry.getValue();

        if (element instanceof FormWidget)
          setFormElementDefaultEditableTags((FormWidget) element);
        else if (element instanceof FormElement) {
          FormElement simpleElement = (FormElement) element;
View Full Code Here

    public static void setFormElementDefaultDisplayTags(FormWidget form) {
      for (Iterator i = form.getElements().entrySet().iterator(); i.hasNext();) {
        Map.Entry entry = (Map.Entry) i.next();
       
        String elementId = (String) entry.getKey();
        GenericFormElement element = (GenericFormElement) entry.getValue();

        if (element instanceof FormWidget)
          setFormElementDefaultDisplayTags((FormWidget) element);
        else if (element instanceof FormElement) {
          FormElement simpleElement = (FormElement) element;
View Full Code Here

TOP

Related Classes of org.araneaframework.uilib.form.GenericFormElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.