Ignore:
Timestamp:
08/23/12 14:46:41 (12 years ago)
Author:
sherbold
Message:
  • reimplemented toString() JFCGUIElement and all its children. The output is now very verbose and detailed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/guimodel/JFCGUIElement.java

    r605 r606  
    9191        } 
    9292    } 
     93     
     94    /* 
     95     * (non-Javadoc) 
     96     *  
     97     * @see java.lang.Object#toString() 
     98     */ 
     99    @Override 
     100    public String toString() { 
     101        String str = getElementDescriptor() + "(" + getName() + ", " + getElementHash() + "," + getIcon() + "," + getIndex() +")"; 
     102        if( getParent()!=null ) { 
     103            return getParent().toString() + "->" + str; 
     104        } 
     105        return str; 
     106    } 
     107     
     108    protected String getElementDescriptor() { 
     109        return "Default"; 
     110    } 
    93111 
    94112} 
Note: See TracChangeset for help on using the changeset viewer.