Package gaiasky.interafce
Class DatasetsWidget
java.lang.Object
gaiasky.interafce.DatasetsWidget
public class DatasetsWidget
extends java.lang.Object
Widget which lists all detected catalogs and offers a way to select them.
-
Field Summary
Fields Modifier and Type Field Description java.util.Map<com.badlogic.gdx.scenes.scene2d.ui.Button,java.lang.String>candidatesOwnCheckBox[]cbscom.badlogic.gdx.utils.Array<DatasetDesc>datasetscom.badlogic.gdx.utils.Array<DatasetType>types -
Constructor Summary
Constructors Constructor Description DatasetsWidget(com.badlogic.gdx.scenes.scene2d.Stage ui, com.badlogic.gdx.scenes.scene2d.ui.Skin skin) -
Method Summary
Modifier and Type Method Description com.badlogic.gdx.scenes.scene2d.ActorbuildDatasetsWidget()com.badlogic.gdx.scenes.scene2d.ActorbuildDatasetsWidget(boolean scrollOn)com.badlogic.gdx.scenes.scene2d.ActorbuildDatasetsWidget(boolean scrollOn, int maxCharsDescription)DatasetDescfindDatasetByDescriptor(java.nio.file.Path descriptorFile)Finds the dataset with the given descriptor file in the dataset descriptor list.voidreloadLocalCatalogs()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
cbs
-
candidates
public java.util.Map<com.badlogic.gdx.scenes.scene2d.ui.Button,java.lang.String> candidates -
types
-
datasets
-
-
Constructor Details
-
DatasetsWidget
public DatasetsWidget(com.badlogic.gdx.scenes.scene2d.Stage ui, com.badlogic.gdx.scenes.scene2d.ui.Skin skin)
-
-
Method Details
-
reloadLocalCatalogs
public void reloadLocalCatalogs() -
buildDatasetsWidget
public com.badlogic.gdx.scenes.scene2d.Actor buildDatasetsWidget() -
buildDatasetsWidget
public com.badlogic.gdx.scenes.scene2d.Actor buildDatasetsWidget(boolean scrollOn) -
buildDatasetsWidget
public com.badlogic.gdx.scenes.scene2d.Actor buildDatasetsWidget(boolean scrollOn, int maxCharsDescription) -
findDatasetByDescriptor
public DatasetDesc findDatasetByDescriptor(java.nio.file.Path descriptorFile) throws java.io.IOExceptionFinds the dataset with the given descriptor file in the dataset descriptor list.- Parameters:
descriptorFile- The filename of the descriptor file.- Returns:
- The dataset descriptor or null if it was not found.
- Throws:
java.io.IOException
-