Package com.axelor.meta.headless
Interface FormStep
- All Known Implementing Classes:
FormStep.Add,FormStep.Click,FormStep.Commit,FormStep.Remove,FormStep.Run,FormStep.Save,FormStep.Set
public sealed interface FormStep
permits FormStep.Set, FormStep.Add, FormStep.Remove, FormStep.Click, FormStep.Run, FormStep.Commit, FormStep.Save
An operation on a form's record tree. Each runs the chains the form declares for it, in the
context of the node it acts on.
Nodes are FormPaths; a field of a node is written after its path (
items[-1].product). The factories take paths as text.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordAdds a line: the line's defaults, itsonNewin the line's context, then the seed.static final recordAsks a button'spromptas a question, then runs itsonClick.static final recordCommits a line into its collection: the collection'sonChange, in the parent's context.static final recordTakes a line out of its collection; the collection'sonChangeruns straight away.static final recordRuns a chain the form declares for the node — a hook, a field'sonChange, a button'sonClick— and nothing else.static final recordSaves the root with its lines: commits the open lines, runsonSave, saves, reads the root back, runsonLoad.static final recordWrites values into their nodes, in order, each followed by its field'sonChangein that node's context. -
Method Summary
-
Method Details
-
set
-
set
-
add
- Parameters:
collection- the collection, after its node's path:items,items[-1].subTasks
-
add
-
remove
-
click
-
click
-
run
-
commit
-
save
-