public final class Utils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FORM_NAMESPACE |
Modifier and Type | Method and Description |
---|---|
static int |
alignFromConstraints(GridConstraints gc,
boolean horizontal) |
static java.lang.String |
findNotEmptyPanelWithXYLayout(IComponent component) |
static java.lang.String |
getBoundClassName(java.lang.String formFileContent) |
static int |
getCustomCreateComponentCount(IContainer container) |
static int |
getHGap(java.awt.LayoutManager layout) |
static LwRootContainer |
getRootContainer(java.io.InputStream stream,
PropertiesProvider provider) |
static LwRootContainer |
getRootContainer(java.lang.String formFileContent,
PropertiesProvider provider) |
static LwRootContainer |
getRootContainer(java.net.URL formFile,
PropertiesProvider provider)
Get root from the url
|
static int |
getVGap(java.awt.LayoutManager layout) |
static boolean |
isBoundField(IComponent component,
java.lang.String fieldName) |
static java.lang.Class |
suggestReplacementClass(java.lang.Class<?> componentClass) |
static InstrumentationClassFinder.PseudoClass |
suggestReplacementClass(InstrumentationClassFinder.PseudoClass componentClass) |
static java.lang.String |
validateJComponentClass(java.lang.ClassLoader loader,
java.lang.String className,
boolean validateConstructor)
Validates that specified class represents
JComponent with
empty constructor. |
static void |
validateNestedFormLoop(java.lang.String formName,
NestedFormLoader nestedFormLoader) |
static void |
validateNestedFormLoop(java.lang.String formName,
NestedFormLoader nestedFormLoader,
java.lang.String targetForm) |
public static final java.lang.String FORM_NAMESPACE
public static LwRootContainer getRootContainer(java.lang.String formFileContent, PropertiesProvider provider) throws java.lang.Exception
provider
- if null, no classes loaded and no properties readjava.lang.Exception
public static LwRootContainer getRootContainer(java.net.URL formFile, PropertiesProvider provider) throws java.lang.Exception
formFile
- the document URLprovider
- the providerjava.lang.Exception
- if there is a problem with parsing DOMpublic static LwRootContainer getRootContainer(java.io.InputStream stream, PropertiesProvider provider) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getBoundClassName(java.lang.String formFileContent) throws java.lang.Exception
java.lang.Exception
public static java.lang.String validateJComponentClass(java.lang.ClassLoader loader, java.lang.String className, boolean validateConstructor)
JComponent
with
empty constructor.null
if
no errors were detected.public static void validateNestedFormLoop(java.lang.String formName, NestedFormLoader nestedFormLoader) throws CodeGenerationException, RecursiveFormNestingException
public static void validateNestedFormLoop(java.lang.String formName, NestedFormLoader nestedFormLoader, java.lang.String targetForm) throws CodeGenerationException, RecursiveFormNestingException
public static java.lang.String findNotEmptyPanelWithXYLayout(IComponent component)
public static int getHGap(java.awt.LayoutManager layout)
public static int getVGap(java.awt.LayoutManager layout)
public static int getCustomCreateComponentCount(IContainer container)
public static java.lang.Class suggestReplacementClass(java.lang.Class<?> componentClass)
public static InstrumentationClassFinder.PseudoClass suggestReplacementClass(InstrumentationClassFinder.PseudoClass componentClass) throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException
public static int alignFromConstraints(GridConstraints gc, boolean horizontal)
public static boolean isBoundField(IComponent component, java.lang.String fieldName)