Class IgnitionSwingUtilities
java.lang.Object
com.inductiveautomation.ignition.client.util.gui.IgnitionSwingUtilities
Ignition's very own version of the infamous SwingUtilities class. Contains similar functions with slightly altered
semantics.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BordercompoundBorder(Border... borders) Creates a compound border with any number of borders.static voidcreateLargeSubmenu(JMenu menu, List<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(JMenu menu, List<Action> items, int groupSize) static voidstatic <T> TgetAncestorOfClass(Class<T> c, Component comp) Just likeSwingUtilities#getAncestorOfClass(Class, Component), except that if comp is the class you're looking for, it'll be found.static voidinstallEscapeCloseAction(JDialog dialog) static voidstopEditing(JTable table)
-
Constructor Details
-
IgnitionSwingUtilities
public IgnitionSwingUtilities()
-
-
Method Details
-
getAncestorOfClass
Just 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 Tcomp- 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:
NullPointerException- If c is null
-
compoundBorder
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
-
installEscapeCloseAction
-