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> candidates  
    OwnCheckBox[] cbs  
    com.badlogic.gdx.utils.Array<DatasetDesc> datasets  
    com.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.Actor buildDatasetsWidget()  
    com.badlogic.gdx.scenes.scene2d.Actor buildDatasetsWidget​(boolean scrollOn)  
    com.badlogic.gdx.scenes.scene2d.Actor buildDatasetsWidget​(boolean scrollOn, int maxCharsDescription)  
    DatasetDesc findDatasetByDescriptor​(java.nio.file.Path descriptorFile)
    Finds the dataset with the given descriptor file in the dataset descriptor list.
    void reloadLocalCatalogs()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • cbs

      public OwnCheckBox[] cbs
    • candidates

      public java.util.Map<com.badlogic.gdx.scenes.scene2d.ui.Button,​java.lang.String> candidates
    • types

      public com.badlogic.gdx.utils.Array<DatasetType> types
    • datasets

      public com.badlogic.gdx.utils.Array<DatasetDesc> 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.IOException
      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:
      java.io.IOException