Package org.apache.sis.gui.metadata
Class MetadataSummary
- All Implemented Interfaces:
Localized
A panel showing a summary of metadata.
- Since:
- 1.1
Defined in the sis-javafx module
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ObjectProperty<Metadata>The metadata shown in this pane. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.Methods inherited from class Widget
getLocale
-
Field Details
-
metadataProperty
The metadata shown in this pane.
-
-
Constructor Details
-
MetadataSummary
public MetadataSummary()Creates an initially empty metadata overview.
-
-
Method Details
-
getView
public final Region 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 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.
-