Class ActionLoad

java.lang.Object
gaiasky.util.urlprotocol.ActionLoad
All Implemented Interfaces:
ActionHandler

public class ActionLoad extends Object implements ActionHandler
  • Field Details

    • PARAM_DATASET

      public static final String[] PARAM_DATASET
      Names of the parameter that contains the dataset key or URL.
  • Constructor Details

    • ActionLoad

      public ActionLoad()
  • Method Details

    • process

      public void process(String url, com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage, boolean hotLoad, Map<String,String> params)
      Description copied from interface: ActionHandler
      Process the action.
      Specified by:
      process in interface ActionHandler
      Parameters:
      url - The URL string.
      skin - The UI skin.
      stage - The UI stage.
      hotLoad - Whether to hot load.
      params - The parameters.
    • enableAndHotLoad

      public void enableAndHotLoad(Dataset dataset, boolean hotLoad)
      Enables the given dataset (adds its check string to the settings and persists them) and hot-loads it if requested. Called after a successful install of a URL-sourced dataset, once the descriptor has been resolved.
      Parameters:
      dataset - The installed dataset.
      hotLoad - True to hot-load the dataset after enabling it.