com.miami.romeo.config
Class Utils

java.lang.Object
  extended bycom.miami.romeo.config.Utils

public class Utils
extends java.lang.Object


Field Summary
 int x
           
 
Constructor Summary
Utils()
          Constructor without parameters.
Utils(java.io.File config_file)
          Parameters for the constructor: File config_file.
Utils(java.io.File config_file, java.io.File language_file)
          Parameters for the constructor: File config_file, File language_file.
Utils(java.lang.String config_name)
          Parameters for the constructor: String config_name.
Utils(java.lang.String config_name, java.lang.String language_name)
          Parameters for the constructor: String config_name, String language_name.
 
Method Summary
 void checkFiles()
          This method verifies if all files needed by Romeo exist.
 java.lang.String concatenateValues(java.lang.String[] dir, java.lang.String separator)
           
 javax.swing.ImageIcon createImageIcon16x16(java.lang.String filename)
          Creates an icon 16x16 from an image contained in the "images" directory.
 javax.swing.ImageIcon createImageIcon24x24(java.lang.String filename)
          Creates an icon 24x24 from an image contained in the "images" directory.
 javax.swing.ImageIcon createImageIcon32x32(java.lang.String filename)
          Creates an icon 32x32 from an image contained in the "images" directory.
 int getFrameParameter(javax.swing.JFrame frame, java.lang.String suffix)
          This method retrieves an int from the configuration file to be used building modules.
 char getMnemonic(java.lang.String key)
          This method returns a mnemonic.
 java.lang.String getString(java.lang.String text)
          This method returns a string value to identify a generic component.
 void goToUrl(java.lang.String homepage)
          This method runs system browser or hyperlink module to go to an url location
 void message(javax.swing.JLabel label, java.lang.String str)
          his method sets the messages in a label
 java.lang.String[] parseValues(java.lang.String row, char c)
           
 void saveFrameParameters(javax.swing.JFrame frame, Info info)
          Save frame parameters in the configuration file.
 void setProgressBarMaximum(javax.swing.JProgressBar progressBar, int value)
          This method sets the progress bar maximum value
 void setProgressBarString(javax.swing.JProgressBar progressBar, java.lang.String string)
          This method sets the progress bar string
 void setProgressBarValue(javax.swing.JProgressBar progressBar, int value)
          This method sets the progress bar value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public int x
Constructor Detail

Utils

public Utils(java.lang.String config_name)
Parameters for the constructor: String config_name.


Utils

public Utils(java.io.File config_file)
Parameters for the constructor: File config_file.


Utils

public Utils(java.lang.String config_name,
             java.lang.String language_name)
Parameters for the constructor: String config_name, String language_name.


Utils

public Utils(java.io.File config_file,
             java.io.File language_file)
Parameters for the constructor: File config_file, File language_file.


Utils

public Utils()
Constructor without parameters.

Method Detail

checkFiles

public void checkFiles()
This method verifies if all files needed by Romeo exist.


getMnemonic

public char getMnemonic(java.lang.String key)
This method returns a mnemonic. Typically used as keyboard shortcuts in menu items.


createImageIcon16x16

public javax.swing.ImageIcon createImageIcon16x16(java.lang.String filename)
Creates an icon 16x16 from an image contained in the "images" directory.


createImageIcon24x24

public javax.swing.ImageIcon createImageIcon24x24(java.lang.String filename)
Creates an icon 24x24 from an image contained in the "images" directory.


createImageIcon32x32

public javax.swing.ImageIcon createImageIcon32x32(java.lang.String filename)
Creates an icon 32x32 from an image contained in the "images" directory.


getString

public java.lang.String getString(java.lang.String text)
This method returns a string value to identify a generic component.


message

public void message(javax.swing.JLabel label,
                    java.lang.String str)
his method sets the messages in a label


setProgressBarValue

public void setProgressBarValue(javax.swing.JProgressBar progressBar,
                                int value)
This method sets the progress bar value


setProgressBarMaximum

public void setProgressBarMaximum(javax.swing.JProgressBar progressBar,
                                  int value)
This method sets the progress bar maximum value


setProgressBarString

public void setProgressBarString(javax.swing.JProgressBar progressBar,
                                 java.lang.String string)
This method sets the progress bar string


goToUrl

public void goToUrl(java.lang.String homepage)
This method runs system browser or hyperlink module to go to an url location


concatenateValues

public java.lang.String concatenateValues(java.lang.String[] dir,
                                          java.lang.String separator)

parseValues

public java.lang.String[] parseValues(java.lang.String row,
                                      char c)

getFrameParameter

public int getFrameParameter(javax.swing.JFrame frame,
                             java.lang.String suffix)
This method retrieves an int from the configuration file to be used building modules.


saveFrameParameters

public void saveFrameParameters(javax.swing.JFrame frame,
                                Info info)
Save frame parameters in the configuration file.