jmguilabel.java.svn-base

来自「梦界家园程序开发基底框架」· SVN-BASE 代码 · 共 62 行

SVN-BASE
62
字号
package jm.framework.gui.container;

import javax.swing.JComponent;

import jm.framework.gui.module.JMLabel;
import jm.framework.gui.module.JMPanel;
import jm.util.JMVector;

/**
 * <p>Title: JM 整合Swing控件,使用配置信息</p>
 *
 * <p>Copyright: Copyright (c) 2004-2006</p>
 *
 * <p>Company: 1SHome</p>
 *
 * <p>@author Spook</p>
 *
 * @since 1.3
 * @see JDK 1.5.0.6
 */
public class JMGUILabel extends JMGUIAbstractContralPanel {

    /**
     *
     */
    private static final long serialVersionUID = 6412706488560784659L;
    public JMGUILabel () {
        super(new JMPanel());
    }

    /**
     * 初始化
     * @throws Exception
     * @todo Implement this jm.framework.gui.module.JMContralComponent method
     */
    public void load () throws Exception {
        ValueComponent = new JMVector<JComponent>(5);
        JMLabel _component_ = null;
        for (int i = 0; i < Number; i++) {
            _component_ = new JMLabel();
            if (Value.size() > i) {
                _component_.setText(Value.get(i));
            }
            RootPanel.add(_component_);
            ValueComponent.add(_component_);
        }
        super.load();
    }

    ///////////////////////////////////////////////////////////////////////////
    /**
     * 获得显示控件的内容
     *
     * @return JMVector
     * @todo Implement this jm.framework.gui.module.JMContralComponent method
     */
    public JMVector<String> getValue () {
        return Value;
    }

}

⌨️ 快捷键说明

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