jmri.util.swing
Class GuiUtilBase

Show UML class diagram
java.lang.Object
  extended by jmri.util.swing.GuiUtilBase
Direct Known Subclasses:
JMenuUtil, JToolBarUtil, JTreeUtil

public class GuiUtilBase
extends Object

Common utility methods for working with GUI items


Nested Class Summary
(package private) static class GuiUtilBase.CallingAbstractAction
           
 
Field Summary
(package private) static org.slf4j.Logger log
           
 
Constructor Summary
GuiUtilBase()
           
 
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
 

Field Detail

log

static org.slf4j.Logger log
Constructor Detail

GuiUtilBase

public GuiUtilBase()
Method Detail

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: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads