Package qupath.process.gui.commands.ui
Class SaveResourcePaneBuilder<T>
java.lang.Object
qupath.process.gui.commands.ui.SaveResourcePaneBuilder<T>
- Type Parameters:
T
-
Small JavaFX pane to support saving object/pixel classifiers and density maps within a project in a standardized way.
This is not intended for use by external code.
- Author:
- Pete Bankhead
-
Constructor Summary
ConstructorDescriptionSaveResourcePaneBuilder
(Class<T> cls, ObjectExpression<? extends T> resource) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the panePrompt to include beside the resource name text fieldproject
(ObjectExpression<Project<BufferedImage>> project) Current projectsavedName
(StringProperty savedName) Property to store the saved name; this is useful if the name is required externallytextFieldPrompt
(String prompt) Prompt to include beside the resource name text fieldTitle to display in any dialogstooltip
(ObservableValue<String> tooltip) Text to include in any tooltip.
-
Constructor Details
-
SaveResourcePaneBuilder
Constructor.- Parameters:
cls
- class of the resource to save, e.g. PixelClassifierresource
- expression containing the results
-
-
Method Details
-
project
Current project- Parameters:
project
-- Returns:
- this builder
-
labelText
Prompt to include beside the resource name text field- Parameters:
prompt
-- Returns:
- this builder
-
textFieldPrompt
Prompt to include beside the resource name text field- Parameters:
prompt
-- Returns:
- this builder
-
tooltip
Text to include in any tooltip.- Parameters:
tooltip
-- Returns:
-
title
Title to display in any dialogs- Parameters:
title
-- Returns:
- this builder
-
savedName
Property to store the saved name; this is useful if the name is required externally- Parameters:
savedName
-- Returns:
-
build
Build the pane- Returns:
-