net.sf.jomic.common
Class JomicTools

java.lang.Object
  extended by net.sf.jomic.common.JomicTools

public final class JomicTools
extends java.lang.Object

Jomic-specific tools.

Author:
Thomas Aglassinger

Method Summary
 void beep()
          Make a beep, which is mostly useful to give an audible cue that some action could not be performed.
 javax.swing.Icon getJomicLogo()
          Get icon with the Jomic logo.
 java.util.Date getVersionDate()
          Get the date the current version of Jomic was released.
static JomicTools instance()
           
 void setFullScreenCancelabel(FullScreenCancelabel newFullScreebCancelabel)
           
 void setIconToJomicLogo(javax.swing.JFrame frame)
          Set icon of frame to the Jomic logo.
 void showError(java.awt.event.ActionEvent event, java.lang.Throwable error)
          Show error message for being unable to process event (which may be null).
 void showError(javax.swing.JFrame owner, java.lang.String key, java.lang.Object[] options, java.lang.Throwable error)
          Show error message relative to owner, with localized message built from key and options, caused by error.
 void showError(javax.swing.JFrame owner, java.lang.String key, java.lang.Object option, java.lang.Throwable error)
          Show error message relative to owner, with localized message built from key and option, caused by error.
 void showError(javax.swing.JFrame owner, java.lang.String key, java.lang.Throwable error)
          Show error message relative to owner, with localized message built from key , caused by error.
 void showError(java.beans.PropertyChangeEvent event, java.lang.Throwable error)
          Show error message for being unable to change property according to event.
 void showWarning(javax.swing.JFrame owner, java.lang.String key, java.lang.Object[] options, java.lang.Throwable error)
          Show warning message relative to owner, with localized message built from key and options, caused by error.
 void showWarning(javax.swing.JFrame owner, java.lang.String key, java.lang.Object option, java.lang.Throwable error)
          Show warning message relative to owner, with localized message built from key and option, caused by error.
 void showWarning(javax.swing.JFrame owner, java.lang.String key, java.lang.Throwable error)
          Show warning message relative to owner, with localized message built from key, caused by error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

beep

public void beep()
Make a beep, which is mostly useful to give an audible cue that some action could not be performed.


showError

public void showError(java.awt.event.ActionEvent event,
                      java.lang.Throwable error)
Show error message for being unable to process event (which may be null).


setFullScreenCancelabel

public void setFullScreenCancelabel(FullScreenCancelabel newFullScreebCancelabel)

setIconToJomicLogo

public void setIconToJomicLogo(javax.swing.JFrame frame)
Set icon of frame to the Jomic logo.

See Also:
JFrame.setIconImage(Image)

getJomicLogo

public javax.swing.Icon getJomicLogo()
Get icon with the Jomic logo.


getVersionDate

public java.util.Date getVersionDate()
Get the date the current version of Jomic was released.

See Also:
Version.DATE

instance

public static JomicTools instance()

showError

public void showError(javax.swing.JFrame owner,
                      java.lang.String key,
                      java.lang.Throwable error)
Show error message relative to owner, with localized message built from key , caused by error.


showError

public void showError(javax.swing.JFrame owner,
                      java.lang.String key,
                      java.lang.Object option,
                      java.lang.Throwable error)
Show error message relative to owner, with localized message built from key and option, caused by error.


showError

public void showError(javax.swing.JFrame owner,
                      java.lang.String key,
                      java.lang.Object[] options,
                      java.lang.Throwable error)
Show error message relative to owner, with localized message built from key and options, caused by error.


showError

public void showError(java.beans.PropertyChangeEvent event,
                      java.lang.Throwable error)
Show error message for being unable to change property according to event.


showWarning

public void showWarning(javax.swing.JFrame owner,
                        java.lang.String key,
                        java.lang.Object option,
                        java.lang.Throwable error)
Show warning message relative to owner, with localized message built from key and option, caused by error.


showWarning

public void showWarning(javax.swing.JFrame owner,
                        java.lang.String key,
                        java.lang.Object[] options,
                        java.lang.Throwable error)
Show warning message relative to owner, with localized message built from key and options, caused by error.


showWarning

public void showWarning(javax.swing.JFrame owner,
                        java.lang.String key,
                        java.lang.Throwable error)
Show warning message relative to owner, with localized message built from key, caused by error.