| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < type of the T> voidObservableList | addListListener(ObservableList<T>
to add a listener to list, Consumer<T> action to be performed when an object was added to the addAction, Consumer<T> ObservableListaction to be performed when an object was removed
from the removeAction)ObservableListAdds a |
| public static void | assertNodeNotSame(Node
first node to check node1, Node second node to check node2)Makes sure the addresses of two nodes aren't the same. |
| public static int | Returns: the amount of columns per rowhow many modules are shown in a page, a maximum of 9 is recommended modulesPerPage)Calculates from the amount of modules per page how many columns of modules there should be in a row. |
| public static String | Returns: the convertedString with only the allowed characters,
characters in lowercase and whitespaces replaced by '-'the name)String to be converted into an css idConverts a given String into one that can be used in css. |
| WorkbenchUtils | back to summary |
|---|---|
| private WorkbenchUtils() Utility class should not be possible to be instantiated. | |
| addListListener | back to summary |
|---|---|
| public static <T> void addListListener(ObservableList<T> list, Consumer<T> addAction, Consumer<T> removeAction) Adds a
| |
| assertNodeNotSame | back to summary |
|---|---|
| public static void assertNodeNotSame(Node node1, Node node2) Makes sure the addresses of two nodes aren't the same. Is used to check
| |
| calculateColumnsPerRow | back to summary |
|---|---|
| public static int calculateColumnsPerRow(int modulesPerPage) Calculates from the amount of modules per page how many columns of modules there should be in a row.
| |
| convertToId | back to summary |
|---|---|
| public static String convertToId(String name) Converts a given String into one that can be used in css. Accepts only characters that match 'a' to 'z', 'A' to 'Z', '0' to '9', ' ' and '-'. All uppercase letters are converted into a lowercase and spaces are replaced by '-'. | |