|
org.openide.filesystems 7.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface FileSystem.HtmlStatus
Extension interface for Status provides HTML-formatted annotations. Principally this is used to deëmphasize status text by presenting it in a lighter color, by placing it inside <font color=!controlShadow> tags. Note that it is preferable to use logical colors (such as controlShadow) which are resolved by calling UIManager.getColor(key) — this way they will always fit with the look and feel. To use a logical color, prefix the color name with a ! character.
Please use only the limited markup subset of HTML supported by the lightweight HTML renderer.
HtmlRenderer
Method Summary | |
---|---|
String |
annotateNameHtml(String name,
Set<? extends FileObject> files)
Annotate a name such that the returned value contains HTML markup. |
Methods inherited from interface org.openide.filesystems.FileSystem.Status |
---|
annotateIcon, annotateName |
Method Detail |
---|
String annotateNameHtml(String name, Set<? extends FileObject> files)
annotateName()
. This is used,
for example, by VCS filesystems to deëmphasize 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
FileSystem.HtmlStatus
.
name
- the name suggested by defaultfiles
- an immutable set of files belonging to this filesystem
DataNode.getHtmlDisplayName()
,
Node.getHtmlDisplayName()
|
org.openide.filesystems 7.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |