SEdit
Class Utils
java.lang.Object
SEdit.Utils
- public class Utils
- extends Object
Constructor Summary |
Utils()
|
Method Summary |
static CommandAction |
addCommand(Command c,
JMenu m,
JToolBar t,
String name,
String shortdesc,
String icon,
int key)
|
static void |
addMenuItem(ActionListener al,
JMenu m,
String label,
String command,
int key)
|
static void |
addMenuItem(ActionListener al,
JMenu m,
String label,
String command,
int key,
int ckey)
|
static void |
addPopupItems(JPopupMenu p,
Hashtable elems,
ActionListener al)
Add the content of a hashtable to an existing popup-menu |
static void |
addRadioButtonMenuItem(ActionListener al,
JMenu m,
String label,
String command,
boolean b,
ButtonGroup g)
|
static void |
debug(Object s)
|
static void |
debug(Object o,
Object s)
|
static String |
getExtension(File f)
|
static Container |
getFrameParent(Container _c)
|
static Frame |
getRealFrameParent(Component c)
get the Frame that surrounds a component. |
static void |
log(String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils
public Utils()
log
public static void log(String s)
debug
public static void debug(Object s)
debug
public static void debug(Object o,
Object s)
addCommand
public static CommandAction addCommand(Command c,
JMenu m,
JToolBar t,
String name,
String shortdesc,
String icon,
int key)
getExtension
public static String getExtension(File f)
getRealFrameParent
public static Frame getRealFrameParent(Component c)
- get the Frame that surrounds a component. May be used for buildings
dialogs Ol: JF import
getFrameParent
public static Container getFrameParent(Container _c)
addMenuItem
public static void addMenuItem(ActionListener al,
JMenu m,
String label,
String command,
int key)
addMenuItem
public static void addMenuItem(ActionListener al,
JMenu m,
String label,
String command,
int key,
int ckey)
addRadioButtonMenuItem
public static void addRadioButtonMenuItem(ActionListener al,
JMenu m,
String label,
String command,
boolean b,
ButtonGroup g)
addPopupItems
public static void addPopupItems(JPopupMenu p,
Hashtable elems,
ActionListener al)
- Add the content of a hashtable to an existing popup-menu
Copyright © J. Ferber, O. Gutknecht All Rights Reserved.