Interface AbstractControl

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default java.lang.String getName()
      Get the Name of the Custom Control
      javafx.collections.ObservableList<java.lang.String> getStylesheets()
      This method is present in all Javafx Controls, and must therefore not be implemented.
      default void loadContent()
      Load the content (fxml file) for the custom control.
      default void loadContent​(java.lang.String fxmlResourceName)
      Load the content (fxml file) for the custom control.
      default void loadContentAndStylesheet()
      Load the content (fxml file) and the stylesheet (css file) for the custom control.
      default void loadStylesheet()
      Load a stylesheet (css file) for the custom control.
      default void loadStylesheet​(java.lang.String stylesheetName)
      Load the stylesheet (css file) for the custom control.
      default void loadStylesheetFromResource​(java.lang.Class<?> clazz, java.lang.String resource)
      Load a stylesheet (css file) for the custom control.
    • Method Detail

      • getName

        default java.lang.String getName()
        Get the Name of the Custom Control
        Returns:
        the name
      • loadContentAndStylesheet

        default void loadContentAndStylesheet()
        Load the content (fxml file) and the stylesheet (css file) for the custom control. The file names are derived by the class name.
      • loadContent

        default void loadContent()
        Load the content (fxml file) for the custom control. The file name is derived by the class name.
      • loadContent

        default void loadContent​(java.lang.String fxmlResourceName)
        Load the content (fxml file) for the custom control. The implementing class is set as root FXMLLoader.setRoot(Object) and as controller FXMLLoader.setController(Object).
        Parameters:
        fxmlResourceName - the fxml file name to load
      • loadStylesheet

        default void loadStylesheet()
        Load a stylesheet (css file) for the custom control. The file name is derived by the class name.
      • loadStylesheetFromResource

        default void loadStylesheetFromResource​(java.lang.Class<?> clazz,
                                                java.lang.String resource)
        Load a stylesheet (css file) for the custom control.
        Parameters:
        clazz - the Class to be used to load the resource (css file)
        resource - the file name of the css file
      • loadStylesheet

        default void loadStylesheet​(java.lang.String stylesheetName)
        Load the stylesheet (css file) for the custom control.
        Parameters:
        stylesheetName - the name of the css file
      • getStylesheets

        javafx.collections.ObservableList<java.lang.String> getStylesheets()
        This method is present in all Javafx Controls, and must therefore not be implemented.
        Returns: