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

Setup

The setup class

Displays a setup window

Example

Setup setup = new Setup(); //Creates instance of Setup class
HTMLComponent test = new HTMLComponent(); //Creates instance of HTMLComponent
test.load("<a>Hello World</a>"); //Loads html to display
setup.open(new Setup.SetupBuilder()
.addComponent(test) //Adds the component
.setProgramName("My Application") //Sets the program name
.setProgramVersion("1.0") //Sets the program version
);

Available methods

Public

  • open(SetupBuilder: builder) -> Opens the setup with the specified stuff
  • getBrandName() -> Returns the specified brand name
  • getBrandIcon() -> Returns the brand icon specified
  • getProgramName() -> Returns the program name specified
  • getProgramVersion() -> Returns the program version specified
  • getProgramImage() -> Returns the program image (InputStream)

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