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 LocaleReturns the locale used by this widget for controls and messages.final MetadataReturns the metadata currently shown, ornullif none.final RegiongetView()Returns the region containing the visual components managed by thisMetadataSummary.final voidClears the metadata panel and write instead an exception report.voidsetMetadata(Resource resource) Fetches the metadata in a background thread and delegates tosetMetadata(Metadata)when ready.final voidsetMetadata(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 settingmetadataPropertyvalue.- Parameters:
metadata- the metadata to show, ornull.- See Also:
-
getMetadata
Returns the metadata currently shown, ornullif none. This is a convenience method for fetchingmetadataPropertyvalue.- Returns:
- the metadata currently shown, or
nullif 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:
getLocalein interfaceLocalized- Overrides:
getLocalein classWidget- Returns:
- the locale for controls in this widget.
-