public class FormElementPath extends java.lang.Object implements java.lang.Comparable<FormElementPath>
| Constructor and Description |
|---|
FormElementPath() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(FormElementPath other) |
FormElementWrapper |
getLeaf() |
FormElementPathPart |
getPathElementAt(int idx) |
int |
getPathElementCount() |
int |
getPathElementIndex(FormContextI ftx) |
static java.util.Set<FormElementPath> |
mandatoriesFromFtx(FormContextI ftx)
same as
this#mandatoryFromFtxNonRecursive(FormContextI) but it recurses into sub contexts
of the provided ftx, even testing previously shown and modified BOs for mandatories if necessary. |
static FormElementPath |
mandatoryFromFtxNonRecursive(FormContextI ftx)
Generates a "FormElementPath" for a mandatory input field, if applicable.
|
void |
requestFocus() |
public static java.util.Set<FormElementPath> mandatoriesFromFtx(FormContextI ftx)
this#mandatoryFromFtxNonRecursive(FormContextI) but it recurses into sub contexts
of the provided ftx, even testing previously shown and modified BOs for mandatories if necessary.ftx - public static FormElementPath mandatoryFromFtxNonRecursive(FormContextI ftx)
This method checks if the given "FormContextI" represents a mandatory input field within the form. If it does, and all Business Objects (BOs) along the path defined by the form element's display property are not deleted, it returns a "FormElementPath" representing the path to this field. Otherwise, it returns "null".
This check ensures that mandatory attributes are only enforced for valid and accessible BOs, preventing issues where a mandatory field might be incorrectly displayed for a deleted or unreachable BO.
ftx - The "FormContextI" to check.public FormElementWrapper getLeaf()
public int compareTo(FormElementPath other)
compareTo in interface java.lang.Comparable<FormElementPath>public int getPathElementIndex(FormContextI ftx)
public int getPathElementCount()
public FormElementPathPart getPathElementAt(int idx)
public void requestFocus()
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.