|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectMetadataTreeTable
public class MetadataTreeTable
A view of an IIOMetadata instance as a tree table. The tree structure is determined by
an IIOMetadataFormat, which must be provided to the constructor. After the construction,
different instances of IIOMetadata can be given to this MetadataTreeTable in
order to generate tables with different values. If no IIOMetadata instance is given,
then this object represents only the structure of the format with its restrictions (expected
type, range of values, etc.) but no values.
The root of the tree is obtained by getRootNode(). The table contains at most
7 columns, described below:
IIOMetadataFormat instead than IIOMetadata).
This class works with arbitrary implementations of IIOMetadata;
it doesn't need to be the specialized implementations defined in Geotk.
IIOMetadataPanel
| coverage/geotk-coverageio (download) | View source code for this class |
| Field Summary | |
|---|---|
static int |
COLUMN_COUNT
The number of columns in the table (7), when every columns are present. |
static int |
VALUE_COLUMN
The column which contains the values. |
| Constructor Summary | |
|---|---|
MetadataTreeTable(IIOMetadataFormat format)
Creates a new metadata tree for the given format. |
|
| Method Summary | |
|---|---|
Locale |
getLocale()
Returns the locale for which localization will be attempted. |
IIOMetadata |
getMetadata()
Returns the metadata to be formatted as a tree table. |
IIOMetadataFormat |
getMetadataFormat()
Returns the metadata format specified at construction time. |
MetadataTreeNode |
getRootNode()
Returns the root of the Tree Table representation of the metadata. |
boolean |
getSimplificationAllowed()
Returns true if the tree returned by getRootNode() can be simplified. |
void |
setLocale(Locale locale)
Sets the locale for which localization will be attempted. |
void |
setMetadata(IIOMetadata metadata)
Sets the metadata to be formatted as a tree table. |
void |
setSimplificationAllowed(boolean allowed)
Sets whatever the tree returned by getRootNode() can be simplified. |
String |
toString()
Returns a string representation of this tree table. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int COLUMN_COUNT
MetadataTreeTable
is given only an IIOMetadataFormat without any IIOMetadata instance for
providing the actual values.
public static final int VALUE_COLUMN
IIOMetadataFormat without IIOMetadata.
| Constructor Detail |
|---|
public MetadataTreeTable(IIOMetadataFormat format)
format - The expected format of IIOMetadata instances.| Method Detail |
|---|
public IIOMetadataFormat getMetadataFormat()
public IIOMetadata getMetadata()
null if none.
public void setMetadata(IIOMetadata metadata)
throws IllegalArgumentException
metadata - The new metadata, or null if none.
IllegalArgumentException - If the given metadata does not support
the format given to the MetadataTreeTable constructor.public Locale getLocale()
getLocale in interface Localizedpublic void setLocale(Locale locale)
MetadataTreeNode instances to be created by getRootNode().
The effect on previous instances (if any) is undefined - some will take the change
in account, other will ignore.
locale - The locale for which localization will be attempted.public boolean getSimplificationAllowed()
true if the tree returned by getRootNode() can be simplified.
Simplification are convenient for GUI purpose, but usually not appropriate for
programmatic purpose. The simplifications, if allowed, are:
false.
true if the tree can be simplified.public void setSimplificationAllowed(boolean allowed)
getRootNode() can be simplified. This
parameter is ignored if there is no IIOMetadata instance associated with
this MetadataTreeTable.
allowed - true if the tree can be simplified.public MetadataTreeNode getRootNode()
IIOMetadata instance currently set, then returns a representation of
the IIOMetadataFormat.
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||