com.itmill.toolkit.terminal.gwt.client
Interface Container

All Superinterfaces:
Paintable
All Known Implementing Classes:
IAccordion, ICustomComponent, ICustomLayout, IExpandLayout, IFormLayout, IGridLayout, IGridLayout.Grid, IHorizontalExpandLayout, IOrderedLayout, IOrderedLayoutHorizontal, IOrderedLayoutVertical, ISizeableGridLayout, ISizeableOrderedLayout, ITabsheet

public interface Container
extends Paintable


Method Summary
 boolean hasChildComponent(com.google.gwt.user.client.ui.Widget component)
          Is a given component child of this layout.
 void replaceChildComponent(com.google.gwt.user.client.ui.Widget oldComponent, com.google.gwt.user.client.ui.Widget newComponent)
          Replace child of this layout with another component.
 void updateCaption(Paintable component, UIDL uidl)
          Update child components caption, description and error message.
 
Methods inherited from interface com.itmill.toolkit.terminal.gwt.client.Paintable
updateFromUIDL
 

Method Detail

replaceChildComponent

void replaceChildComponent(com.google.gwt.user.client.ui.Widget oldComponent,
                           com.google.gwt.user.client.ui.Widget newComponent)
Replace child of this layout with another component. Each layout must be able to switch children. To to this, one must just give references to a current and new child. Note that the Layout is not responsible for registering Paintable into ApplicationConnection, but it is responsible is for unregistering it.

Parameters:
oldComponent - Child to be replaced
newComponent - Child that replaces the oldComponent

hasChildComponent

boolean hasChildComponent(com.google.gwt.user.client.ui.Widget component)
Is a given component child of this layout.

Parameters:
component - Component to test.
Returns:
true iff component is a child of this layout.

updateCaption

void updateCaption(Paintable component,
                   UIDL uidl)
Update child components caption, description and error message.

Each component is responsible for maintaining its caption, description and error message. In most cases components doesn't want to do that and those elements reside outside of the component. Because of this layouts must provide service for it's childen to show those elements for them.

Parameters:
component - Child component for which service is requested.
uidl - UIDL of the child component.


Copyright © 2000-2008 IT Mill Ltd. All Rights Reserved.