FoxitPDFSDKforWeb
8.4.0
Foxit PDF SDK for Web
|
This Controller class encapsulates the implementation logic for IStateHandler registration and toggle event listening. A customization example:
. More...
Public Member Functions | |
constructor (component, ExpectedStateHandlerClass) | |
Classes inherit from StatefulController must override this contructor and passing a class inherit from IStateHandler into super() function. If that StateHandler class has been registed, you can also passing the state handler name instead of class into super() function. More... | |
Protected Member Functions | |
stateIn () | |
Triggered when the viewer state switched into this 'ExpectedStateHandlerClass'. More... | |
stateOut () | |
Triggered when the viewer state switched into another StateHandlerClass. More... | |
This Controller class encapsulates the implementation logic for IStateHandler registration and toggle event listening. A customization example:
.
|
inline |
Classes inherit from StatefulController must override this contructor and passing a class inherit from IStateHandler into super()
function. If that StateHandler class has been registed, you can also passing the state handler name instead of class into super()
function.
Example 1, passing a MyStateHandlerClass into super():
Example 2, passing state handler name into super():
component | Component |
ExpectedStateHandlerClass | function(new:IStateHandler) | string |
|
inlineprotected |
Triggered when the viewer state switched into this 'ExpectedStateHandlerClass'.
|
inlineprotected |
Triggered when the viewer state switched into another StateHandlerClass.