echopoint.ui.util
Interface PeerDelegate

All Known Implementing Classes:
BalloonHelpUI, BeepUI, BoxSectionUI, ChartPanelUI, ColorChooserUI, DatePickerUI, DialogPanelUI, EchoPointComponentPeer, EmbeddedObjectUI, EmbeddedPaneUI, ExpandableSectionUI, ExternalEventMonitorUI, FontChooserUI, GroupBoxUI, HourGlassUI, HtmlContainerUI, ImageIconUI, ImageMapUI, JavaScriptIncludeUI, JspComponentPeer, LabelUI, ListSectionUI, MenuBarUI, PickListUI, PopUpUI, PrintRequestUI, ProgressBarUI, RichTextAreaUI, SelectableTableUI, SeparatorUI, SortableTableUI, TabbedPaneUI, TimerUI, TitleBarUI, TreeUI, WizardPaneUI

public interface PeerDelegate

The PeerDelegate is used to indicate objects that can provide ComponentPeer services, without necessarily being a peer.


Method Summary
 ComponentStyle forComponent()
           
 ComponentStyle forComponent(boolean findBackground)
           
 ComponentPeer[] getChildren()
          Returns the peers for all of the referenced component's visible children.
 Id getId()
          Returns the Id by which this peer delegate is identified with
 ComponentPeer getPeer(Component component)
          Returns a ComponentPeer for a given Component or null if it cannot be obtained.
 ToolTipPopUpSupportHelper getToolTipHelper()
          Returns a ToolTipPopUpSupportHelper for creating tool tips
 

Method Detail

getPeer

ComponentPeer getPeer(Component component)
Returns a ComponentPeer for a given Component or null if it cannot be obtained. The implementation should not throw an exception if the peer cannot be found.

Parameters:
component - - the component to find the peer for.
Returns:
- the component peer or null

forComponent

ComponentStyle forComponent()
See Also:
ComponentStyle.forComponent(ComponentPeer)

forComponent

ComponentStyle forComponent(boolean findBackground)
See Also:
ComponentStyle.forComponent(ComponentPeer, boolean)

getToolTipHelper

ToolTipPopUpSupportHelper getToolTipHelper()
Returns a ToolTipPopUpSupportHelper for creating tool tips

Returns:
a ToolTipPopUpSupportHelper for creating tool tips

getId

Id getId()
Returns the Id by which this peer delegate is identified with

Returns:
the Id by which this peer delegate is identified with

getChildren

ComponentPeer[] getChildren()
Returns the peers for all of the referenced component's visible children.

Returns:
The peers of all visible child components of this peer's represented component.