public abstract class Components
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.awt.Component[] |
EMPTY_COMPONENT_ARRAY |
static java.util.List<java.awt.Component> |
EMPTY_COMPONENT_LIST |
Constructor and Description |
---|
Components() |
Modifier and Type | Method and Description |
---|---|
static void |
addAll(java.awt.Container parent,
java.awt.Component[] list) |
static void |
addAll(java.awt.Container parent,
java.lang.Iterable<? extends java.awt.Component> list) |
static java.lang.String |
getNameOrText(java.awt.Component c)
Return the first non-null non-empty String of the following: the item's name, text, or actionCommand.
|
static boolean |
isAncestor(java.awt.Component c,
java.awt.Container possibleAncestor)
Returns true if the component c is equal to possibleAncestor or is a child or descendant of possibleAncestor.
|
public static java.awt.Component[] EMPTY_COMPONENT_ARRAY
public static java.util.List<java.awt.Component> EMPTY_COMPONENT_LIST
public static void addAll(java.awt.Container parent, java.awt.Component[] list)
public static void addAll(java.awt.Container parent, java.lang.Iterable<? extends java.awt.Component> list)
public static java.lang.String getNameOrText(java.awt.Component c)
c
- public static boolean isAncestor(java.awt.Component c, java.awt.Container possibleAncestor)