Package xal.extension.fxapplication
Class XalFxDocument
java.lang.Object
xal.extension.fxapplication.XalFxDocument
The base class for custom documents for JavaFX applications.
- Author:
- Yngve Levinsen <yngve.levinsen@ess.eu>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AcceleratorProperty
The accelerator file in useprotected XMLDataManager
The accelerator XML manager objectprotected String
protected String
wildcard file extensionprotected boolean
protected String
PageID of the Confluence page or web page with the help about the applicationprotected javafx.stage.Stage
The selected Stage for eLog Postsprotected javafx.beans.property.SimpleStringProperty
The selected Sequence/ComboSequenceprotected URL
The persistent storage URL for the documentprotected javafx.beans.property.SimpleStringProperty
protected boolean
Test mode flag, disabled by defaultprotected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method for creating a Logbook Post.javafx.beans.property.SimpleStringProperty
javafx.stage.Stage
getStage()
boolean
Indicates if there are changes that need saving.void
help()
Method for redirecting to the applications web page/internal page.abstract void
loadDocument
(URL url) Subclasses need to implement this method for saving the document to a URL.protected static LogbookProvider
abstract void
Subclasses need to implement this method for creating a new document.void
void
Save this document to its persistent storage source.abstract void
saveDocumentAs
(URL url) Subclasses need to implement this method for saving the document to a URL.void
setAccelerator
(Accelerator accelerator) void
setAcceleratorXMLManager
(XMLDataManager xmlDataManager) void
setHasChanges
(boolean changeStatus) Set the whether this document has changes.void
setSequence
(String sequence) void
void
setStage
(javafx.stage.Stage mainStage) boolean
-
Field Details
-
FILETYPE_DESCRIPTION
wildcard file extension -
WILDCARD_FILE_EXTENSION
-
DEFAULT_FILENAME
-
sourceString
protected javafx.beans.property.SimpleStringProperty sourceString -
source
The persistent storage URL for the document -
hasChanges
protected boolean hasChanges -
acceleratorXMLManager
The accelerator XML manager object -
accelerator
The accelerator file in use -
sequence
protected javafx.beans.property.SimpleStringProperty sequenceThe selected Sequence/ComboSequence -
mainStage
protected javafx.stage.Stage mainStageThe selected Stage for eLog Posts -
HELP_PAGEID
PageID of the Confluence page or web page with the help about the application -
testMode
protected boolean testModeTest mode flag, disabled by default
-
-
Constructor Details
-
XalFxDocument
protected XalFxDocument() -
XalFxDocument
protected XalFxDocument(javafx.stage.Stage stage)
-
-
Method Details
-
setHasChanges
public void setHasChanges(boolean changeStatus) Set the whether this document has changes.- Parameters:
changeStatus
- Status to set whether this document has changes that need saving.
-
hasChanges
public boolean hasChanges()Indicates if there are changes that need saving.- Returns:
- Status of whether this document has changes that need saving.
-
sourceSetAndValid
public boolean sourceSetAndValid() -
setSource
-
saveDocumentAs
Subclasses need to implement this method for saving the document to a URL.- Parameters:
url
- The File to which this document should be saved.
-
loadDocument
Subclasses need to implement this method for saving the document to a URL.- Parameters:
url
- The URL to which this document should be saved.
-
newDocument
public abstract void newDocument()Subclasses need to implement this method for creating a new document. -
saveDocument
public void saveDocument()Save this document to its persistent storage source. -
eLogPost
Method for creating a Logbook Post. -
help
public void help()Method for redirecting to the applications web page/internal page. -
openUrl
-
getSequence
-
getSequenceProperty
public javafx.beans.property.SimpleStringProperty getSequenceProperty() -
setSequence
-
getStage
public javafx.stage.Stage getStage() -
setStage
public void setStage(javafx.stage.Stage mainStage) -
getAccelerator
-
setAccelerator
-
getAcceleratorProperty
-
getAcceleratorXMLManager
-
setAcceleratorXMLManager
-
getFiletypeDescription
-
getWildcardFileExtension
-
getDefaultFilename
-
logbookProviderDialog
- Throws:
LogbookException
-