Sha256: 935b31c0e1b171d60da0014553e31cc2c76265c34edbb4ab4650890d30c47ab0

Contents?: true

Size: 1.98 KB

Versions: 2

Compression:

Stored size: 1.98 KB

Contents

<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
* Copyright 2005-2008 Laszlo Systems, Inc. All Rights Reserved.               *
* Use is subject to license terms.                                            *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@                                                         -->
<library>
    <include href="lz/textlistitem.lzx" />

    <!--- Class used to create an item in a basedatacombobox's list.
          @keywords private -->
    <class name="basedatacombobox_item" extends="textlistitem" width="${null}">
        <!--- @keywords private -->
        <handler name="onmousedown"><![CDATA[
            this.parent.select(this);
        ]]></handler>
        
        <!--- Also called by the combobox when it opens if the data
             might have changed.
            @keywords private -->
        <handler name="ondata" method="handleData"/> 
        <method name="handleData" args="d"><![CDATA[
            var target = this.parent.attachtarget;
            var t = this.datapath.xpathQuery(target.textdatapath);
            var v = this.datapath.xpathQuery(target.valuedatapath);
            if ($debug) {
                if (typeof t == "undefined") {
                    Debug.warn("basedatacombobox_item textdatapath result is undefined");
                }
                if (typeof v == "undefined") {
                    Debug.warn("basedatacombobox_item valuedatapath result is undefined");
                }
            }
            this.setAttribute('text', ( t == void(0) ? '' : t ));
            this.setAttribute('value', ( v == void(0) ? null : v ));
            
            // special case for separator string
            // TODO [2005-4-01, dchung] could this be rendered as a line?
            this.setAttribute('enabled', (t != '-----'));

            this.setAttribute("width", target.listwidth ? target.listwidth : target.width);
        ]]></method>
    </class>
</library>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
leftplayer-0.1.1 src/lps-4.9.0/Server/lps-4.9.0/lps/components/base/basedatacombobox_item.lzx
leftplayer-0.1 src/lps-4.9.0/Server/lps-4.9.0/lps/components/base/basedatacombobox_item.lzx