|
org.netbeans.modules.masterfs/1 1.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.modules.masterfs.providers.AnnotationProvider
public abstract class AnnotationProvider
Can provide status and actions for FileObjects. Register it in META-INF/services/org.netbeans.modules.masterfs.providers.AnnotationProvider file.
Constructor Summary | |
---|---|
AnnotationProvider()
|
Method Summary | |
---|---|
abstract Action[] |
actions(Set files)
Provides actions that should be added to given set of files. |
void |
addFileStatusListener(FileStatusListener listener)
Registers FileStatusListener to receive events. |
abstract Image |
annotateIcon(Image icon,
int iconType,
Set files)
Annotate the icon of a file cluster. |
abstract String |
annotateName(String name,
Set files)
Annotate the name of a file cluster. |
abstract String |
annotateNameHtml(String name,
Set files)
Annotate a name such that the returned value contains HTML markup. |
protected void |
fireFileStatusChanged(FileStatusEvent event)
Notifies all registered listeners about change of status of some files. |
abstract InterceptionListener |
getInterceptionListener()
|
void |
removeFileStatusListener(FileStatusListener listener)
Removes FileStatusListener from the list of listeners. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnotationProvider()
Method Detail |
---|
public abstract String annotateName(String name, Set files)
name
- the name suggested by defaultfiles
- an immutable set of FileObject
s belonging to this filesystem
public abstract Image annotateIcon(Image icon, int iconType, Set files)
Please do not modify the original; create a derivative icon image, using a weak-reference cache if necessary.
icon
- the icon suggested by defaulticonType
- an icon type from BeanInfo
files
- an immutable set of FileObject
s belonging to this filesystem
public abstract String annotateNameHtml(String name, Set files)
annotateName()
. This is used,
for example, by VCS filesystems to deëphasize the status information
included in the file name by using a light grey font color.
For consistency with Node.getHtmlDisplayName()
,
filesystems that proxy other filesystems (and so must implement
this interface to supply HTML annotations) should return null if
the filesystem they proxy does not provide an implementation of
HTMLStatus.
HtmlRenderer
,
DataNode.getHtmlDisplayName()
,
Node
public abstract Action[] actions(Set files)
public final void addFileStatusListener(FileStatusListener listener) throws TooManyListenersException
listener
- The listener to register.
TooManyListenersException
public final void removeFileStatusListener(FileStatusListener listener)
listener
- The listener to remove.protected final void fireFileStatusChanged(FileStatusEvent event)
event
- The event to be firedpublic abstract InterceptionListener getInterceptionListener()
|
org.netbeans.modules.masterfs/1 1.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |