Ignore:
Timestamp:
08/29/12 10:05:50 (12 years ago)
Author:
sherbold
Message:
  • added getStringIdentifier() to interface IEventTarget
  • all event types and targets now implement equals and hashCode
File:
1 edited

Legend:

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

    r655 r681  
    9292     */ 
    9393    @Override 
     94    public String getStringIdentifier() { 
     95        String str = this.toString(); 
     96        if( getParent()!=null ) { 
     97            return getParent().getStringIdentifier() + "->" + str; 
     98        } 
     99        return str; 
     100    } 
     101     
     102    /* 
     103     * (non-Javadoc) 
     104     *  
     105     * @see java.lang.Object#toString() 
     106     */ 
     107    @Override 
    94108    public String toString() { 
    95109        String str = getElementDescriptor() + "(" + getName() + ", " + getElementHash() + "," + getIcon() + "," + getIndex() +")"; 
    96         if( getParent()!=null ) { 
    97             return getParent().toString() + "->" + str; 
    98         } 
    99110        return str; 
    100111    } 
Note: See TracChangeset for help on using the changeset viewer.