public static interface FileSystem.HtmlStatus extends FileSystem.Status
Please use only the limited markup subset of HTML supported by the lightweight HTML renderer.
HtmlRenderer
Modifier and Type | Method and Description |
---|---|
String |
annotateNameHtml(String name,
Set<? extends FileObject> files)
Annotate a name such that the returned value contains HTML markup.
|
annotateIcon, annotateName
String annotateNameHtml(String name, Set<? extends FileObject> files)
annotateName()
. This is used,
for example, by VCS filesystems to deemphasize 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 default. It cannot contain HTML
markup tags but must escape HTML metacharacters. For example
"<default package>" is illegal but "<default package>"
is fine.files
- an immutable set of FileObject
s belonging to this filesystemDataNode.getHtmlDisplayName()
,
Node.getHtmlDisplayName()
Built on January 27 2012. | Portions Copyright 1997-2012 Sun Microsystems, Inc. All rights reserved.