Exemplo n.º 1
0
 public Method getGetter(String name) {
   Method getMethod = null;
   try {
     getMethod = this.getClass().getMethod(name, (Class[]) null);
   } catch (Exception ea) {
     ea.printStackTrace();
   }
   return getMethod;
 }
Exemplo n.º 2
0
 public EditorPanel getEditorPanelWithInstance() {
   EditorPanel thePanel = null;
   try {
     thePanel = new KeywordPanel();
     thePanel.edit(this);
   } catch (Exception ea) {
     ea.printStackTrace();
   }
   return (thePanel);
 }
Exemplo n.º 3
0
  public Method getSetter(String name, Class argName) {
    Class[] paramList = new Class[1];
    Method setMethod = null;
    try {

      // 	System.out.println("setter " + name + "  "
      // 															 + paramList + " " + argName);
      if (argName == DefaultPersistibleList.class) argName = Collection.class;
      // 	System.out.println("setter " + name + "  "
      // 															 + paramList + " " + argName);
      paramList[0] = argName;
      setMethod = this.getClass().getMethod(name, paramList);
    } catch (Exception ea) {
      ea.printStackTrace();
    }
    return setMethod;
  }