Code example for EventListenerList

0
    /** 
     * Creates a new instance. 
     */ 
    protected AbstractDialLayer() { 
        this.visible = true;
        this.listenerList = new EventListenerList();
    } 
 
    /** 
     * Returns <code>true</code> if this layer is visible (should be displayed), 
     * and <code>false</code> otherwise. 
     * 
     * @return A boolean. 
     * 
     * @see #setVisible(boolean) 
     */ 
    public boolean isVisible() { 
        return this.visible;
    }