Luky Library - 4.1.1 (20061117-1148)

luky
Class Version

java.lang.Object
  extended by luky.Version
All Implemented Interfaces:
MouseListener, EventListener

public class Version
extends Object
implements MouseListener

Version Class is used to get the version of the Luky utilities class runtime
The Luky Libraries incorporate the:

Revision History

Version:
4.1.1
Author:
Chris Lukassen
 

Constructor Summary
Version()
          default constructor
Version(String name, String version, String buildTime)
          alternative constructor
 
Method Summary
 void about()
          aboutBox shows a about box
 void about(String name, String version)
          aboutBox shows a about box
 String getAppBuildTimeString()
          returns the build time as a string of the application
 String getAppVersion()
          returns the current version of the Application using the library
 String getLibBuildTimeString()
          returns the build time as a string of the library
 String getLibVersion()
          returns the current version of the Library
static void main(String[] args)
          runtime function to get the current version, prints it to stdout
 void mouseClicked(MouseEvent e)
          Invoked when the mouse button has been clicked (pressed and released) on a component.
 void mouseEntered(MouseEvent e)
          Invoked when the mouse enters a component.
 void mouseExited(MouseEvent e)
          Invoked when the mouse exits a component.
 void mousePressed(MouseEvent e)
          Invoked when a mouse button has been pressed on a component.
 void mouseReleased(MouseEvent e)
          Invoked when a mouse button has been released on a component.
 void setAppBuildTime(String time)
          set application buildtime shown in about box
 void setAppName(String name)
          set application name shown in about box
 void setAppVersion(String version)
          set application version shown in about box
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Version

public Version()
default constructor


Version

public Version(String name,
               String version,
               String buildTime)
alternative constructor

Parameters:
name - name name of the application using the library
version - version of the application using the library
buildTime - build time of the application using the library
Method Detail

getAppVersion

public String getAppVersion()
returns the current version of the Application using the library

Returns:
the version as a string

getLibVersion

public String getLibVersion()
returns the current version of the Library

Returns:
the version as a string

main

public static void main(String[] args)
runtime function to get the current version, prints it to stdout


getAppBuildTimeString

public String getAppBuildTimeString()
returns the build time as a string of the application

Returns:
the build time as a string

getLibBuildTimeString

public String getLibBuildTimeString()
returns the build time as a string of the library

Returns:
the build time as a string

setAppBuildTime

public void setAppBuildTime(String time)
set application buildtime shown in about box

Parameters:
time - buildTime of the application using the library

setAppName

public void setAppName(String name)
set application name shown in about box

Parameters:
name - name name of the application using the library

setAppVersion

public void setAppVersion(String version)
set application version shown in about box

Parameters:
version - version of the application using the library

about

public void about(String name,
                  String version)
aboutBox shows a about box

Parameters:
name - name name of the application using the library
version - version of the application using the library

about

public void about()
aboutBox shows a about box


mouseClicked

public void mouseClicked(MouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on a component. nothing happens

Specified by:
mouseClicked in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent e)
Invoked when the mouse enters a component. nothing happens

Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent e)
Invoked when the mouse exits a component. nothing happens

Specified by:
mouseExited in interface MouseListener

mousePressed

public void mousePressed(MouseEvent e)
Invoked when a mouse button has been pressed on a component. shows the about dialog

Specified by:
mousePressed in interface MouseListener

mouseReleased

public void mouseReleased(MouseEvent e)
Invoked when a mouse button has been released on a component.

Specified by:
mouseReleased in interface MouseListener

Luky Library - 4.1.1 (20061117-1148)