public Object readBeanVisual(Element node) throws Exception {
  Object result;
  Vector<Element> children;
  Element child;
  int i;
  String name;
  String text;
  String iconPath;
  String animIconPath;
  if (DEBUG) {
    trace(new Throwable(),node.getAttribute(ATT_NAME));
  }
  m_CurrentNode=node;
  result=null;
  children=XMLDocument.getChildTags(node);
  text="";
  iconPath="";
  animIconPath="";
  for (i=0; i < children.size(); i++) {
    child=children.get(i);
    name=child.getAttribute(ATT_NAME);
    if (name.equals(VAL_TEXT)) {
      text=(String)invokeReadFromXML(child);
    }
 else     if (name.equals(VAL_ICONPATH)) {
      iconPath=(String)invokeReadFromXML(child);
    }
 else     if (name.equals(VAL_ANIMATEDICONPATH)) {
      animIconPath=(String)invokeReadFromXML(child);
    }
  }
  result=new BeanVisual(text,iconPath,animIconPath);
  for (i=0; i < children.size(); i++) {
    readFromXML(result,node.getAttribute(ATT_NAME),children.get(i));
  }
  return result;
}

public Object readBeanVisual ( Element node ) throws Exception { Object result ; Vector < Element > children ; Element child ; int i ; String name ; String text ; String iconPath ; String animIconPath ; if ( DEBUG ) { trace ( new Throwable ( ) , node . getAttribute ( ATT_NAME ) ) ; } m_CurrentNode = node ; result = null ; children = XMLDocument . getChildTags ( node ) ; text = "" ; iconPath = "" ; animIconPath = "" ; for ( i = 0 ; i < children . size ( ) ; i ++ ) { child = children . get ( i ) ; name = child . getAttribute ( ATT_NAME ) ; if ( name . equals ( VAL_TEXT ) ) { text = ( String ) invokeReadFromXML ( child ) ; } else if ( name . equals ( VAL_ICONPATH ) ) { iconPath = ( String ) invokeReadFromXML ( child ) ; } else if ( name . equals ( VAL_ANIMATEDICONPATH ) ) { animIconPath = ( String ) invokeReadFromXML ( child ) ; } } result = new BeanVisual ( text , iconPath , animIconPath ) ; for ( i = 0 ; i < children . size ( ) ; i ++ ) { readFromXML ( result , node . getAttribute ( ATT_NAME ) , children . get ( i ) ) ; } return result ; }
builds the beanvisual from the given dom node .
