FoxitPDFSDKforWeb v10.0.0
Foxit PDF SDK for Web
AnnotOperationController Class Reference

It's a abstract controller class provides an easy way for sub-controller classes to take control the contextmenu-item's visibility and usability before contextmenu shown. More...

Inheritance diagram for AnnotOperationController:
Controller Disposable ApplyAllRedactController ApplyRedactController CopyAnnotTextController DeleteAnnotController MediaDownloadController MediaPauseController MediaPlayController ShowActionsController ShowAnnotReplyController ShowRedactPlaceDialogController

Protected Member Functions

 usable (annot)
 A method for subclasses to override to take control the component usability, this method is called before parent component shown. More...
 
 visibility (annot)
 A method for subclasses to override to take control the component visibility, this method is called before parent component shown. More...
 
- Protected Member Functions inherited from Controller
 mounted ()
 This method is called after the component is inserted into DOM tree, where you can add some event listeners to the component or handle any other tasks. More...
 
 postlink ()
 This method is called during component postlink lifecycle. More...
 
 prelink ()
 This method is called during component prelink lifecycle. More...
 

Additional Inherited Members

- Public Member Functions inherited from Controller
 constructor (component)
 
 destroy ()
 Destruction this controller instance after component destroyed.
 
 getComponentByName (name)
 
 handle (...args)
 
- Public Member Functions inherited from Disposable
 addDestroyHook (...hooks)
 
 destroy ()
 
- Static Public Member Functions inherited from Controller
static extend (proto, statics)
 Extends from Controller class and generates a new Controller class! More...
 
static getName ()
 Name of the controller class used in @controller directive. More...
 
- Static Protected Member Functions inherited from Controller
static services ()
 
- Protected Attributes inherited from Controller
Component component
 The component of this controller. More...
 

Detailed Description

It's a abstract controller class provides an easy way for sub-controller classes to take control the contextmenu-item's visibility and usability before contextmenu shown.

Member Function Documentation

◆ usable()

AnnotOperationController::usable (   annot)
inlineprotected

A method for subclasses to override to take control the component usability, this method is called before parent component shown.

Parameters
annotAnnot - PDF.annots.Annot
Returns
Promise<boolean> | boolean

◆ visibility()

AnnotOperationController::visibility (   annot)
inlineprotected

A method for subclasses to override to take control the component visibility, this method is called before parent component shown.

Parameters
annotAnnot - PDF.annots.Annot

Foxit Software Corporation Logo
@2024 Foxit Software Incorporated. All rights reserved.