net.sourceforge.dvb.projectx.gui
Class CommonGui

java.lang.Object
  |
  +--net.sourceforge.dvb.projectx.gui.CommonGui

public class CommonGui
extends java.lang.Object


Constructor Summary
CommonGui()
           
 
Method Summary
static CollectionProperties getCollectionProperties()
           
static FileProperties getFileProperties()
           
static X_JFileChooser getMainFileChooser()
           
static PicturePanel getPicturePanel()
           
static boolean getUserConfirmation(java.lang.String arg1)
           
static java.lang.String getUserInput(javax.swing.JFrame _frame, java.lang.String arg1, java.lang.String arg2, java.lang.Object arg3)
           
static java.lang.String getUserInput(java.lang.String arg1)
           
static java.lang.String getUserInput(java.lang.String arg1, java.lang.String arg2)
           
static java.lang.String getUserInput(java.lang.String arg1, java.lang.String arg2, java.lang.Object arg3)
          user dialog field filled with suggestion by 'mcr42' 2005/06/16
static javax.swing.ImageIcon loadIcon(java.lang.String iconName)
          Loads an image as ImageIcon.
static void localize(javax.swing.AbstractButton button, java.lang.String key)
          Sets a button's text and mnemonic values using the specified resource key.
static void setMainFrame(javax.swing.JFrame _frame)
           
static void showErrorMessageDialog(java.lang.Object message, java.lang.String title)
           
static void showMessageDialog(java.lang.Object message, java.lang.String title)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonGui

public CommonGui()
Method Detail

setMainFrame

public static void setMainFrame(javax.swing.JFrame _frame)

getUserInput

public static java.lang.String getUserInput(java.lang.String arg1)

getUserInput

public static java.lang.String getUserInput(java.lang.String arg1,
                                            java.lang.String arg2)

getUserInput

public static java.lang.String getUserInput(java.lang.String arg1,
                                            java.lang.String arg2,
                                            java.lang.Object arg3)
user dialog field filled with suggestion by 'mcr42' 2005/06/16

getUserInput

public static java.lang.String getUserInput(javax.swing.JFrame _frame,
                                            java.lang.String arg1,
                                            java.lang.String arg2,
                                            java.lang.Object arg3)

getUserConfirmation

public static boolean getUserConfirmation(java.lang.String arg1)

showErrorMessageDialog

public static void showErrorMessageDialog(java.lang.Object message,
                                          java.lang.String title)

showMessageDialog

public static void showMessageDialog(java.lang.Object message,
                                     java.lang.String title)

localize

public static final void localize(javax.swing.AbstractButton button,
                                  java.lang.String key)
Sets a button's text and mnemonic values using the specified resource key. The button text is scanned for &. If found the character after it is used as menmonic.
Parameters:
button - the button (e.g. a menu or menu item) to localize
key - the resource string to find

loadIcon

public static javax.swing.ImageIcon loadIcon(java.lang.String iconName)
Loads an image as ImageIcon.
Parameters:
iconName -  
Returns:
ImageIcon

getMainFileChooser

public static X_JFileChooser getMainFileChooser()

getPicturePanel

public static PicturePanel getPicturePanel()

getFileProperties

public static FileProperties getFileProperties()

getCollectionProperties

public static CollectionProperties getCollectionProperties()