Interface AbstractControl
-
- All Known Implementing Classes:
AppointmentItem
,AppointmentOverviewView
,FileBrowserView
,FileListEntryControl
,MainWindow
,QuicklinkButton
,QuicklinkButtonBarControl
,SideMenuPane
,SideMenuPane.MenuEntry
,WorkspaceHeader
,WorkspaceItem
,WorkspaceOverviewView
public interface AbstractControl
This Interface provides many default methods, that are used to create Custom Controls.
-
-
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 Controljavafx.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 rootFXMLLoader.setRoot(Object)
and as controllerFXMLLoader.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:
-
-