customsheetnode.java

来自「全面实现ilog地功能,没有使用第三方lib.」· Java 代码 · 共 47 行

JAVA
47
字号
/* * This source code is part of TWaver 1.3.1 * * SERVA Software PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * Copyright 2000-2005 SERVA Software, Inc. All rights reserved. */package demo.sheet.customsheet;

import java.awt.Color;

/*
 * This source code is part of TWaver 1.3.0.
 *
 * SERVA Software PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 * Copyright 2001-2005 SERVA Software, Inc. All rights reserved
 */
 
public class CustomSheetNode extends twaver.Node {
	
    public CustomSheetNode() {
        super();
        init();
    };
    
    public CustomSheetNode(Object id) {
        super(id);
        init();
    }

    private void init() {
        this.putClientProperty("MyProp1", "ABCDEFG");
        this.putClientProperty("MyProp2", "www.servasoft.com");
        
        this.putClientProperty("Married", Boolean.TRUE);
        this.putClientProperty("Color", new Color(0, 0, 51));
        this.putClientProperty("State", State.STOPPED);
        
        this.putClientProperty("Sex", EnumEditor.Sex.getValues()[0]);
        this.putClientProperty("Language", EnumEditor.Language.getValues()[1]);
        
        this.putClientProperty("Character", new Character('T'));
        this.putClientProperty("Proportion", new Double(0.8));
        
        this.putClientProperty("Scale", new Float(0.3));
    }
}

⌨️ 快捷键说明

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