|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
org.apache.xerces.dom.ElementNSImpl
fi.hut.tml.xsmiles.dom.XSmilesElementImpl
fi.hut.tml.xsmiles.dom.VisualElementImpl
fi.hut.tml.xsmiles.mlfc.xforms.dom.XFormsElementImpl
fi.hut.tml.xsmiles.mlfc.xforms.dom.DynBoundElementImpl
fi.hut.tml.xsmiles.mlfc.xforms.dom.XFormsControl
fi.hut.tml.xsmiles.mlfc.xforms.dom.SelectElementImpl
Abstract select element
| Nested Class Summary |
| Nested classes inherited from class fi.hut.tml.xsmiles.mlfc.xforms.dom.XFormsControl |
XFormsControl.ValuePseudoElement |
| Nested classes inherited from class fi.hut.tml.xsmiles.dom.XSmilesElementImpl |
XSmilesElementImpl.PseudoNodeList |
| Field Summary | |
protected boolean |
internalModificationInProcess
METHODS FOR LISTENING TO DOM MUTATION EVENTS FROM THE INSTANCE |
protected boolean |
isInputComponent
|
protected java.util.Vector |
items
The items of this select |
protected XSelect |
select
the abstract select component that the subclass creates |
| Fields inherited from class fi.hut.tml.xsmiles.mlfc.xforms.dom.XFormsControl |
captionComp, component, componentInited, compoundService, incremental, inputMode, insideUpdateEvent, isOutput, outOfRange, pseudoElements, valuePseudoElement |
| Fields inherited from class fi.hut.tml.xsmiles.mlfc.xforms.dom.DynBoundElementImpl |
bind, BINDING_ATTRIBUTES_NOT_FOUND, BINDING_FAILED, BINDING_OK, binding_state, bindingAttributesRequired, BOUND_NODE_NOT_FOUND, contextNode, init, myModel, refExpr, UNINITIALIZED |
| Fields inherited from class fi.hut.tml.xsmiles.mlfc.xforms.dom.XFormsElementImpl |
debugEvents, EVENTS_NS, handler, inited, ownerDoc |
| Fields inherited from class fi.hut.tml.xsmiles.dom.VisualElementImpl |
views |
| Fields inherited from class fi.hut.tml.xsmiles.dom.XSmilesElementImpl |
DESTROYED, elementStatus, INITIALIZED, INITIALIZING, setPseudoClasses, style, xblpropname |
| Fields inherited from class org.apache.xerces.dom.ElementNSImpl |
localName, namespaceURI |
| Fields inherited from class org.apache.xerces.dom.ElementImpl |
attributes, name |
| Fields inherited from class org.apache.xerces.dom.ParentNode |
firstChild, fNodeListCache, ownerDocument |
| Fields inherited from class org.apache.xerces.dom.ChildNode |
nextSibling, previousSibling |
| Fields inherited from class org.apache.xerces.dom.NodeImpl |
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE, UNNORMALIZED |
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Constructor Summary | |
SelectElementImpl(XFormsElementHandler owner,
java.lang.String ns,
java.lang.String name)
Constructs a new 'select' control (exclusiveSelect or multipleSelect) |
|
| Method Summary | |
protected void |
appendSubtree(CopyElementImpl copy,
InstanceNode target)
|
XComponent |
createComponent()
Creates the visible containing component of this control |
void |
destroy()
Destroy this element and its descendants recursively. |
ItemElementImpl |
findItem(int index)
|
ItemElementImpl |
findItem(java.lang.String value)
|
java.util.Vector |
getItems()
this accessor function returns all the ancestor items note: it also returns all the items that are created using itemset. |
void |
handleEvent(org.w3c.dom.events.Event evt)
The DOM event handler This method gets all changes to the contents of the select, and will then rebuild the select |
void |
init()
Initialize this element. |
protected void |
initializeItems()
init and reinit calls this method to initialize the items |
protected boolean |
isOpenSelection()
|
protected void |
registerListener()
register item listener |
void |
reinitializeItems()
this method is called when the items are added or removed |
protected void |
removeAllMutationListeners(org.w3c.dom.Node n)
|
protected void |
removeChildElements(InstanceNode target)
|
protected void |
replaceSubtree(CopyElementImpl copy,
InstanceNode target)
replace the whole subtree by a value from the copy element |
void |
setHint(HintElementImpl h)
Sets the components Tooltip (Hint) text |
protected void |
userSelected(ItemElementImpl item)
|
| Methods inherited from class fi.hut.tml.xsmiles.mlfc.xforms.dom.XFormsElementImpl |
debugNode, dispatch, dispatch, dispatchActivateEvent, dispatchClickEvent, findFirstRelevantControl, getBrowser, getClassName, getComponentFactory, getId, getModel, getModelId, getModelInScope, getSrc, getStyleAttrValue, getXMLDocument, handleXFormsException, initializeXMLEvents, isCSSLayoutDoc, moveNodes, printEvent, removeAllChildren, retrieveInstanceItem, retrieveResourceAsString, serializeNode, setClassName, setHandler, setId, setOwnerDoc |
| Methods inherited from class fi.hut.tml.xsmiles.dom.VisualElementImpl |
addView, belongsToTree, getViews, insertBefore, isCurrentlyVisible, isFocusPoint, isVisibleByCSSProperties, removeAllViews, removeAttribute, removeChild, replaceChild, setStatus, updateViews |
| Methods inherited from class org.apache.xerces.dom.ElementNSImpl |
getBaseURI, getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, setPrefix, setType, setValues |
| Methods inherited from class org.apache.xerces.dom.ElementImpl |
cloneNode, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isEqualNode, normalize, reconcileDefaultAttributes, removeAttributeNode, removeAttributeNS, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData |
| Methods inherited from class org.apache.xerces.dom.ParentNode |
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildren |
| Methods inherited from class org.apache.xerces.dom.ChildNode |
getNextSibling, getParentNode, getPreviousSibling |
| Methods inherited from class org.apache.xerces.dom.NodeImpl |
addEventListener, appendChild, changed, changes, compareDocumentPosition, compareTreePosition, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setUserData, setUserData, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.event.ItemListener |
itemStateChanged |
| Methods inherited from interface fi.hut.tml.xsmiles.dom.StylableElement |
getRuleNode, getStyle, getStyleAttrValue, hasStyle, setRuleNode, setStyle |
| Methods inherited from interface org.w3c.dom.Element |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttributeNodeNS, setAttributeNS |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
| Methods inherited from interface fi.hut.tml.xsmiles.dom.VisualElement |
getStyle |
| Methods inherited from interface fi.hut.tml.xsmiles.dom.PseudoClassController |
getPseudoClass, setPseudoClass |
| Field Detail |
protected boolean isInputComponent
protected java.util.Vector items
protected XSelect select
protected boolean internalModificationInProcess
| Constructor Detail |
public SelectElementImpl(XFormsElementHandler owner,
java.lang.String ns,
java.lang.String name)
| Method Detail |
public void init()
XSmilesElementImpl
init in interface XFormsElementinit in class XFormsControlpublic XComponent createComponent()
createComponent in class XFormsControlprotected void registerListener()
registerListener in class XFormsControlprotected void initializeItems()
public void reinitializeItems()
public void destroy()
XSmilesElementImpl
destroy in interface XFormsElementdestroy in class XFormsControlpublic java.util.Vector getItems()
getItems in interface SelectElementpublic ItemElementImpl findItem(java.lang.String value)
public ItemElementImpl findItem(int index)
public void setHint(HintElementImpl h)
XFormsControl
setHint in class XFormsControlprotected void userSelected(ItemElementImpl item)
public void handleEvent(org.w3c.dom.events.Event evt)
handleEvent in interface org.w3c.dom.events.EventListenerhandleEvent in class XFormsControlprotected void removeAllMutationListeners(org.w3c.dom.Node n)
protected void removeChildElements(InstanceNode target)
protected void replaceSubtree(CopyElementImpl copy,
InstanceNode target)
protected void appendSubtree(CopyElementImpl copy,
InstanceNode target)
protected boolean isOpenSelection()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||