net.sf.webmancer.widget
Interface IWidget

All Superinterfaces:
org.springframework.beans.factory.BeanNameAware, IModelable
All Known Implementing Classes:
AbstractContainer, AbstractDataView, AbstractWidget, DataTable, Page

public interface IWidget
extends IModelable, org.springframework.beans.factory.BeanNameAware

Author:
Michal Burda

Method Summary
 java.lang.String getBeanName()
          Return the widget's name.
 IWidget getParent()
          Get parent widget.
 void handleEvent(Event event)
          Handle the given event.
 void putEvent(Event event)
          Add the given event to the queue of events to be handled.
 void setParent(IWidget parent)
          Set the parent of this widget.
 
Methods inherited from interface net.sf.webmancer.model.IModelable
build
 
Methods inherited from interface org.springframework.beans.factory.BeanNameAware
setBeanName
 

Method Detail

getBeanName

java.lang.String getBeanName()
Return the widget's name.

Returns:
the widget's name.

handleEvent

void handleEvent(Event event)
Handle the given event.

Parameters:
event - an event to be handled.

putEvent

void putEvent(Event event)
Add the given event to the queue of events to be handled. Implementations often simply call the putEvent() of the parent widget. Usually, only root widgets hold the event queue and control the event handling mechanism.

Parameters:
event - an event to be added to the queue of events.

getParent

IWidget getParent()
Get parent widget.

Returns:
the parent widget or null if the actual widget is a root.

setParent

void setParent(IWidget parent)
Set the parent of this widget.

Parameters:
parent - the parent widget


Copyright © 2006-2007. All Rights Reserved.