| 32 | /** |
| 33 | */ |
| 34 | public interface Sample { |
| 35 | |
| 36 | /** |
| 37 | * A short, most likely single-word, name to show to the user - e.g. "CheckBox" |
| 38 | */ |
| 39 | String getSampleName(); |
| 40 | |
| 41 | /** |
| 42 | * A short, multiple sentence description of the sample. |
| 43 | */ |
| 44 | String getSampleDescription(); |
| 45 | |
| 46 | /** |
| 47 | * Returns the name of the project that this sample belongs to (e.g. 'JFXtras' |
| 48 | * or 'ControlsFX'). |
| 49 | */ |
| 50 | String getProjectName(); |
| 51 | |
| 52 | /** |
| 53 | * Returns the version of the project that this sample belongs to (e.g. '1.0.0') |
| 54 | */ |
| 55 | String getProjectVersion(); |
| 56 | |
| 57 | /** |
| 58 | * Returns the main sample panel. |
| 59 | */ |
| 60 | Node getPanel(final Stage stage); |
| 61 | |
| 62 | /** |
| 63 | * Returns the panel to display to the user that allows for manipulating |
| 64 | * the sample. |
| 65 | */ |
| 66 | Node getControlPanel(); |
| 67 | |
| 68 | /** |
| 69 | * Provides a place to dispose of any resources when sample is deselected |
| 70 | */ |
| 71 | void dispose(); |
| 72 | |
| 73 | |
| 74 | /** |
| 75 | * Returns divider position to use for split between main panel and control panel |
| 76 | */ |
| 77 | double getControlPanelDividerPosition(); |
| 78 | |
| 79 | /** |
| 80 | * A full URL to the javadoc for the API being demonstrated in this sample. |
| 81 | */ |
| 82 | String getJavaDocURL(); |
| 83 | |
| 84 | /** |
| 85 | * Returns URL for control's stylesheet. |
| 86 | * If the CSS resource is available on module-path, |
| 87 | * {@link FXSamplerProject#getModuleName() project's} module name should be defined. |
| 88 | */ |
| 89 | String getControlStylesheetURL(); |
| 90 | |
| 91 | /** |
no outgoing calls
no test coverage detected