Class DefaultInfoController

java.lang.Object
ch.autumo.ui.fx.controller.BaseController
ch.autumo.ui.fx.controller.DefaultInfoController
All Implemented Interfaces:
Initializable
Direct Known Subclasses:
DefaultCodeEditorController, RegistrationController

public class DefaultInfoController extends BaseController implements Initializable
Default Info Controller.
  • Constructor Details

    • DefaultInfoController

      public DefaultInfoController(BaseApp app, Stage stage, DefaultPaneModel model, Pane view)
      Controller.
      Parameters:
      app - app
      stage - stage
      model - model
      view - view
  • Method Details

    • init

      public void init(URL location, ResourceBundle resources, double toolBarShift)
      Description copied from class: BaseController
      Delegated initialization. See Initializable.initialize(URL, ResourceBundle).
      Specified by:
      init in class BaseController
      Parameters:
      location - The location used to resolve relative paths for the root object, or null if the location is not known.
      resources - The resources used to localize the root object, or null if the root object was not localized.
      toolBarShift - if the tool bar has been shifted, this value is bigger than zero and can be used to adjust the UI layout.
    • customize

      public void customize(String title, String iconFile, String footerInfoText)
      Customize the default info pane view.
      Parameters:
      title - title
      iconFile - icon file name (a resource in autumo-ui library) or absolute icon file name path to resource
      footerInfoText - footer text or null
    • removeAllFooterButtons

      public int removeAllFooterButtons()
      Remove all buttons from the footer. Useful if you want to remove the default close button before adding customized buttons only.
      Returns:
      amount of buttons removed
    • close

      public void close()
      Close the dialog.
    • getBody

      public BorderPane getBody()
      Get the body (border pane).
      Returns:
      body
    • getFooter

      public BorderPane getFooter()
      Get the footer.
      Returns:
      footer
    • getFooterLabel

      public HTMLLabel getFooterLabel()
      Get the footer information label.
      Returns:
      footer information label
    • getFooterCenter

      public BorderPane getFooterCenter()
      Get the (usually) empty middle pane of the footer.
      Returns:
      middle footer pane
    • getFooterButtons

      public BorderPane getFooterButtons()
      Get the pane with all buttons.
      Returns:
      button pane
    • getFooterButton

      public Button getFooterButton()
      Get the standard footer button, usually "Okay".
      Returns:
      standard footer button