Package gaiasky.interafce
Class DatasetsWidget
java.lang.Object
gaiasky.interafce.DatasetsWidget
Widget which lists all detected catalogs and offers a way to select them.
-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.badlogic.gdx.utils.Array<DatasetDesc>com.badlogic.gdx.utils.Array<DatasetType> -
Constructor Summary
ConstructorsConstructorDescriptionDatasetsWidget(com.badlogic.gdx.scenes.scene2d.Stage ui, com.badlogic.gdx.scenes.scene2d.ui.Skin skin) -
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.scenes.scene2d.Actorcom.badlogic.gdx.scenes.scene2d.ActorbuildDatasetsWidget(boolean scrollOn)com.badlogic.gdx.scenes.scene2d.ActorbuildDatasetsWidget(boolean scrollOn, int maxCharsDescription)findDatasetByDescriptor(Path descriptorFile)Finds the dataset with the given descriptor file in the dataset descriptor list.void
-
Field Details
-
cbs
-
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
Finds 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:
IOException
-