org.netbeans.microedition.svg
Class SVGList
java.lang.Object
org.netbeans.microedition.svg.SVGComponent
org.netbeans.microedition.svg.SVGList
- All Implemented Interfaces:
- DataListener, SVGForm.FocusListener
public class SVGList
- extends SVGComponent
- implements DataListener
Suggested svg snippet:
<g id="list" transform="translate(20,220)" >
<g>
<!-- Metadata information. Please don't edit. -->
<text display="none">type=selection</text>
<rect x="5" y="0" stroke="black" stroke-width="1" fill="rgb(200,200,255)" visibility="inherit" width="80" height="0"/>
<g>
<text id="list_hidden_text" visibility="hidden" x="10" y="13" stroke="black" font-size="15" font-family="SunSansSemiBold">
HIDDEN TEXT</text>
<text display="none">type=hidden_text</text>
</g>
<g id="list_content" >
<!-- Metadata information. Please don't edit. -->
<text display="none">type=content</text>
</g>
<rect x="0" y="-5" rx="5" ry="5" width="90" height="70" fill="none" stroke="rgb(255,165,0)" stroke-width="2" visibility="hidden">
<set attributeName="visibility" attributeType="XML" begin="list.focusin" fill="freeze" to="visible"/>
<set attributeName="visibility" attributeType="XML" begin="list.focusout" fill="freeze" to="hidden"/>
</rect>
<g>
<!-- Metadata information. Please don't edit. -->
<text display="none">type=bound</text>
<rect id="list_bound" x="5.0" y="0.0" width="80" height="60" fill="none" stroke="black" stroke-width="2"/>
</g>
</g>
Nested elements 'content' and 'bound' are necessary.
All other is used by default renderer.
See SVGDefaultListCellRenderer.
Fields inherited from class org.netbeans.microedition.svg.SVGComponent |
actionListeners, DASH, ENABLED, form, LABEL_FOR, REF, SVG_NS, TR_VALUE_HIDDEN, TR_VALUE_INHERIT, TR_VALUE_VISIBLE, TRAIT_FILL, TRAIT_TEXT, TRAIT_VISIBILITY, TRAIT_X, TRAIT_Y, TYPE, wrapperElement |
Methods inherited from class org.netbeans.microedition.svg.SVGComponent |
addActionListener, fireActionPerformed, focusGained, focusLost, getElement, getElementById, getElementByMeta, getElementByMeta, getForm, getLabel, getNestedElementByMeta, getProperty, isFocusable, removeActionListener, requestFocus, setFocusable, setProperty, setTraitSafely, setTraitSafely |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SVGList
public SVGList(SVGForm form,
org.w3c.dom.svg.SVGLocatableElement element)
SVGList
public SVGList(SVGForm form,
java.lang.String elemId)
getRenderer
public SVGListCellRenderer getRenderer()
getModel
public SVGList.ListModel getModel()
setModel
public void setModel(SVGList.ListModel model)
setRenderer
public void setRenderer(SVGListCellRenderer renderer)
getSelectionModel
public SVGList.SelectionModel getSelectionModel()
setSelectionModel
public void setSelectionModel(SVGList.SelectionModel model)
getInputHandler
public InputHandler getInputHandler()
- Overrides:
getInputHandler
in class SVGComponent
contentsChanged
public void contentsChanged(java.lang.Object source)
- Specified by:
contentsChanged
in interface DataListener