|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Representation of one area of sources.
Sources| Field Summary | |
static String |
PROP_CONTAINERSHIP
Pseudo-property used to indicate changes in containership of some subfiles. |
| Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a listener to changes in aspects of the source group. |
boolean |
contains(FileObject file)
Check whether the given file is contained in this group. |
String |
getDisplayName()
Get a display name suitable for presentation to a user. |
Icon |
getIcon(boolean opened)
Get an icon for presentation to a user. |
String |
getName()
Get a code name suitable for internal identification of this source group. |
FileObject |
getRootFolder()
Get the folder forming the root of this group of sources. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a listener to changes in aspects of the source group. |
| Field Detail |
public static final String PROP_CONTAINERSHIP
| Method Detail |
public FileObject getRootFolder()
public String getName()
Sources object.
public String getDisplayName()
Sources object.
public Icon getIcon(boolean opened)
opened - if true, may select an alternative "open" variant
public boolean contains(FileObject file) throws IllegalArgumentException
file - a file or folder; must be a descendant of the root folder
IllegalArgumentException - if a file is passed which is not inside the rootpublic void addPropertyChangeListener(PropertyChangeListener listener)
rootFolder, name, displayName,
icon) or PROP_CONTAINERSHIP.
listener - a listener to addpublic void removePropertyChangeListener(PropertyChangeListener listener)
listener - a listener to remove
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||