• 大小: 9.84MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-05
  • 语言: 其他
  • 标签: twaver  教程  

资源简介

很好的twaver教程。包含demo,各种图形,极好的电信客户端

资源截图

代码片段和文件信息

/*
 * This source code is part of TWaver 2.5
 *
 * SERVA Software PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 * Copyright 2008 SERVA Software. All rights reserved.
 */

package demo;

import javax.swing.SwingUtilities;

import twaver.Element;
import twaver.Shapelink;
import twaver.TUIManager;
import twaver.TWaverConst;
import twaver.TWaverUtil;
import twaver.network.NetworkToolBarFactory;
import twaver.table.Category;
import demo.chart.ChartPopupMenuGenerator;
import demo.editor.chassis.EquipmentButton.CardButton;
import demo.editor.chassis.EquipmentButton.PortButton;
import demo.editor.chassis.EquipmentButton.RackButton;
import demo.editor.chassis.EquipmentButton.ShelfButton;
import demo.editor.chassis.EquipmentButton.SlotButton;
import demo.editor.drawing.DrawingButton.CubicCurveButton;
import demo.editor.drawing.DrawingButton.LineButton;
import demo.editor.drawing.DrawingButton.PolygonButton;
import demo.editor.drawing.DrawingButton.PolylineButton;
import demo.editor.drawing.DrawingButton.QuadCurveButton;
import demo.editor.drawing.DrawingButton.RectangleButton;
import demo.editor.drawing.DrawingButton.RoundButton;
import demo.editor.drawing.DrawingButton.StarButton;
import demo.editor.drawing.DrawingButton.TextButton;
import demo.editor.drawing.DrawingButton.TriangleButton;
import demo.editor.drawing.element.CubicCurve;
import demo.editor.drawing.element.Line;
import demo.editor.drawing.element.Polygon;
import demo.editor.drawing.element.Polyline;
import demo.editor.drawing.element.QuadCurve;
import demo.editor.drawing.element.Rectangle;
import demo.editor.drawing.element.Round;
import demo.editor.drawing.element.Star;
import demo.editor.drawing.element.Triangle;
import demo.network.chassis.lazyload.SunServer1;
import demo.network.chassis.lazyload.SunServer2;
import demo.network.miscellaneous.instrument.element.Clock;
import demo.network.miscellaneous.instrument.element.CustomUINode;
import demo.network.miscellaneous.instrument.element.Thermometer;
import demo.resource.DemoResourceAgent;
import demo.table.person.Person;

public class Demo {

public static void init(){
     TWaverUtil.init(TWaverConst.EN_US DemoResourceAgent.class);
    
     registerDefaults();
     registerIcon();
     registerImage();
     registerCategory();
     registerBeanInfo();
     registerAttachment();
     registerToolbarButton();
        
        TUIManager.setlinkBundleFilter(new twaver.VisibleFilter(){
            public boolean isVisible(Element element) {
             return !(element instanceof Shapelink);
            }
        });
}

private static void registerDefaults(){
TUIManager.registerDefault(TWaverConst.NETWORK_FULL_SCREEN_KEYBOARD “F11“); 
TUIManager.registerDefault(TWaverConst.PROPERTYNAME_link_BUNDLE_EXPAND Boolean.TRUE);
TUIManager.registerDefault(TWaverConst.TABLE_SHOW_PREDEFINED_COLUMNS_IN_POPUPMENU Boolean.FALSE);

TUIManager.registerDefault(TWaverConst.NETWORK_ANIMATE_COMPONENT_ATTACHMENT Boolean.TRUE)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2008-09-21 19:57  documents\
     文件        2577  2008-09-21 22:47  documents\twaver-2.0.dtd
     文件        1952  2008-09-21 22:47  documents\twaver-beaninfo-2.0.dtd
     文件       52266  2008-09-21 19:58  documents\TWaver.template.xml
     文件     3589156  2008-08-05 12:06  documents\TWaver.TSC.Dev.Guide.pdf
     目录           0  2008-09-21 22:18  javadoc\
     文件       60395  2008-09-21 20:14  javadoc\allclasses-frame.html
     文件       51135  2008-09-21 20:14  javadoc\allclasses-noframe.html
     文件      512563  2008-09-21 20:14  javadoc\constant-values.html
     文件        5542  2008-09-21 20:14  javadoc\deprecated-list.html
     文件        9050  2008-09-21 20:15  javadoc\help-doc.html
     目录           0  2008-09-21 22:18  javadoc\index-files\
     文件      137916  2008-09-21 20:14  javadoc\index-files\index-1.html
     文件        8511  2008-09-21 20:14  javadoc\index-files\index-10.html
     文件        9621  2008-09-21 20:14  javadoc\index-files\index-11.html
     文件       58288  2008-09-21 20:14  javadoc\index-files\index-12.html
     文件       49812  2008-09-21 20:14  javadoc\index-files\index-13.html
     文件       54314  2008-09-21 20:14  javadoc\index-files\index-14.html
     文件       17438  2008-09-21 20:14  javadoc\index-files\index-15.html
     文件      262789  2008-09-21 20:14  javadoc\index-files\index-16.html
     文件        7241  2008-09-21 20:14  javadoc\index-files\index-17.html
     文件       96773  2008-09-21 20:14  javadoc\index-files\index-18.html
     文件      400648  2008-09-21 20:14  javadoc\index-files\index-19.html
     文件       47514  2008-09-21 20:14  javadoc\index-files\index-2.html
     文件      157729  2008-09-21 20:14  javadoc\index-files\index-20.html
     文件       24898  2008-09-21 20:14  javadoc\index-files\index-21.html
     文件       13687  2008-09-21 20:14  javadoc\index-files\index-22.html
     文件       15279  2008-09-21 20:14  javadoc\index-files\index-23.html
     文件       11732  2008-09-21 20:14  javadoc\index-files\index-24.html
     文件        7166  2008-09-21 20:14  javadoc\index-files\index-25.html
     文件       12993  2008-09-21 20:14  javadoc\index-files\index-26.html
............此处省略1647个文件信息

评论

共有 条评论