org.openide.filesystems
Class FileSystemCapability.Bean

java.lang.Object
  |
  +--org.openide.filesystems.FileSystemCapability
        |
        +--org.openide.filesystems.FileSystemCapability.Bean
All Implemented Interfaces:
Serializable
Enclosing class:
FileSystemCapability

public static class FileSystemCapability.Bean
extends FileSystemCapability
implements Serializable

Default implementation of capabilities, that behaves like JavaBean and allows to set whether the well known capabilities (like compile, execute) should be enabled or not.

See Also:
Serialized Form

Inner classes inherited from class org.openide.filesystems.FileSystemCapability
FileSystemCapability.Bean
 
Fields inherited from class org.openide.filesystems.FileSystemCapability
ALL, COMPILE, DEBUG, DOC, EXECUTE
 
Constructor Summary
FileSystemCapability.Bean()
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener l)
          Adds listener.
 boolean capableOf(FileSystemCapability c)
          Checks for well known capabilities and if they are allowed.
 boolean getCompile()
          Getter for value of compiling capability.
 boolean getDebug()
          Getter for value of debugging capability.
 boolean getDoc()
          Getter for value of doc capability.
 boolean getExecute()
          Getter for value of executiong capability.
 void removePropertyChangeListener(PropertyChangeListener l)
          Removes listener.
 void setCompile(boolean val)
          Setter for allowing compiling capability.
 void setDebug(boolean val)
          Setter for allowing debugging capability.
 void setDoc(boolean val)
          Setter for allowing debugging capability.
 void setExecute(boolean val)
          Setter for allowing executing capability.
 
Methods inherited from class org.openide.filesystems.FileSystemCapability
fileSystems, find, findAll, findAllResources, findResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemCapability.Bean

public FileSystemCapability.Bean()
Method Detail

capableOf

public boolean capableOf(FileSystemCapability c)
Checks for well known capabilities and if they are allowed.
Overrides:
capableOf in class FileSystemCapability
Parameters:
c - capability to test
Returns:
true if yes

getCompile

public boolean getCompile()
Getter for value of compiling capability.

setCompile

public void setCompile(boolean val)
Setter for allowing compiling capability.

getExecute

public boolean getExecute()
Getter for value of executiong capability.

setExecute

public void setExecute(boolean val)
Setter for allowing executing capability.

getDebug

public boolean getDebug()
Getter for value of debugging capability.

setDebug

public void setDebug(boolean val)
Setter for allowing debugging capability.

getDoc

public boolean getDoc()
Getter for value of doc capability.

setDoc

public void setDoc(boolean val)
Setter for allowing debugging capability.

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)
Adds listener.
Overrides:
addPropertyChangeListener in class FileSystemCapability
Following copied from class: org.openide.filesystems.FileSystemCapability
Parameters:
l - the listener to be added.

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)
Removes listener.
Overrides:
removePropertyChangeListener in class FileSystemCapability
Following copied from class: org.openide.filesystems.FileSystemCapability
Parameters:
l - the listener to be removed.


Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.