STextField tf = (STextField)comp.get(key); String val = tf.getText();
String val = null; if (comp.get(key).getClass().getName().equals("org.wings.SLabel")) { SLabel tf = (SLabel)comp.get(key); val = tf.getText(); } if  (comp.get(key).getClass().getName().equals("org.wings.STextField")) { STextField tf = (STextField)comp.get(key); val = tf.getText(); }
    public void actionPerformed(ActionEvent evt) {		if ((SButton)(evt.getSource()) == submit) {	    ArrayList list = new ArrayList();	    ArrayList old = new ArrayList();	    int i = 0;	    //System.out.println	    while (obj!=null && i< obj.size()) {		System.out.println("***" + obj.get(i));		String o = (String)obj.get(i);		list = findParent(old,o);		old = list;		i++;	    }	    //System.out.println	    	    fillAttributePanel(list);	    objForm.setVisible(false);	    tisconUserForm.setVisible(false);	    tisconUserOClForm.setVisible(false);	    attrForm.setVisible(true);	}		if ((SButton)(evt.getSource()) == tisconUser) {	    fillTisconPanel();	    objForm.setVisible(false);	    tisconUserForm.setVisible(false);	    tisconUserOClForm.setVisible(false);	    attrForm.setVisible(true);	}			if ((SButton)(evt.getSource()) == suspend) {	    	    objForm.setVisible(true);	    tisconUserForm.setVisible(true);	    tisconUserOClForm.setVisible(true);	    attrForm.setVisible(false);	}			if ((SButton)(evt.getSource()) == tisconOClasses) {	    TisconUser tu = new TisconUser();	    String [] objectclasses  = tu.objectClasses;	    ArrayList obj = new ArrayList();	    for (int i = 0;i < objectclasses.length;i++) {		obj.add(objectclasses[i]);	    }	    objForm.setVisible(false);	    tisconUserForm.setVisible(false);	    tisconUserOClForm.setVisible(false);			    fillAttributePanel(obj);	    attrForm.setVisible(true);	}		if ((SButton)(evt.getSource()) == addEntry) {	    Hashtable vals = new Hashtable();	    Enumeration e;	    e = comp.keys();	    while (e!=null && e.hasMoreElements()) {		Object key = e.nextElement();		String ats = ((SLabel)key).getText();		System.out.println("label" + ats);		STextField tf = (STextField)comp.get(key);		String val = tf.getText();		System.out.println("mit val" + val);		if (val.length() > 0) {		    System.out.println("auch was drin");		    StringTokenizer tok = new StringTokenizer(ats,"(");		    String at = tok.nextToken();		    vals.put(at,val);		}	    }	    System.out.println("dn ist" + dnText.getText());	    DefaultTreeModel model = (DefaultTreeModel)tree.getModel();	    LdapTreeNode root = (LdapTreeNode)model.getRoot();	    LdapTreeNode parent = getParentForNewNode(root, dnText.getText().trim());	    LdapTreeNode newNode = new LdapTreeNode(worker, parent,dnText.getText().trim());	    parent.addChild(newNode);	    model.nodesWereInserted(parent, new int[] {parent.getChildCount()-1});	    worker.addNewEntry(dnText.getText().trim(),vals); 	    	    objForm.setVisible(true);	    tisconUserForm.setVisible(true);	    tisconUserOClForm.setVisible(true);	    attrForm.setVisible(false);	}    }