Class IgnitionSwingUtilities
- java.lang.Object
- 
- com.inductiveautomation.ignition.client.util.gui.IgnitionSwingUtilities
 
- 
 public class IgnitionSwingUtilities extends java.lang.ObjectIgnition's very own version of the infamous SwingUtilities class. Contains similar functions with slightly altered semantics.
- 
- 
Constructor SummaryConstructors Constructor Description IgnitionSwingUtilities()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.swing.border.BordercompoundBorder(javax.swing.border.Border... borders)Creates a compound border with any number of borders.static voidcreateLargeSubmenu(javax.swing.JMenu menu, java.util.List<javax.swing.Action> items)Fills the JMenu with the items in the list, but limits the menu to 20 at a time, with remaining items accessible under a "more..." item at the bottom.static voidcreateLargeSubmenu(javax.swing.JMenu menu, java.util.List<javax.swing.Action> items, int groupSize)static voidenableFocusLogging()static <T> TgetAncestorOfClass(java.lang.Class<T> c, java.awt.Component comp)Just likeSwingUtilities#getAncestorOfClass(Class, Component), except that if comp is the class you're looking for, it'll be found.static voidinstallEscapeCloseAction(javax.swing.JDialog dialog)static voidstopEditing(javax.swing.JTable table)
 
- 
- 
- 
Method Detail- 
getAncestorOfClasspublic static <T> T getAncestorOfClass(java.lang.Class<T> c, java.awt.Component comp) throws java.lang.NullPointerExceptionJust likeSwingUtilities#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
 
 - 
compoundBorderpublic 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.
 - 
enableFocusLoggingpublic static void enableFocusLogging() 
 - 
stopEditingpublic static void stopEditing(javax.swing.JTable table) 
 - 
installEscapeCloseActionpublic static void installEscapeCloseAction(javax.swing.JDialog dialog) 
 - 
createLargeSubmenupublic static void createLargeSubmenu(javax.swing.JMenu menu, java.util.List<javax.swing.Action> items)Fills the JMenu with the items in the list, but limits the menu to 20 at a time, with remaining items accessible under a "more..." item at the bottom.
 - 
createLargeSubmenupublic static void createLargeSubmenu(javax.swing.JMenu menu, java.util.List<javax.swing.Action> items, int groupSize)
 
- 
 
-