Class MetadataSummary
- All Implemented Interfaces:
Localized
A panel showing a summary of metadata.
- Since:
- 1.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ObjectProperty
<Metadata> The metadata shown in this pane. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Locale
Returns the locale used by this widget for controls and messages.final 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.
-
Field Details
-
metadataProperty
-
-
Constructor Details
-
MetadataSummary
public MetadataSummary()Creates an initially empty metadata overview.
-
-
Method Details
-
getView
-
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.
-
getLocale
Returns the locale used by this widget for controls and messages.- Specified by:
getLocale
in interfaceLocalized
- Overrides:
getLocale
in classWidget
- Returns:
- the locale for controls in this widget.
-