|
org.netbeans.modules.projectapi/1 1.9.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SourceGroup
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 |
---|
static final String PROP_CONTAINERSHIP
Method Detail |
---|
FileObject getRootFolder()
String getName()
Sources
object.
String getDisplayName()
Sources
object.
Icon getIcon(boolean opened)
opened
- if true, may select an alternative "open" variant
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 rootvoid addPropertyChangeListener(PropertyChangeListener listener)
rootFolder
, name
, displayName
,
icon
) or PROP_CONTAINERSHIP
.
listener
- a listener to addvoid removePropertyChangeListener(PropertyChangeListener listener)
listener
- a listener to remove
|
org.netbeans.modules.projectapi/1 1.9.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |