Class GuiUtilBase

    • Constructor Summary

      Constructors 
      Constructor Description
      GuiUtilBase()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static javax.swing.Action actionFromNode​(Element child, WindowInterface wi, java.lang.Object context)  
      (package private) static javax.swing.Action createActionInCallingWindow​(java.lang.Object obj, java.lang.String[] args, java.lang.String name, javax.swing.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 javax.swing.Action createEmptyMenuItem​(javax.swing.Icon icon, java.lang.String name)  
      protected static Element rootFromName​(java.lang.String name)
      Get root element from XML file, handling errors locally.
      (package private) static void setParameters​(JmriAbstractAction act, java.util.HashMap<java.lang.String,​java.lang.String> parameters)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createActionInCallingWindow

        static javax.swing.Action createActionInCallingWindow​(java.lang.Object obj,
                                                              java.lang.String[] args,
                                                              java.lang.String name,
                                                              javax.swing.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.
        Parameters:
        obj - the object to create an action for
        args - arguments to passed remoteCalls method of obj
        name - name of the action
        icon - icon for the action
        Returns:
        the action for obj or an empty action with name and icon
      • createEmptyMenuItem

        static javax.swing.Action createEmptyMenuItem​(javax.swing.Icon icon,
                                                      java.lang.String name)
      • rootFromName

        protected static Element rootFromName​(java.lang.String name)
        Get root element from XML file, handling errors locally.
        Parameters:
        name - the name of the XML file
        Returns:
        the root element or null