Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * To change this template, choose Tools | Templates
   * and open the template in the editor.
   */
  
  package org.netbeans.modules.kenai.ui.spi;
  
Abstraction of a single Kenai project.

Author(s):
S. Aubrecht
 
 public abstract class ProjectHandle implements Comparable<ProjectHandle> {
 
     private final PropertyChangeSupport changeSupport = new PropertyChangeSupport(this);

    
The name of property which when fired will force a complete refresh of all project related info. The property value is undefined.
 
     public static final String PROP_CONTENT = "content"// NOI18N
     
The name of property which is fired when the list of builds for this project has changed (builds added/removed/renamed). The property value should ideally be the new list of BuildHandles.
 
     public static final String PROP_BUILD_LIST = "buildList"// NOI18N
     
The name of property which is fired when the list of source repositories for this project has changed (repos added/removed/renamed). The property value should ideally be the new list of SourceHandles.
 
     public static final String PROP_SOURCE_LIST = "sourceList"// NOI18N
     
The name of property which is fired when the list of queries for this project has changed (queries added/removed/renamed). The property value should ideally be the new list of QueryHandles.
 
     public static final String PROP_QUERY_LIST = "queryList"// NOI18N
 
    
The name of property which is fired when the nonmember project is removed from dashboard. This event is not fired, when user logs out. Value is undefined (null)

 
     public static final String PROP_CLOSE = "close"// NOI18N
 
 
     
     private final String id;
 
     protected ProjectHandleString id ) {
         this. = id;
     }

    

Returns:
Project's unique identification
 
     public final String getId() {
         return ;
     }

    

Returns:
Display name
 
     public abstract String getDisplayName();

    
Is this project private?

Returns:
 
     public abstract boolean isPrivate();
 
     public final void addPropertyChangeListenerPropertyChangeListener l ) {
     }
 
     public final void removePropertyChangeListenerPropertyChangeListener l ) {
     }
 
     public final void firePropertyChangeString propNameObject oldValueObject newValue ) {
         .firePropertyChange(propNameoldValuenewValue);
     }
 
     public int compareToProjectHandle other ) {
         return getDisplayName().compareTo(other.getDisplayName());
     }
 
     @Override
    public boolean equals(Object obj) {
        ifobj == null ) {
            return false;
        }
        ifgetClass() != obj.getClass() ) {
            return false;
        }
        final ProjectHandle other = (ProjectHandleobj;
        if( (this. == null) ? (other.id != null) : !this..equals(other.id) ) {
            return false;
        }
        return true;
    }
    @Override
    public int hashCode() {
        int hash = 5;
        hash = 29 * hash + (this. != null ? this..hashCode() : 0);
        return hash;
    }
New to GrepCode? Check out our FAQ X