public class ComponentUtils
extends java.lang.Object
Constructor and Description |
---|
ComponentUtils() |
Modifier and Type | Method and Description |
---|---|
static java.awt.Component |
findChildOfClass(java.awt.Container container,
java.lang.Class cls)
Finds a child of the given class anywhere down the containment tree
|
static java.awt.Container |
getActiveWindow()
Returns window that is supposed to receive user focus
|
static java.lang.String |
getCssClasses(java.awt.Component comp)
Returns CSS class string for specified component, includes component
class name (likeMyPanel_1 or JButton) for base customization, classes
used by AjaxSwing javascript code (like window, modal,
JDividerEnabledVertical)
|
static FileOpener |
getFileOpener(java.awt.Component component)
Deprecated.
|
static java.util.Map<java.lang.String,java.lang.String> |
getHtmlAttributes(javax.swing.JComponent component)
Deprecated.
HTML attributes specified for Swing component are automatically appended
to the rendered HTML element that represents the component. For instance,
calling ComponentUtils.getHtmlAttributes(myButton).put("tabindex", "1")
for a button that is represented with HTML element will result in
the following HTML HTML
attribute being added
|
static java.lang.String |
getWindowTitle(java.awt.Component comp) |
static boolean |
isHeavyPanel(java.awt.Component comp)
Check that component is heavy panel
|
static boolean |
isTitledPane(java.lang.Object comp) |
static boolean |
isWindow(java.awt.Component comp) |
static void |
setFileOpener(javax.swing.JComponent component,
FileOpener fileOpener)
Deprecated.
|
public static java.awt.Component findChildOfClass(java.awt.Container container, java.lang.Class cls)
public static java.awt.Container getActiveWindow()
public static boolean isHeavyPanel(java.awt.Component comp)
comp
- - component to be checkedpublic static java.lang.String getCssClasses(java.awt.Component comp)
comp
- public static FileOpener getFileOpener(java.awt.Component component)
public static java.util.Map<java.lang.String,java.lang.String> getHtmlAttributes(javax.swing.JComponent component)
component
- public static java.lang.String getWindowTitle(java.awt.Component comp)
public static boolean isTitledPane(java.lang.Object comp)
public static boolean isWindow(java.awt.Component comp)
public static void setFileOpener(javax.swing.JComponent component, FileOpener fileOpener)
Copyright © 2000-2012 CreamTec LLC. All Rights Reserved.