tp.model
Class ResourcesModel

java.lang.Object
  extended by tp.model.ResourcesModel

public class ResourcesModel
extends java.lang.Object

Class, which secures access to files needed by the application.


Constructor Summary
ResourcesModel()
          Constructor of the class
 
Method Summary
 javax.swing.ImageIcon createImageIcon(java.lang.String path)
          Returns an image icon from given file.
 java.lang.String getHelpPage(java.lang.String file_name)
          Returns an HTML code of a page, which should be represented in the help panel.
 java.io.BufferedReader getStopListPath()
          Returns a path to a file, which contains actual stop-list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourcesModel

public ResourcesModel()
Constructor of the class

Method Detail

createImageIcon

public javax.swing.ImageIcon createImageIcon(java.lang.String path)
Returns an image icon from given file.

Parameters:
path - path to a file containing an image icon
Returns:
the image icon

getHelpPage

public java.lang.String getHelpPage(java.lang.String file_name)
Returns an HTML code of a page, which should be represented in the help panel.

Parameters:
file_name - file name of the corresponding HTML page
Returns:
a string with HTML code

getStopListPath

public java.io.BufferedReader getStopListPath()
Returns a path to a file, which contains actual stop-list.

Returns:
a file with a stop-list