Interface JavaObjectElement
- All Superinterfaces:
 DomQueryable,Element,EventTarget,Node
Activation
   When the Attributes.CLASS_NAME attribute is set, a lookup is
   made via Class.forName(String, boolean, ClassLoader) to find
   the class. The class will be loaded if not already loaded, and the
   Delphi plugin's class loader is used.
 
   If found, then a public static void onDomInitialize(Document)
   method in the class is called. If the method cannot be found, then a
   public constructor with a single Document parameter will be
   called. If that doesn't exist, activation fails.
 
- 
Field Summary
Fields - 
Method Summary
Modifier and TypeMethodDescriptionbooleanJava objects elements cannot have any child nodes@Nullable StringGet the name of the linked class.@Nullable Class<?> Get the class named bygetClassName().voidsetClassName(String className) Set the name of the linked class.booleanGet whether thegetJavaClass()'s entry point was called.Methods inherited from interface com.juliewoolie.dom.DomQueryable
getElementsByClassName, getElementsByTagName, querySelector, querySelectorAllMethods inherited from interface com.juliewoolie.dom.Element
appendChild, appendElement, appendText, clearChildren, firstChild, forEachDescendant, getAttribute, getAttributeEntries, getAttributeNames, getChild, getChildCount, getChildren, getClassList, getCurrentStyle, getId, getStyle, getTagName, getTextContent, getTitleNode, getTooltip, getTooltipBehaviour, getTooltipDelay, hasAttribute, hasChild, hasChildren, indexOf, insertAfter, insertBefore, isDescendant, lastChild, matches, prependChild, removeAttribute, removeChild, removeChild, removeMatchingChildren, replaceChild, replaceChild, setAttribute, setId, setTextContent, setTitleNode, setTooltipBehaviour, setTooltipDelayMethods inherited from interface com.juliewoolie.dom.event.EventTarget
addEventListener, dispatchEvent, getOnAddAttribute, getOnAddOption, getOnAppendChild, getOnAttributeChange, getOnClick, getOnClosing, getOnInput, getOnLoaded, getOnMouseEnter, getOnMouseExit, getOnMouseMove, getOnOptionChange, getOnRemoveAttribute, getOnRemoveChild, getOnRemoveOption, getOnRightClick, getOnSetAttribute, getOnSetOption, getOnSpawned, onAddAttribute, onAddOption, onAppendChild, onAttributeChange, onClick, onClosing, onInput, onLoaded, onMouseEnter, onMouseExit, onMouseMove, onOptionChange, onRemoveAttribute, onRemoveChild, onRemoveOption, onRightClick, onSetAttribute, onSetOption, onSpawned, removeEventListenerMethods inherited from interface com.juliewoolie.dom.Node
enterVisitor, exitVisitor, getDepth, getOwningDocument, getParent, getRenderingBounds, getSiblingIndex, hasFlag, nextSibling, previousSibling 
- 
Field Details
- 
INIT_METHOD_NAME
- See Also:
 
 
 - 
 - 
Method Details
- 
canHaveChildren
@Contract("-> false") boolean canHaveChildren()Java objects elements cannot have any child nodes- Specified by:
 canHaveChildrenin interfaceElement- Returns:
 false
 - 
getClassName
Get the name of the linked class.If the class name is set, and the class it was linked to was found, then it can be accessed with
getJavaClass().Shortcut for accessing the
Attributes.CLASS_NAMEattribute.- Specified by:
 getClassNamein interfaceElement- Returns:
 - Java Class name
 
 - 
getJavaClass
Get the class named bygetClassName().If
getClassName()is not set, or if it doesn't name an existing class, then this method will returnnull.- Returns:
 - Java class
 
 - 
wasEntrypointCalled
boolean wasEntrypointCalled()Get whether thegetJavaClass()'s entry point was called. If this method returnsfalse, then it means the entrypoint couldn't be found or threw an error when called.- Returns:
 true, if the class entry point was called successfully,falseotherwise.
 - 
setClassName
Set the name of the linked class.Shortcut for changing the
Attributes.CLASS_NAMEattribute.- Specified by:
 setClassNamein interfaceElement- Parameters:
 className- New class name
 
 -