Class ActionLoad
java.lang.Object
gaiasky.util.urlprotocol.ActionLoad
- All Implemented Interfaces:
ActionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]Names of the parameter that contains the dataset key or URL. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenableAndHotLoad(Dataset dataset, boolean hotLoad) Enables the given dataset (adds its check string to the settings and persists them) and hot-loads it if requested.voidprocess(String url, com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage, boolean hotLoad, Map<String, String> params) Process the action.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ActionHandler
getParameterValue, postNotificationModifier and TypeMethodDescriptiondefault StringgetParameterValue(Map<String, String> params, String... names) default voidpostNotification(String message) Posts a popup notification.
-
Field Details
-
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:ActionHandlerProcess the action.- Specified by:
processin interfaceActionHandler- Parameters:
url- The URL string.skin- The UI skin.stage- The UI stage.hotLoad- Whether to hot load.params- The parameters.
-
enableAndHotLoad
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.
-