public class JavaGuiElementDeclarationManager extends Object
| Constructor and Description |
|---|
JavaGuiElementDeclarationManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addElementNamesToSetOfAlreadyDeclaredElementNames(Collection<String> elementNames)
The usedElementNames is a set of known declared elements, to avoid naming elements the
same as already declared elements and thereby getting compilation errors.
|
static void |
addElementNameToSetOfAlreadyDeclaredElementNames(String elementName)
The usedElementNames is a set of known declared elements, to avoid naming elements the
same as already declared elements and thereby getting compilation errors.
|
static void |
addJavaGuiElementsToDeclaredElementsList(Collection<JavaGuiElement> javaGuiElements)
The list of declared elements is used for better code generation.
|
static void |
addJavaGuiElementToDeclaredElementsList(JavaGuiElement javaGuiElement)
The list of declared elements is used for better code generation.
|
static JavaGuiElement |
createJavaGuiElement(Component component)
Attempts to create a uniquely identifiable JavaGuiElement from the component.
|
static String |
javaGuiElementAsCodeHtml(JavaGuiElement javaGuiElement)
Creates a HTML representation of the element declaration, for use in HTML or TextPanes.
|
static String |
javaGuiElementAsCodeString(JavaGuiElement javaGuiElement)
Create a code reprsentation for a JavaGuiElement, to be used in code generation for recordings.
|
public static JavaGuiElement createJavaGuiElement(Component component)
component - The component to create a corresponding JavaGuiElement declaration for.public static void addElementNameToSetOfAlreadyDeclaredElementNames(String elementName)
elementName - JavaGuiElement elementName to add to list.public static void addJavaGuiElementToDeclaredElementsList(JavaGuiElement javaGuiElement)
javaGuiElement - JavaGuiElement to add.public static void addJavaGuiElementsToDeclaredElementsList(Collection<JavaGuiElement> javaGuiElements)
javaGuiElements - JavaGuiElement to add.public static void addElementNamesToSetOfAlreadyDeclaredElementNames(Collection<String> elementNames)
elementNames - JavaGuiElement elementNames to add to list.public static String javaGuiElementAsCodeString(JavaGuiElement javaGuiElement)
javaGuiElement - The JavaGuiElement to return the instansiation declaration for.public static String javaGuiElementAsCodeHtml(JavaGuiElement javaGuiElement)
javaGuiElement - The JavaGuiElement to representCopyright © 2019. All rights reserved.