public class ComponentDef
extends java.lang.Object
implements java.lang.Comparable<java.lang.Object>
Modifier and Type | Field and Description |
---|---|
java.lang.String |
add |
java.lang.String |
configure |
java.lang.String |
declarations |
javax.swing.Icon |
icon |
java.lang.String |
iconClass |
java.lang.String |
imports |
boolean |
isContainer |
java.lang.String |
name |
java.lang.String |
preview |
java.lang.String |
remove |
Constructor and Description |
---|
ComponentDef() |
ComponentDef(org.w3c.dom.Node componentNode) |
ComponentDef(java.lang.String name,
java.lang.String imp,
java.lang.String decl,
java.lang.String add) |
Modifier and Type | Method and Description |
---|---|
ComponentDef |
clone()
When dragging from the palette we need a clone rather than modify
the original.
|
int |
compareTo(java.lang.Object o)
Make it sortable on name so the palette is ordered.
|
static java.util.List<ComponentDef> |
createComponentDefs()
Creates a new instance of Component Palette.
|
java.lang.String |
getAdd(java.lang.String name) |
java.lang.String |
getConfigure(java.lang.String name) |
java.lang.String |
getDeclarations(java.lang.String name) |
java.lang.String |
getDescription() |
java.lang.String |
getImports(java.lang.String name) |
(package private) void |
getTextContent(org.w3c.dom.Node anode,
java.lang.StringBuffer buf) |
(package private) boolean |
hasTextContent(org.w3c.dom.Node child) |
static void |
main(java.lang.String[] args) |
public java.lang.String name
public java.lang.String iconClass
public javax.swing.Icon icon
public java.lang.String declarations
public java.lang.String configure
public java.lang.String add
public java.lang.String remove
public java.lang.String imports
public java.lang.String preview
public boolean isContainer
public ComponentDef()
public ComponentDef(org.w3c.dom.Node componentNode)
public ComponentDef(java.lang.String name, java.lang.String imp, java.lang.String decl, java.lang.String add)
public java.lang.String getDescription()
final boolean hasTextContent(org.w3c.dom.Node child)
void getTextContent(org.w3c.dom.Node anode, java.lang.StringBuffer buf)
public static java.util.List<ComponentDef> createComponentDefs()
public java.lang.String getConfigure(java.lang.String name)
public java.lang.String getImports(java.lang.String name)
public java.lang.String getDeclarations(java.lang.String name)
public java.lang.String getAdd(java.lang.String name)
public ComponentDef clone()
clone
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable<java.lang.Object>
public static void main(java.lang.String[] args)