hellomidlet.mvd

来自「Java ME手机应用开发大全一书的配套光盘上的源码」· MVD 代码 · 共 41 行

MVD
41
字号
<?xml version="1.0" encoding="UTF-8"?>
<MVDData version="1.3">
    <DesignDocument designVersion="MIDP-2" uidCounter="6">
        <DesignComponent id="$MobileDevice" typeid="MIDP:$MobileDevice" uid="0"/>
        <DesignComponent id="$StartPoint" typeid="MIDP:$StartPoint" uid="1">
            <Property name="targetDisplayable" value="helloForm"/>
            <Property name="targetForwardDisplayable"/>
        </DesignComponent>
        <DesignComponent id="helloForm" typeid="MIDP:javax.microedition.lcdui.Form" uid="2">
            <ContainerProperty name="commands">
                <ContainerPropertyItem value="$CommandAction"/>
            </ContainerProperty>
            <ContainerProperty name="items">
                <ContainerPropertyItem value="helloStringItem"/>
            </ContainerProperty>
        </DesignComponent>
        <DesignComponent id="$CommandAction" typeid="MIDP:CommandAction" uid="3">
            <Property name="targetDisplayable" value="$MobileDevice"/>
            <Property name="targetForwardDisplayable"/>
            <Property name="actionSource" value="exitCommand"/>
            <Property name="actionOrigin" value="helloForm"/>
        </DesignComponent>
        <DesignComponent id="helloStringItem" typeid="MIDP:javax.microedition.lcdui.StringItem" uid="4">
            <Property name="label" value="STRING:Hello"/>
            <Property name="text" value="STRING:Hello, World!"/>
            <ContainerProperty name="commands"/>
        </DesignComponent>
        <DesignComponent id="exitCommand" typeid="MIDP:javax.microedition.lcdui.Command" uid="5">
            <Property name="label" value="STRING:Exit"/>
            <Property name="priority" value="1"/>
            <Property name="type" value="EXIT"/>
        </DesignComponent>
    </DesignDocument>
    <FlowDocument version="1.1">
        <Node id="$MobileDevice" location="144,192" order=",$StartPoint,,,,,,,,,$ExitPoint,,,,,"/>
        <Node id="helloForm" location="336,192" order="$CommandAction,,,,,,,,,,$Default,,,,,"/>
        <Link id="$StartPoint$ActionLink" path="184,168,296,168"/>
        <Link id="$CommandAction$ActionLink" path="376,184,421,184,421,230,47,230,47,168,104,168"/>
    </FlowDocument>
</MVDData>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?