org.kuali.student.common.ui.client.util
Class ExportUtils

java.lang.Object
  extended by org.kuali.student.common.ui.client.util.ExportUtils

public class ExportUtils
extends Object

This is a description of what this class does - pctsw don't forget to fill this in.

Author:
Kuali Rice Team (kuali-rice@googlegroups.com)

Field Summary
static String DOC
           
static String PDF
           
static String RTF
           
static String TEXT
           
static String XLS
           
static String XML
           
 
Constructor Summary
ExportUtils()
           
 
Method Summary
static List<ExportElement> addElementToElementArray(List<ExportElement> elementArray, ExportElement element)
           
static Controller getController(com.google.gwt.user.client.ui.Widget theWidget)
          This method gets the current controller based on the widget that was passed to it.
static List<ExportElement> getDetailsForWidget(ExportElement element, com.google.gwt.user.client.ui.Widget currentViewWidget, boolean setFirstFieldValue, String viewName, String sectionName)
           
static List<ExportElement> getDetailsForWidget(SummaryTable sumTable)
          Retrieve the sub elements from the summary table on a table section.
static List<ExportElement> getDetailsForWidget(com.google.gwt.user.client.ui.Widget currentViewWidget, String viewName, String sectionName)
          Retrieves the sub elements from a container widget.
static ArrayList<ExportElement> getExportElementsFromView(com.google.gwt.user.client.ui.Widget currentViewWidget, ArrayList<ExportElement> exportElements, String viewName, String sectionName)
           
static ExportElement getExportItemDetails(ExportElement exportItem, com.google.gwt.user.client.ui.Widget fieldWidget, boolean setFirstFieldValue, String viewName, String sectionName)
          Inspect the given widget for the value and add it to the export element object.
static void handleExportClickEvent(Controller currentController, String format, String reportTitle)
          Handles the export click event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PDF

public static final String PDF
See Also:
Constant Field Values

DOC

public static final String DOC
See Also:
Constant Field Values

XLS

public static final String XLS
See Also:
Constant Field Values

XML

public static final String XML
See Also:
Constant Field Values

RTF

public static final String RTF
See Also:
Constant Field Values

TEXT

public static final String TEXT
See Also:
Constant Field Values
Constructor Detail

ExportUtils

public ExportUtils()
Method Detail

getExportItemDetails

public static ExportElement getExportItemDetails(ExportElement exportItem,
                                                 com.google.gwt.user.client.ui.Widget fieldWidget,
                                                 boolean setFirstFieldValue,
                                                 String viewName,
                                                 String sectionName)
Inspect the given widget for the value and add it to the export element object.

Parameters:
exportItem -
fieldWidget -
setFirstFieldValue -
viewName -
sectionName -
Returns:

getController

public static Controller getController(com.google.gwt.user.client.ui.Widget theWidget)
This method gets the current controller based on the widget that was passed to it.

Parameters:
theWidget -
Returns:
currentController

handleExportClickEvent

public static void handleExportClickEvent(Controller currentController,
                                          String format,
                                          String reportTitle)
Handles the export click event.

Parameters:
currentController -
format -
reportTitle -

getDetailsForWidget

public static List<ExportElement> getDetailsForWidget(SummaryTable sumTable)
Retrieve the sub elements from the summary table on a table section.

Parameters:
sumTable -
Returns:

getDetailsForWidget

public static List<ExportElement> getDetailsForWidget(com.google.gwt.user.client.ui.Widget currentViewWidget,
                                                      String viewName,
                                                      String sectionName)
Retrieves the sub elements from a container widget.

Parameters:
currentViewWidget -
viewName -
sectionName -
Returns:

getDetailsForWidget

public static List<ExportElement> getDetailsForWidget(ExportElement element,
                                                      com.google.gwt.user.client.ui.Widget currentViewWidget,
                                                      boolean setFirstFieldValue,
                                                      String viewName,
                                                      String sectionName)

getExportElementsFromView

public static ArrayList<ExportElement> getExportElementsFromView(com.google.gwt.user.client.ui.Widget currentViewWidget,
                                                                 ArrayList<ExportElement> exportElements,
                                                                 String viewName,
                                                                 String sectionName)

addElementToElementArray

public static List<ExportElement> addElementToElementArray(List<ExportElement> elementArray,
                                                           ExportElement element)


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.