cs.pancava.caltha
Class MainMenu

java.lang.Object
  extended by cs.pancava.caltha.MainMenu

public class MainMenu
extends java.lang.Object

Definuje hlavni menu programu.

Version:
$Revision: 14 $
$LastChangedBy: mihlon $
Author:
Milan Vaclavik

Method Summary
static javax.swing.JMenuItem addMenuItem(java.lang.String name, java.lang.String tip, boolean enable)
          Vytvori novou polozku menu.
 javax.swing.JMenuBar getMenuBar()
          Vrati referenci na hlavni menu programu.
static boolean isEmpty(java.lang.String s)
          Zjisti, zda je retezec prazdny.
static void updateTextTipMenuItem(javax.swing.JMenuItem mi, java.lang.String tip)
          Zmeni tip polozce menu, pokud je definovan.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMenuBar

public final javax.swing.JMenuBar getMenuBar()
Vrati referenci na hlavni menu programu.

Returns:
JMenuBar : Reference na hlavni menu programu.

addMenuItem

public static javax.swing.JMenuItem addMenuItem(java.lang.String name,
                                                java.lang.String tip,
                                                boolean enable)
Vytvori novou polozku menu.

Parameters:
name - String : Nazev polozky menu.
tip - String : Tip - informace o polozce menu.
enable - boolean : True = polozka je aktivni, Flase = polozka je neaktivni
Returns:
JMenuItem : Vraci referenci na prave vytvorenou polozku menu.

isEmpty

public static boolean isEmpty(java.lang.String s)
Zjisti, zda je retezec prazdny.

Parameters:
s - String : Retezec k prozkoumani.
Returns:
boolean : true - je prazdny; false - neni prazdny.

updateTextTipMenuItem

public static void updateTextTipMenuItem(javax.swing.JMenuItem mi,
                                         java.lang.String tip)
Zmeni tip polozce menu, pokud je definovan.

Parameters:
mi - JMenuItem : Polozka, ktere menime tip.
tip - String : Klic k tipu.


Copyright © 2008-2009. All Rights Reserved.