Class IgnitionSwingUtilities


  • public class IgnitionSwingUtilities
    extends java.lang.Object
    Ignition's very own version of the infamous SwingUtilities class. Contains similar functions with slightly altered semantics.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.swing.border.Border compoundBorder​(javax.swing.border.Border... borders)
      Creates a compound border with any number of borders.
      static void enableFocusLogging()  
      static <T> T getAncestorOfClass​(java.lang.Class<T> c, java.awt.Component comp)
      Just like SwingUtilities#getAncestorOfClass(Class, Component), except that if comp is the class you're looking for, it'll be found.
      static void installEscapeCloseAction​(javax.swing.JDialog dialog)  
      static void stopEditing​(javax.swing.JTable table)  
      • Methods inherited from class java.lang.Object

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

      • IgnitionSwingUtilities

        public IgnitionSwingUtilities()
    • Method Detail

      • getAncestorOfClass

        public static <T> T getAncestorOfClass​(java.lang.Class<T> c,
                                               java.awt.Component comp)
                                        throws java.lang.NullPointerException
        Just like SwingUtilities#getAncestorOfClass(Class, Component), except that if comp is the class you're looking for, it'll be found.
        Type Parameters:
        T - The type of the class to search for
        Parameters:
        c - The class you are looking for of type T
        comp - The component whose ancestors will be searched
        Returns:
        The ancestor of the component of type T, or null if the class cannot be found or if the component passed in is null.
        Throws:
        java.lang.NullPointerException - If c is null
      • compoundBorder

        public static javax.swing.border.Border compoundBorder​(javax.swing.border.Border... borders)
        Creates a compound border with any number of borders. Borders go outer to inner. Any border may be null.
      • enableFocusLogging

        public static void enableFocusLogging()
      • stopEditing

        public static void stopEditing​(javax.swing.JTable table)
      • installEscapeCloseAction

        public static void installEscapeCloseAction​(javax.swing.JDialog dialog)