1 DocFeatureSelectionComponent
werwolf2303 edited this page 2023-08-23 18:48:39 +02:00

FeatureSelectionComponent

Displays a selection of features to install

Use this with the InstallProgressComponent

Example

FeatureSelectionComponent feature = new FeatureSelectionComponent(); //Create instance of FeatureSelectionComponent
Feature feature1 = new Feature(); //Create instance of a feature class
feature1.name = "Test Feature"; //Sets the name of the feature
feature.add(feature1); //Adds the feature

Available methods

Public

  • getName() -> Returns "FeatureSelectionComponent"
  • getFeatures() -> Returns all features added
  • addFeature(Feature: feature)

Private

  • drawable() -> Returns the internal JPanel
  • init() -> Used inside Setup class
  • nowVisible() -> Used inside Setup class
  • onLeave() -> Used inside Setup class
  • giveComponents(...) -> Used inside Setup class