Interface CoworkView.Backend
- Enclosing class:
CoworkView
public static interface CoworkView.Backend
What the view needs from the repository view.
-
Method Summary
Modifier and TypeMethodDescriptionSends the text to the AI; returns at once.voidbusy(boolean on) An AI request starts or ends (the spinner of the status bar).voidCloses the dialog that is open.voidAsks a question and runsonOkwhen the user confirms.Puts data of the repository into the prompt (seeCoworkContext).voidform(String heading, String description, List<ModalSpec.Field> fields, String cta, Consumer<Map<String, String>> onOk) A form with fields (prefilled);onOkgets the values by field key when the user confirms.voidOpens a link of an answer in the browser.Asks where to write a PDF (a file dialog); null when the user gave up.repoName()The name of the repository, for the file names of an export.voidshowDialog(javafx.scene.layout.Region dialog) Shows a dialog over the window (seeHost.showDialog(javafx.scene.layout.Region)).voidShows a short message.
-
Method Details
-
expand
Puts data of the repository into the prompt (seeCoworkContext). -
ask
Sends the text to the AI; returns at once. -
busy
void busy(boolean on) An AI request starts or ends (the spinner of the status bar). -
form
void form(String heading, String description, List<ModalSpec.Field> fields, String cta, Consumer<Map<String, String>> onOk) A form with fields (prefilled);onOkgets the values by field key when the user confirms. -
confirm
Asks a question and runsonOkwhen the user confirms. -
showDialog
void showDialog(javafx.scene.layout.Region dialog) Shows a dialog over the window (seeHost.showDialog(javafx.scene.layout.Region)). -
closeDialog
void closeDialog()Closes the dialog that is open. -
openLink
Opens a link of an answer in the browser. -
pdfTarget
Asks where to write a PDF (a file dialog); null when the user gave up. -
toast
Shows a short message. -
repoName
String repoName()The name of the repository, for the file names of an export.
-