Important: The information in this document is obsolete and should not be used for new development.
CanShowCyberItem
Tests whether this part is displaying content referenced by the specified Cyberdog item.
ODBoolean CanShowCyberItem (in CyberItem item);
item- The Cyberdog item for this operation.
- return value
kODTrueif the part is displaying the content referenced by the specified Cyberdog item; otherwise,kODFalse.DISCUSSION
This method is called by theCyberSession::FindCyberItemWindowandCyberSession::SelectCyberItemWindowmethods to determine whether the content referenced by the specified Cyberdog item is already being shown in a window.The superclass implementation of this method returns
kODTrueif the specified item is equal to the Cyberdog item returned by theGetCyberItemmethod. In some cases, you may wish to use a less stringent test. For example, it is possible for two URLs to reference different locations in the same web page. An HTML display part'sCanShowCyberItemmethod might returnkODTrueif the specified Cyberdog item references the page that the display part is currently displaying, even though the item's URL is different.SEE ALSO
TheGetCyberItemmethod (page 285).
TheCyberSession::FindCyberItemWindowmethod (page 359).
TheCyberSession::SelectCyberItemWindowmethod (page 373).