ariba.ui.widgets
Class Util

java.lang.Object
  extended by ariba.ui.widgets.Util

public final class Util
extends java.lang.Object


Constructor Summary
Util()
           
 
Method Summary
static java.lang.Object addElement(java.lang.Object array, java.lang.Object newElement)
           
static java.lang.Object getElements(java.util.List vector, java.lang.Class desiredClass)
           
static boolean isIE4(AWRequest request)
           
static java.lang.Boolean isIE4(AWRequestContext requestContext)
           
static java.lang.Boolean isIE4(AWSession session)
           
static int min(int int1, int int2)
           
static java.lang.Object removeElementAt(java.lang.Object array, int index)
           
static void setHeadersForDownload(AWRequestContext requestContext, AWResponse response, java.lang.String fileName)
          Sets the Content-Disposition header in a browser dependent way.
static void setHeadersForDownload(AWResponse response, java.lang.String fileName)
          Deprecated. Use setHeadersForDownload with requestContext instead
static java.lang.Object stringValueForExcel(java.lang.Object objectValue)
          This is to handle the case when exporting a string that is a number prefixed with some 0s like 00012345 or 123.4500 which when opened in Excel would be treated as 12345 or 123.45 (numbers) which stops other systems from using them as a lookup key without the leading/ending 0s.
static java.lang.Object subarray(java.lang.Object array, int startIndex)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

getElements

public static java.lang.Object getElements(java.util.List vector,
                                           java.lang.Class desiredClass)

removeElementAt

public static java.lang.Object removeElementAt(java.lang.Object array,
                                               int index)

addElement

public static java.lang.Object addElement(java.lang.Object array,
                                          java.lang.Object newElement)

subarray

public static java.lang.Object subarray(java.lang.Object array,
                                        int startIndex)

min

public static int min(int int1,
                      int int2)

isIE4

public static boolean isIE4(AWRequest request)

isIE4

public static java.lang.Boolean isIE4(AWSession session)

isIE4

public static java.lang.Boolean isIE4(AWRequestContext requestContext)

setHeadersForDownload

public static void setHeadersForDownload(AWResponse response,
                                         java.lang.String fileName)
Deprecated. Use setHeadersForDownload with requestContext instead


setHeadersForDownload

public static void setHeadersForDownload(AWRequestContext requestContext,
                                         AWResponse response,
                                         java.lang.String fileName)
Sets the Content-Disposition header in a browser dependent way. Encodes filename in UTF-8.


stringValueForExcel

public static java.lang.Object stringValueForExcel(java.lang.Object objectValue)
This is to handle the case when exporting a string that is a number prefixed with some 0s like 00012345 or 123.4500 which when opened in Excel would be treated as 12345 or 123.45 (numbers) which stops other systems from using them as a lookup key without the leading/ending 0s.

This method will return a string in this format ="00012345" or ="123.4500" so that Excel will treat it as a string and not to chop off the leading/ending 0s, when necessary.



AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.