public interface ScienceObjectNodeModel extends ScienceObjectModel
This code was originally developed by NASA, Goddard Space Flight Center, Code 588 for the Scientist's Expert Assistant (SEA) project for Next Generation Space Telescope (NGST).
Modifier and Type | Field and Description |
---|---|
static String |
DATA_SOURCE_PROPERTY
Bound property name - should fired when setDataSource() is run
|
static String |
MORE_DATA_PROPERTY
Bound property name - should fired when setMoreDataAvailable() is run
|
NAME_PROPERTY, PENDING_PROPERTY, VALID_PROPERTY
Modifier and Type | Method and Description |
---|---|
void |
addChild(ScienceObjectModel so)
Adds a ScienceObject as a "child" of the current object.
|
List |
getChildren()
returns a List of the children of this node
|
ScienceObjectNodeModel |
getDataSource()
Returns an object that describes the source of the ScienceObjectModel's data.
|
boolean |
isMoreDataAvailable()
Returns true if more data is available for this science object from its
ScienceObjectNodeModel.
|
boolean |
isPending()
Returns true when the object is in the process of performing an update.
|
void |
removeAllChildren()
Removes all children from the ScienceObjectModel.
|
ScienceObjectModel |
removeChild(ScienceObjectModel so)
Removes all occurrences of a ScienceObjectModel as a "child" of the current object
automatically will handle removing listening
|
ScienceObjectModel |
replaceChild(ScienceObjectModel so1,
ScienceObjectModel so2)
Replaces all occurrence of the "old" child with the new child
in the propertychange listings.
|
void |
requestMoreData()
Requests that the science object retrieve any extra data that it has
available from its data source.
|
void |
retrieveMoreData(ScienceObjectNodeModel forObject)
Attempts to retrieve more information for the specified ScienceObjectModel and
populate the ScienceObjectModel with that extra data.
|
void |
setDataSource(ScienceObjectNodeModel s)
Sets the source of the ScienceObjectModel's data.
|
void |
setMoreDataAvailable(boolean more)
Sets whether or not more data is available for this science object from its
DataSource.
|
addPropertyChangeListener, clearAllListeners, clone, firePropertyChange, getException, getLabel, getName, getParent, isHolding, isTracing, isValid, removePropertyChangeListener, setException, setHolding, setName, setParent, setTracing
replaceObject
propertyChange
static final String MORE_DATA_PROPERTY
static final String DATA_SOURCE_PROPERTY
void requestMoreData()
boolean isMoreDataAvailable()
ScienceObjectNodeModel getDataSource()
void setDataSource(ScienceObjectNodeModel s)
void setMoreDataAvailable(boolean more)
void retrieveMoreData(ScienceObjectNodeModel forObject)
forObject
- retrieve more data for this science objectList getChildren()
ScienceObjectModel removeChild(ScienceObjectModel so)
so
- ScienceObjectModel to be addedScienceObjectModel replaceChild(ScienceObjectModel so1, ScienceObjectModel so2)
so1
- ScienceObjectModel to be replacedso2
- new ScienceObjectModel to be "added"void addChild(ScienceObjectModel so)
so
- ScienceObjectModel to be addedvoid removeAllChildren()
boolean isPending()
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.