|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.creamtec.ajaxswing.v4.utils.ComponentUtils
public class ComponentUtils
Constructor Summary | |
---|---|
ComponentUtils()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentUtils()
Method Detail |
---|
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 checked
public 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |