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
kODTrue
if the part is displaying the content referenced by the specified Cyberdog item; otherwise,kODFalse
.DISCUSSION
This method is called by theCyberSession::FindCyberItemWindow
andCyberSession::SelectCyberItemWindow
methods 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
kODTrue
if the specified item is equal to the Cyberdog item returned by theGetCyberItem
method. 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'sCanShowCyberItem
method might returnkODTrue
if the specified Cyberdog item references the page that the display part is currently displaying, even though the item's URL is different.SEE ALSO
TheGetCyberItem
method (page 285).
TheCyberSession::FindCyberItemWindow
method (page 359).
TheCyberSession::SelectCyberItemWindow
method (page 373).