- All Implemented Interfaces:
Localized
A panel showing a summary of metadata.
- Since:
- 1.1
-
Field Summary
Modifier and TypeFieldDescriptionfinal ObjectProperty
<Metadata> The metadata shown in this pane. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Metadata
Returns the metadata currently shown, ornull
if none.final Region
getView()
Returns the region containing the visual components managed by thisMetadataSummary
.final void
Clears the metadata panel and write instead an exception report.void
setMetadata
(Resource resource) Fetches the metadata in a background thread and delegates tosetMetadata(Metadata)
when ready.final void
setMetadata
(Metadata metadata) Sets the content of this pane to the given metadata.Methods inherited from class Widget
getLocale
-
Field Details
-
metadataProperty
The metadata shown in this pane.- See Also:
-
-
Constructor Details
-
MetadataSummary
public MetadataSummary()Creates an initially empty metadata overview.
-
-
Method Details
-
getView
Returns the region containing the visual components managed by thisMetadataSummary
. The subclass is implementation dependent and may change in any future version. -
setMetadata
Fetches the metadata in a background thread and delegates tosetMetadata(Metadata)
when ready.- Parameters:
resource
- the resource for which to show metadata, ornull
.
-
setMetadata
Sets the content of this pane to the given metadata. This is a convenience method for settingmetadataProperty
value.- Parameters:
metadata
- the metadata to show, ornull
.- See Also:
-
getMetadata
Returns the metadata currently shown, ornull
if none. This is a convenience method for fetchingmetadataProperty
value.- Returns:
- the metadata currently shown, or
null
if none. - See Also:
-
setError
Clears the metadata panel and write instead an exception report.- Parameters:
exception
- the exception that occurred.
-