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 XLS
           
 
Constructor Summary
ExportUtils()
           
 
Method Summary
static List<ExportElement> addElementToElementArray(List<ExportElement> elementArray, ExportElement element)
           
private static ExportElement createExportElement(String viewName, String sectionName, List<ExportElement> childElements, com.google.gwt.user.client.ui.Widget child)
          Creates a new export element with its sub elements.
static void debugExportElementsArray(List<ExportElement> exportElements)
           
private static void debutExportElementsArraySubList(List<ExportElement> exportElements)
           
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 ArrayList<ExportElement> getDetailsForWidget(SummaryTableSection tableSection, ArrayList<ExportElement> exportElements)
          Retrieve the sub elements from the 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)
           
private static void setFieldValue(ExportElement exportItem, boolean setFirstFieldValue, String fieldValue)
          This method sets the extracted string value.
 
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
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:

setFieldValue

private static void setFieldValue(ExportElement exportItem,
                                  boolean setFirstFieldValue,
                                  String fieldValue)
This method sets the extracted string value.

Parameters:
exportItem -
setFirstFieldValue -
fieldValue -

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)

debugExportElementsArray

public static void debugExportElementsArray(List<ExportElement> exportElements)

debutExportElementsArraySubList

private static void debutExportElementsArraySubList(List<ExportElement> exportElements)

getDetailsForWidget

public static ArrayList<ExportElement> getDetailsForWidget(SummaryTableSection tableSection,
                                                           ArrayList<ExportElement> exportElements)
Retrieve the sub elements from the table section.

Parameters:
tableSection -
exportElements -
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:

getExportElementsFromView

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

createExportElement

private static ExportElement createExportElement(String viewName,
                                                 String sectionName,
                                                 List<ExportElement> childElements,
                                                 com.google.gwt.user.client.ui.Widget child)
Creates a new export element with its sub elements.

Parameters:
viewName -
sectionName -
childElements -
child -
Returns:

addElementToElementArray

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


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