jmguitextarea.java.svn-base

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

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

import javax.swing.JComponent;

import jm.framework.gui.module.JMScrollPane;
import jm.framework.gui.module.JMTextArea;
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 JMGUITextArea extends JMGUIAbstractContralPanel {

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

    /**
     * 初始化
     * @throws Exception
     * @todo Implement this jm.framework.gui.module.JMContralComponent method
     */
    public void load () throws Exception {
        ValueComponent = new JMVector<JComponent>(5);
        JMTextArea _component_ = null;
        _component_ = new JMTextArea();
        _component_.setText(Value.get(0));
        if (Request) {
            _component_.setBackground(getRequestColor());
        }
        ((JMScrollPane) RootPanel).getViewport().add(_component_);
        ValueComponent.add(_component_);
        super.load();
    }

    /**
     * 获得显示控件的内容
     *
     * @return JMVector
     * @todo Implement this jm.framework.gui.module.JMContralComponent method
     */
    public JMVector<String> getValue () {
        Value = new JMVector<String>();
        for (JComponent _valueComponent_ : ValueComponent) {
            Value.add(((JMTextArea) _valueComponent_).getText());
        }

        return Value;
    }


}

⌨️ 快捷键说明

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