|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.am.snitch.utilities.Utilities
public final class Utilities
Utilities class serving all other classes.
| Method Summary | |
|---|---|
static void |
centralize(JDialog myDialog)
Centralize a JDialog in the user screen. |
static void |
createPropertiesFileStructure()
Create the necessary file structure that will hold the applications config files. |
static String |
formatDate(Date date,
String outFormat)
Format a Date. |
static String |
formatDate(String dateStr,
String informat,
String outFormat)
Format a String representation of a Date. |
static List<String> |
getComboBoxData(JComboBox jComboBox)
Retrieve a Vector of Strings from a JComboBox data. |
static String |
getDayFromDate(Date date)
Retrieve the Date name from a date. |
static String[] |
loadExistingCVSRoots()
Read to an array the CVS Roots. |
static Properties |
parseCVSRoot(String cvsroot)
Creates Properties representing the CVS Root. |
static List<String> |
readFileLines(String filename)
Read the contents of a file into a Vector of Strings. |
static void |
writeFile(String file,
List<String> fileLines)
Write tho the file system a configuration file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Properties parseCVSRoot(String cvsroot)
Properties representing the CVS Root.
cvsroot - The String representation of a CVS Root
public static void centralize(JDialog myDialog)
JDialog in the user screen.
myDialog - The component to be centralized
public static String formatDate(String dateStr,
String informat,
String outFormat)
Date.
dateStr - The String representation of the Date to be formatedinformat - The input format with which the date cameoutFormat - The format to which the input date should be formated
public static String formatDate(Date date,
String outFormat)
Date.
date - The Date to be formatedoutFormat - The format to which the input date should be formated
public static List<String> readFileLines(String filename)
Vector of Strings.
filename - The complete filename of the file to be read
List of Strings holding the lines of the input filepublic static void createPropertiesFileStructure()
public static void writeFile(String file,
List<String> fileLines)
file - The complete filename of the file to be readfileLines - The lines of the file to be writtenpublic static List<String> getComboBoxData(JComboBox jComboBox)
Vector of Strings from a JComboBox data.
jComboBox - The component from which data will be read
Vector of Strings from the input componentpublic static String[] loadExistingCVSRoots()
public static String getDayFromDate(Date date)
date - The date
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||