Package com.acrolinx.sidebar.jfx
Class AcrolinxSidebarJFX
- java.lang.Object
-
- com.acrolinx.sidebar.jfx.AcrolinxSidebarJFX
-
- All Implemented Interfaces:
AcrolinxSidebar
public class AcrolinxSidebarJFX extends java.lang.Object implements AcrolinxSidebar
JFX implementation of Acrolinx Sidebar.- See Also:
AcrolinxSidebar
-
-
Constructor Summary
Constructors Constructor Description AcrolinxSidebarJFX(AcrolinxIntegration acrolinxIntegration)AcrolinxSidebarJFX(AcrolinxIntegration acrolinxIntegration, AcrolinxStorage acrolinxStorage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckDocumentInBatch(java.lang.String documentIdentifier, java.lang.String documentContent, CheckOptions checkOptions)voidcheckGlobal()Triggers a check action in the Acrolinx Sidebar, same as pushing the checkButton.voidconfigure(SidebarConfiguration sidebarConfiguration)Pushed the configuration to the Acrolinx Sidebar.java.lang.StringgetLastCheckedDocument()Gets the content of the lasted successfully checked document.java.lang.StringgetLastCheckedDocumentReference()Gets the document reference of the lasted successfully checked document.ExternalContentgetLastCheckedExternalContent()javafx.scene.web.WebViewgetWebView()voidinitBatchCheck(java.util.List<BatchCheckRequestOptions> batchCheckRequestOptions)protected voidinjectAcrolinxPlugin(AcrolinxStorage acrolinxStorage)voidinvalidateRanges(java.util.List<CheckedDocumentPart> invalidCheckedDocumentRanges)Notifies the sidebar about invalid ranges of the current document.voidinvalidateRangesForMatches(java.util.List<? extends AbstractMatch> abstractMatches)Notifies the sidebar about invalid ranges of the current document.voidloadSidebarFromServerLocation(java.lang.String serverAddress)Load the sidebar from a different server address.voidonGlobalCheckRejected()Notifies the sidebar that the check was canceled.voidreload()Reload the current sidebar.voidsetZoom(float zoomFactor)voidshowMessage(SidebarMessage sidebarMessage)Shows a message in the sidebar.
-
-
-
Constructor Detail
-
AcrolinxSidebarJFX
public AcrolinxSidebarJFX(AcrolinxIntegration acrolinxIntegration)
-
AcrolinxSidebarJFX
public AcrolinxSidebarJFX(AcrolinxIntegration acrolinxIntegration, AcrolinxStorage acrolinxStorage)
-
-
Method Detail
-
injectAcrolinxPlugin
protected void injectAcrolinxPlugin(AcrolinxStorage acrolinxStorage)
-
setZoom
public void setZoom(float zoomFactor)
-
getWebView
public javafx.scene.web.WebView getWebView()
-
configure
public void configure(SidebarConfiguration sidebarConfiguration)
Description copied from interface:AcrolinxSidebarPushed the configuration to the Acrolinx Sidebar.- Specified by:
configurein interfaceAcrolinxSidebar- See Also:
SidebarConfiguration
-
checkGlobal
public void checkGlobal()
Description copied from interface:AcrolinxSidebarTriggers a check action in the Acrolinx Sidebar, same as pushing the checkButton.- Specified by:
checkGlobalin interfaceAcrolinxSidebar
-
onGlobalCheckRejected
public void onGlobalCheckRejected()
Description copied from interface:AcrolinxSidebarNotifies the sidebar that the check was canceled.- Specified by:
onGlobalCheckRejectedin interfaceAcrolinxSidebar
-
invalidateRanges
public void invalidateRanges(java.util.List<CheckedDocumentPart> invalidCheckedDocumentRanges)
Description copied from interface:AcrolinxSidebarNotifies the sidebar about invalid ranges of the current document. The sidebar will then invalidate all cards containing issues within this text range.- Specified by:
invalidateRangesin interfaceAcrolinxSidebar
-
invalidateRangesForMatches
public void invalidateRangesForMatches(java.util.List<? extends AbstractMatch> abstractMatches)
Description copied from interface:AcrolinxSidebarNotifies the sidebar about invalid ranges of the current document. The sidebar will then invalidate all cards containing issues within this text range for the current check.- Specified by:
invalidateRangesForMatchesin interfaceAcrolinxSidebar
-
loadSidebarFromServerLocation
public void loadSidebarFromServerLocation(java.lang.String serverAddress)
Description copied from interface:AcrolinxSidebarLoad the sidebar from a different server address.- Specified by:
loadSidebarFromServerLocationin interfaceAcrolinxSidebar
-
reload
public void reload()
Description copied from interface:AcrolinxSidebarReload the current sidebar.- Specified by:
reloadin interfaceAcrolinxSidebar
-
getLastCheckedDocumentReference
public java.lang.String getLastCheckedDocumentReference()
Description copied from interface:AcrolinxSidebarGets the document reference of the lasted successfully checked document.- Specified by:
getLastCheckedDocumentReferencein interfaceAcrolinxSidebar- Returns:
- documentReference
-
getLastCheckedDocument
public java.lang.String getLastCheckedDocument()
Description copied from interface:AcrolinxSidebarGets the content of the lasted successfully checked document.- Specified by:
getLastCheckedDocumentin interfaceAcrolinxSidebar- Returns:
- documentContent
-
getLastCheckedExternalContent
public ExternalContent getLastCheckedExternalContent()
-
showMessage
public void showMessage(SidebarMessage sidebarMessage)
Description copied from interface:AcrolinxSidebarShows a message in the sidebar.- Specified by:
showMessagein interfaceAcrolinxSidebar
-
initBatchCheck
public void initBatchCheck(java.util.List<BatchCheckRequestOptions> batchCheckRequestOptions)
- Specified by:
initBatchCheckin interfaceAcrolinxSidebar
-
checkDocumentInBatch
public void checkDocumentInBatch(java.lang.String documentIdentifier, java.lang.String documentContent, CheckOptions checkOptions)- Specified by:
checkDocumentInBatchin interfaceAcrolinxSidebar
-
-