ActivationGroup class is extended from Activatable and used to implement multiple activation operations. Example:
var activatable1 = pdfViewer.getAnnotRender(0, '<annotation id 1>').getComponent();
var activatable2 = pdfViewer.getAnnotRender(0, '<annotation id 2>').getComponent();
var activatable3 = pdfViewer.getAnnotRender(0, '<annotation id 3>').getComponent();
var group = new PDFViewCtrl.ActivationGroup();
group.add(activatable1);
group.add(activatable2);
pdfViewer.activateElement(group);
group.add(activatable3);
group.remove(activatable2);
pdfViewer.deactivateElement(group)
.
More...
|
public void | add (target:Activatable) |
| Adds an activatable object to the activation list, and activate it.
|
|
public void | clear () |
| Clears all activatable objects and deactivate them.
|
|
public void | contains (other:Activatable) |
| Whether an activatable object is in this activation list. More...
|
|
public void | remove (target:Activatable) |
| Removes an activatable object if it is in the activation list, and deactivate it!
|
|
ActivationGroup class is extended from Activatable and used to implement multiple activation operations. Example:
var activatable1 = pdfViewer.getAnnotRender(0, '<annotation id 1>').getComponent();
var activatable2 = pdfViewer.getAnnotRender(0, '<annotation id 2>').getComponent();
var activatable3 = pdfViewer.getAnnotRender(0, '<annotation id 3>').getComponent();
var group = new PDFViewCtrl.ActivationGroup();
group.add(activatable1);
group.add(activatable2);
pdfViewer.activateElement(group);
group.add(activatable3);
group.remove(activatable2);
pdfViewer.deactivateElement(group)
.
- See also
- PDFViewer.activateElement
-
PDFViewer.deactivateElement
◆ contains()
public void contains |
( |
|
other:Activatable | ) |
|
Whether an activatable object is in this activation list.
- Returns
- boolean