com.googlecode.fascinator.portal.guitoolkit
Class GUIToolkit

java.lang.Object
  extended by com.googlecode.fascinator.portal.guitoolkit.GUIToolkit

public class GUIToolkit
extends Object

A simple wrapper class for the various toolkit objects. Responsible for instantiating them and exposing them to the portal as required.

Author:
Greg Pendlebury

Constructor Summary
GUIToolkit()
          A basic constructor.
 
Method Summary
 GUIDisplay getDisplayComponent(DynamicPageService renderer)
          Instantiate and return a new GUIDisplay component.
 GUIFileUploader getFileUploader(List<String> user_roles)
          Instantiate and return a new GUIFileUploader component.
 GUIFormRenderer getFormRenderer()
          Instantiate and return a new GUIFormRenderer component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUIToolkit

public GUIToolkit()
           throws IOException
A basic constructor. Simply reads system configuration.

Throws:
IOException
Method Detail

getDisplayComponent

public GUIDisplay getDisplayComponent(DynamicPageService renderer)
Instantiate and return a new GUIDisplay component.

Parameters:
renderer - : The page service to use for rendering
Returns:
GUIDisplay : The new component

getFileUploader

public GUIFileUploader getFileUploader(List<String> user_roles)
Instantiate and return a new GUIFileUploader component.

Parameters:
user_roles - : An array with the list of roles the current user has
Returns:
GUIFileUploader : The new component

getFormRenderer

public GUIFormRenderer getFormRenderer()
Instantiate and return a new GUIFormRenderer component.

Returns:
GUIFormRenderer : The new component


Copyright © 2009-2013. All Rights Reserved.