Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.ide.model
Interface LazyTraversable

All Known Implementing Classes:
LazyLoadedTraversable

public interface LazyTraversable

Traversables that act as proxies for traversables that should be lazily loaded need to be implement this interface so the proxy can appropriately handle when the real object is available or not.


Method Summary
 void addHierarchyListenerForLoading(java.awt.event.HierarchyListener listener)
          Used to add a hierarchy listener to the wrapper so that when the real object is displayed instead of the load extension button appropriate changes can be made.
 java.awt.Component getComponent()
          Provides a component that can be used to determine if the traversable is showing or not.
 boolean isActingLazy()
          Indicates whether the real traversable object is being used or the lazy wrapper is displayed to let the user choose to load the extension that provides the real object.
 void removeHierarchyListenerForLoading(java.awt.event.HierarchyListener listener)
          Used to remove a hierarchy listener from the wrapper once the real object is displayed instead of the load extension button.
 

Method Detail

isActingLazy

boolean isActingLazy()
Indicates whether the real traversable object is being used or the lazy wrapper is displayed to let the user choose to load the extension that provides the real object.

Returns:
true when the real traversable object is not being used

getComponent

java.awt.Component getComponent()
Provides a component that can be used to determine if the traversable is showing or not. This should be a component that can be used whether the real traversable object is being displayed or just the wrapper that lets the load extension button display.

Returns:
the component for the lazy wrapper

addHierarchyListenerForLoading

void addHierarchyListenerForLoading(java.awt.event.HierarchyListener listener)
Used to add a hierarchy listener to the wrapper so that when the real object is displayed instead of the load extension button appropriate changes can be made. Typically this puts a listener on the load extension button

Parameters:
listener -

removeHierarchyListenerForLoading

void removeHierarchyListenerForLoading(java.awt.event.HierarchyListener listener)
Used to remove a hierarchy listener from the wrapper once the real object is displayed instead of the load extension button. Typically this removes a listener from the load extension button

Parameters:
listener -

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.