org.xulux.api.dataprovider
Interface IContentHandler


public interface IContentHandler

The content handler interface. A contenthandler is used for widgets that shows content from a eg a list, a tree, DOM, etc. The passed in object will be processed to the type it returns when using getType() Eventually this will move to be the generic contenthandler for all widgets. Contenthandlers are registered in a widget (eg guidefaults), so the developer of a widget can specify which content is supported.

Version:
$Id: IContentHandler.java,v 1.1 2005/12/18 12:58:20 mvdb Exp $
Author:
Martin van den Bemt

Method Summary
 java.lang.Object getContent()
           
 java.lang.Class getType()
           
 java.lang.Class getViewClass()
           
 void refresh()
          Notifies the contenthandler that a refresh needs to take place since some content was changed WITHOUT calling setContent.
 void setContent(java.lang.Object content)
          Sets the content to the specified object.
 void setView(java.lang.Class view)
          Set the view of this contenthandler
 

Method Detail

setContent

void setContent(java.lang.Object content)
Sets the content to the specified object.

Parameters:
content - the content to use on the handler

getContent

java.lang.Object getContent()
Returns:
the content that is previously set

getType

java.lang.Class getType()
Returns:
the type of content this handler supports.

refresh

void refresh()
Notifies the contenthandler that a refresh needs to take place since some content was changed WITHOUT calling setContent.


setView

void setView(java.lang.Class view)
Set the view of this contenthandler

Parameters:
view - the view class of the contenthandler

getViewClass

java.lang.Class getViewClass()
Returns:
the view class


Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.