A ternary expression has the basic form
new When(cond).then(value1).otherwise(value2);. The expression
cond needs to be a javafx..
Based on the value of cond, the binding contains the value of
value1 (if cond.getValue() == true) or value2 (if
cond.getValue() == false). The values value1 and
value2 have to be of the same type. They can be constant values or
implementations of javafx..
| Modifier and Type | Class and Description |
|---|---|
| private class | When.
If-then-else expression returning Boolean. |
| public class | When.
An intermediate class needed while assembling the ternary expression. |
| public class | When.
If-then-else expression returning a number. |
| private class | |
| public class | When.
the type of the object being built T>An intermediate class needed while assembling the ternary expression. |
| private class | When.
If-then-else expression returning String. |
| public class | When.
An intermediate class needed while assembling the ternary expression. |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ObservableBooleanValue |
| Access | Constructor and Description |
|---|---|
| public | When(final ObservableBooleanValue
the condition of the ternary expression condition)The constructor of |
| Modifier and Type | Method and Description |
|---|---|
| private static NumberBinding | createNumberCondition(final ObservableBooleanValue condition, final ObservableNumberValue thenValue, final ObservableNumberValue otherwiseValue)
|
| public When. | Returns: the intermediate result which still requires the otherwise-branchthe value thenValue)Defines the |
| public When. | Returns: the intermediate result which still requires the otherwise-branchthe value thenValue)Defines a constant value of the ternary expression, that is returned if
the condition is |
| public When. | Returns: the intermediate result which still requires the otherwise-branchthe value thenValue)Defines a constant value of the ternary expression, that is returned if
the condition is |
| public When. | Returns: the intermediate result which still requires the otherwise-branchthe value thenValue)Defines a constant value of the ternary expression, that is returned if
the condition is |
| public When. | Returns: the intermediate result which still requires the otherwise-branchthe value thenValue)Defines a constant value of the ternary expression, that is returned if
the condition is |
| public When. | Returns: the intermediate result which still requires the otherwise-branchthe value thenValue)Defines the |
| public When. | Returns: the intermediate result which still requires the otherwise-branchthe value thenValue)Defines a constant value of the ternary expression, that is returned if
the condition is |
| public When. | Returns: the intermediate result which still requires the otherwise-branchthe value thenValue)Defines the |
| public When. | |
| public < the type of the intermediate result T> When. | Returns: the intermediate result which still requires the otherwise-branchthe value thenValue)Defines the |
| public < the type of the intermediate result T> When. | Returns: the intermediate result which still requires the otherwise-branchthe value thenValue)Defines a constant value of the ternary expression, that is returned if
the condition is |