`
hwpok
  • 浏览: 252124 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

ext 布局 独孤九剑-第五式

    博客分类:
  • EXT
阅读更多
<html>
    
<head>
        
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        
<title>extDemo</title>
        
<link rel="stylesheet" type="text/css"
            href
="/ext/resources/css/ext-all.css" />
        
<script type="text/javascript" src="/ext/adapter/ext/ext-base.js"></script>
        
<script type="text/javascript" src="/ext/ext-all.js"></script>
        
<script type="text/javascript">
         Ext.onReady(
function(){
            
//创建一个工具条
            var tb=new Ext.Toolbar('toolbar-div');
            tb.add(
new Ext.Toolbar.SplitButton({
                  text: '文件',
                  cls: 'x
-btn-text-icon blist',
                menu : {items: [
                 {text: '新建', handler: onItemClick},
                 {text: '保存', handler: onItemClick},
                 {text: '加载', handler: onItemClick}
           ]}}),
           
new Ext.Toolbar.MenuButton({
               text: '编辑',
               cls: 'x
-btn-text-icon blist',
               menu : {items: [
                 {text: '复制', handler: onItemClick},
                 {text: '粘贴', handler: onItemClick}
           ]}})
         );
        
        
//创建树型菜单
        var root = new Ext.tree.TreeNode({
            text: '文件夹',
            allowDrag:
false,
            allowDrop:
false
        });
        root.appendChild(
            
new Ext.tree.TreeNode({text:'收件箱',allowDrag:false}),
            
new Ext.tree.TreeNode({text:'发件箱',allowDrag:false}),
            
new Ext.tree.TreeNode({text:'联系人',allowDrag:false}),
            
new Ext.tree.TreeNode({text:'已删除的邮件',allowDrag:false})
        );
        
//创建表格的数据
        var myData = [['张三','测试','2006-1-1'],
                     ['李四','测试一','
2006-5-6'],
                     ['王五','测试二','
2007-12-1'],
                     ['刘六','测试三','
2006-12-1'],
                     ['张三','测试四','
2007-6-1'],
                     ['李四','测试五','
2007-7-1'],
                     ['刘六','测试六','
2007-8-1'],
                     ['张三','测试七','
2007-9-1'],
                     ['李四','测试八','
2007-10-1'],
                     ['王五','测试九','
2007-11-1'],
                     ['刘六','测试六','
2007-8-1']];
        
        
//生成表格
        var ds = new Ext.data.Store({
            proxy: 
new Ext.data.MemoryProxy(myData),
            reader: 
new Ext.data.ArrayReader({},
                [{name:'sender'},
                   {name:'title'},
                   {name:'sendtime'}])
        });
        ds.load();
        
var colModel = new Ext.grid.ColumnModel(
            [{header:'发送人',width:
100,sortable:true,dataIndex:'sender'},
             {id:'title',header:'标题', width:
100,sortable:true,dataIndex:'title'},
             {header:'发送时间',width:
75,sortable:true,dataIndex:'sendtime'}
            ]);
            
        
//把以上的元素布局
        var viewport = new Ext.Viewport({
            layout:'border',
            items:[
                
new Ext.BoxComponent({
                     region:'north',
                     el:'north
-div',
                    tbar:tb,
                    height:
26
             }),
                
//树型列表
                new Ext.tree.TreePanel({
                    region:'west',
                    contentEl:'west
-div',
                    title:'树列表',
                    split:
true,
                    width: 
200,
                    minSize: 
175,
                    maxSize: 
400,
                    collapsible: 
true,
                    margins:'
0 0 0 0',
                    root:root
             }),
             {
             region:'center',
             layout:'border',
             items:[
                    
//条目列表
                    new Ext.grid.GridPanel({
                           region:'center',
                           el:'center
-center',
                           title:'条目列表',
                           ds: ds,
                           cm: colModel,
                           autoScroll: 
true
                    })
                    
//内容
                    /**
                    {
                        region:'south',
                        contentEl:'center-south',
                        title:'内容',
                        split:true,
                        collapsible:true,
                        titlebar:true,
                        height:200,
                        minSize: 100,
                        maxSize:400,
                        collapsedTitle:'内容'
                     }
*/
                 ]
            },
            
new Ext.BoxComponent({
                 region:'south',
                 el:'south
-div',
                 height:
24
            })]
        });
        root.expand()
            
function onItemClick(item){
                 alert(item.text);
        }
     });
    
</script>
    
</head>
    
<body>
        
<div id="north-div">
            
<div id='toolbar-div'></div>
        
</div>
        
<div id="west-div"></div>
        
<div id='center-center'></div>
        
<div id='center-south'></div>
        
<div id="south-div"></div>
    
</body>
</html>
分享到:
评论

相关推荐

    前端开源库-style-ext-html-webpack-plugin

    5. **兼容性**:插件兼容HTMLWebpackPlugin的所有功能,可以无缝集成到现有Webpack构建流程中。 **四、优化策略** 1. **首屏优化**:将关键CSS内联,确保页面首次渲染时无白屏现象。 2. **懒加载**:对于非首屏...

    ext-2.0 ext-2.0 ext-2.0 ext-2.0 ext-2.0

    ext-2.0ext-2.0ext-2.0ext-2.0ext-2.0ext-2.0ext-2.0ext-2.0ext-2.0ext-2.0ext-2.0ext-2.0ext-2.0ext-2.0ext-2.0ext-2.0ext-2.0ext-2.0ext-2.0ext-2.0ext-2.0ext-2.0ext-2.0ext-2.0

    ext-ms-win-gdi-desktop-l1-1-0.dll

    ext-ms-win-gdi-desktop-l1-1-0.dll 用于解决这个dll文件丢失问题,下载后将此文件放置在相关文件根目录下,即可解决丢失问题

    ext4magic-0.3.2-3.10.x86_64.rpm

    ext4magic-0.3.2-3.10.x86_64.rpm

    bcprov-ext-jdk15on-160.jar

    1.下载 bcprov-ext-jdk15on-160.jar,复制到jdk_home\jre\lib\ext 2.配置bcprov,在 jdk_home\jre\lib\security\目录中找到 java.security 在内容增加一行 security.provider.11=org.bouncycastle.jce.provider....

    bcprov-ext-jdk15on-1.54和bcprov-jdk15on-1.54.jar

    bcprov-ext-jdk15on-1.54,openssl自制证书转换工具,Android Https证书文件转BKS格式工具,使用详情请查看https://blog.csdn.net/MirkoWug/article/details/128673355

    bcprov-ext-jdk15on-1.52和bcprov-jdk15on-1.52

    标题中的"bcprov-ext-jdk15on-1.52"和"bcprov-jdk15on-1.52"是两个不同版本的Java软件包,它们都是由The Legion of the Bouncy Castle(Bouncy Castle)组织提供的加密库。Bouncy Castle是一个广泛使用的开源Java...

    bcprov-ext-jdk15on-152和bcprov-jdk15on-152

    标题中的"bcprov-ext-jdk15on-152"和"bcprov-jdk15on-152"是两个与Bouncy Castle库相关的Java档案文件,它们主要用于提供加密和安全服务。Bouncy Castle是一个开源的Java安全提供者,广泛用于密码学应用,包括加密、...

    bcprov-ext-jdk15on-1.52.jar和bcprov-jdk15on-1.52.jar

    标题中的"bcprov-ext-jdk15on-1.52.jar"和"bcprov-jdk15on-1.52.jar"是两个与Java相关的库文件,它们都属于Bouncy Castle加密库的不同版本。Bouncy Castle是一个开源的Java安全套件,提供广泛的安全服务,包括加密、...

    bcprov-jdk15on-1.52.jar、bcprov-ext-jdk15on-1.52.jar

    标题中的"bcprov-jdk15on-1.52.jar"和"bcprov-ext-jdk15on-1.52.jar"是两个Java Archive (JAR) 文件,它们属于Bouncy Castle加密库的不同版本。Bouncy Castle是一个广泛使用的开源Java安全套件,提供了大量的加密...

    bcprov-ext-jdk15on-1.68.jar

    bcprov-ext-jdk15on-1.68.jar

    bcprov-ext-jdk15on-164.jar

    bcprov-ext-jdk15on-164.jar:支持java5-11。将jar包放置在%java_home%/jre/lib/ext目录。

    spketdwcs-ext-2.1.mxp

    spketdwcs-ext-2.1.mxpspketdwcs-ext-2.1.mxpspketdwcs-ext-2.1.mxpspketdwcs-ext-2.1.mxpspketdwcs-ext-2.1.mxpspketdwcs-ext-2.1.mxpspketdwcs-ext-2.1.mxpspketdwcs-ext-2.1.mxpspketdwcs-ext-2.1.mxpspketdwcs-...

    bcprov-ext-jdk15on-1.54.jar、bcprov-jdk15on-1.54.jar和ssl-provider-jvm16-0.2.jar

    标题中的"bcprov-ext-jdk15on-1.54.jar"和"bcprov-jdk15on-1.54.jar"是Bouncy Castle提供的Java加密库,用于增强Java平台的安全性。Bouncy Castle是一个开源项目,提供强大的加密算法实现,包括SSL/TLS协议支持,...

    bcprov-ext-jdk15on-1.54.jar,bcprov-jdk15on-1.54.jar

    为了解决这个问题,我们可以引入Bouncy Castle提供的jar包:bcprov-ext-jdk15on-1.54.jar和bcprov-jdk15on-1.54.jar。 Bouncy Castle是一个开源的Java加密库,它提供了丰富的加密算法和协议实现,包括对称加密、非...

    bcprov-ext-jdk15on-154和bcprov-jdk15on-154下载

    bcprov-ext-jdk15on-154和bcprov-jdk15on-154下载,可以用于处理jdk6的javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure ,详情参考...

    bcprov-ext-jdk15on-161.jar

    将下载的文件拷贝到JAVE_HOME/jre/lib/ext目录下 如果你不知道你的Mac Java_home 目录是/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home (ps:一种奇葩的方法可以知道你的配置路径,你可以使用...

    bcprov-jdk15on-1.54.jar bcprov-ext-jdk15on-1.54.jar下载

    2.将下载的两个JAR文件复制到:JDK安装目录\jre\lib\ext下,例如我的就是D:\Program Files (x86)\java\JDK1.6\jre\lib\ext 3.打开java.security文件:在JDK安装目录\jre\lib\security下的java.security文件。

    bcprov-ext-jdk15on-1.54.jar和bcprov-jdk15on-1.54.jar

    该压缩文件包含bcprov-ext-jdk15on-1.54.jar和bcprov-jdk15on-1.54.jar,bcprov-jdk15on-154中移除了一些加密算法,bcprov-ext-jdk15on-154中依然保留。可以解决JDK1.6 HttpClient访问https网页报的错

    bcprov-ext-jdk15on-154.jar和bcprov-jdk15on-154.jar

    2. **配置安全提供者**:在代码中设置Bouncy Castle为安全提供者的第一位,以确保它优先处理加密操作。 3. **检查并更新密钥大小和算法**:确保使用的密钥大小和加密算法符合安全标准且被双方支持。 4. **验证证书...

Global site tag (gtag.js) - Google Analytics