All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Interface.Common

java.lang.Object
   |
   +----Interface.Common

public class Common
extends Object

Variable Index

 o COLUMNS

Constructor Index

 o Common()

Method Index

 o dayToNo(String)
function for getting the number corresponding to a day (String)
 o getColSpan(String, String)
 o getColumn(String)
 o getDateDiff(Date, Date)
function for getting the number of days represented by the difference of two dates
 o getSlot(String)
simple function just to return the number corresponding to each time interval
 o getSlot(String, char)
 o initTable(Date, Date)
This function Initializes the table
 o noToDay(int)
function for getting the String day corresponding to a number
 o stringToDate(String)
function to get a java.util.Date object from a date encoded in a string in the format dd-mm-yyyy
 o toHTML(String[][][])
 o toHTML(Vector)
 o Vector2String(Vector)
This function takes the vector output of query and converts it into a string matrix .
 o Vector2String(Vector, Vector)

Variables

 o COLUMNS
 public static final int COLUMNS

Constructors

 o Common
 public Common()

Methods

 o Vector2String
 public static String[][] Vector2String(Vector table)
This function takes the vector output of query and converts it into a string matrix . In turn it feeds it to the main Make Table function

 o Vector2String
 public static String[][] Vector2String(Vector table1,
                                        Vector table2)
 o initTable
 public static String[][][] initTable(Date begindate,
                                      Date enddate)
This function Initializes the table

 o toHTML
 public static String toHTML(Vector vec)
 o toHTML
 public static String toHTML(String table[][][])
 o getDateDiff
 public static int getDateDiff(Date date2,
                               Date date1)
function for getting the number of days represented by the difference of two dates

 o stringToDate
 public static Date stringToDate(String str)
function to get a java.util.Date object from a date encoded in a string in the format dd-mm-yyyy

 o getSlot
 public static int getSlot(String time,
                           char c)
 o getColSpan
 public static int getColSpan(String time1,
                              String time2)
 o getColumn
 public static int getColumn(String time)
 o getSlot
 public static int getSlot(String time)
simple function just to return the number corresponding to each time interval

 o noToDay
 public static String noToDay(int no)
function for getting the String day corresponding to a number

 o dayToNo
 public static int dayToNo(String day)
function for getting the number corresponding to a day (String)


All Packages  Class Hierarchy  This Package  Previous  Next  Index