addListener(VisibilityListener aListener) Add a listener to be notified when the visibility or activation state
associated with this assistant changes.
isRootExtension(String aContentExtensionId) Return whether the given content extension is a root extension.
Parameters: aContentExtensionId - the id of the content extension.
removeListener(VisibilityListener aListener) Remove a listener to be notified when the visibility or activation state
associated with this assistant changes.
Create a visibility assistant for the given viewer descriptor.
Parameters: aViewerDescriptor - A non-nullviewer descriptor. Parameters: anActivationService - The activation service associated with the content service.
Method Detail
addListener
public void addListener(VisibilityListener aListener)(Code)
Add a listener to be notified when the visibility or activation state
associated with this assistant changes.
Parameters: aListener - a listener to be notified when the visibility or activationstate associated with this assistant changes.
bindExtensions
public void bindExtensions(String[] theExtensions, boolean isRoot)(Code)
Parameters: theExtensions - The extensions that should be made visible to the viewer. Parameters: isRoot -
public boolean isRootExtension(String aContentExtensionId)(Code)
Return whether the given content extension is a root extension.
Parameters: aContentExtensionId - the id of the content extension. whether the given content extension is a root extension
Parameters: aContentDescriptor - The content descriptor of inquiry True if and only if the given content extension is declarativelyor programmatically made visible to the viewer. See Also:INavigatorContentService.bindExtensions(String[]boolean) See Also: For more See Also: information on what visible means.
isVisible
public boolean isVisible(String aContentExtensionId)(Code)
Parameters: aContentExtensionId - The unique id of the content extension True if and only if the given content extension is declarativelyor programmatically made visible to the viewer. See Also:INavigatorContentService.bindExtensions(String[]boolean) See Also: For more See Also: information on what visible means.
Parameters: aContentDescriptor - The content descriptor of inquiry True if and only if the content descriptor is active andvisible for the viewer descriptor and enabled for thegiven element.
onExtensionActivation
public void onExtensionActivation(String aViewerId, String[] theNavigatorExtensionIds, boolean isActive)(Code)
removeListener
public void removeListener(VisibilityListener aListener)(Code)
Remove a listener to be notified when the visibility or activation state
associated with this assistant changes.
Parameters: aListener - a listener to be notified when the visibility or activationstate associated with this assistant changes.