jmri.util.swing
Class GuiUtilBase
java.lang.Object
jmri.util.swing.GuiUtilBase
- Direct Known Subclasses:
- JMenuUtil, JToolBarUtil, JTreeUtil
public class GuiUtilBase
- extends Object
Common utility methods for working with GUI items
|
Field Summary |
(package private) static org.slf4j.Logger |
log
|
|
Method Summary |
(package private) static Action |
actionFromNode(org.jdom.Element child,
WindowInterface wi,
Object context)
|
(package private) static Action |
createActionInCallingWindow(Object obj,
String[] args,
String name,
Icon icon)
Create an action against the object that invoked the creation of the GUIBase, a string array is used
so that in the future further options can be specified to be passed. |
(package private) static Action |
createEmptyMenuItem(Icon icon,
String name)
|
protected static org.jdom.Element |
rootFromName(String name)
Get root element from XML file, handling errors locally. |
(package private) static void |
setParameters(JmriAbstractAction act,
HashMap<String,String> parameters)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
static org.slf4j.Logger log
GuiUtilBase
public GuiUtilBase()
actionFromNode
static Action actionFromNode(org.jdom.Element child,
WindowInterface wi,
Object context)
createActionInCallingWindow
static Action createActionInCallingWindow(Object obj,
String[] args,
String name,
Icon icon)
- Create an action against the object that invoked the creation of the GUIBase, a string array is used
so that in the future further options can be specified to be passed.
createEmptyMenuItem
static Action createEmptyMenuItem(Icon icon,
String name)
setParameters
static void setParameters(JmriAbstractAction act,
HashMap<String,String> parameters)
rootFromName
protected static org.jdom.Element rootFromName(String name)
- Get root element from XML file, handling errors locally.
Copyright © 1997-2013 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.
Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: