⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 record.java

📁 一个简单的CellEditor的例子 希望给学习java的朋友一点帮助
💻 JAVA
字号:
package com.intotherain.examples.SimpleCellEditor.model;

import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.ui.model.IWorkbenchAdapter;
import org.eclipse.ui.views.properties.IPropertySource;

import com.intotherain.examples.SimpleCellEditor.properties.RecordProperties;

/**
 * 
 * @author intotherain
 *
 */
public class Record implements IAdaptable {
    private String id;
    private String usrName;
    private String totalTime;
    private IETypeEnum ieType = IETypeEnum.MisrcoSoft_IE;
    
    public Record(String newId, String name, String time, IETypeEnum ie ) {
        id = newId;
        usrName = name;
        totalTime = time;
        ieType = ie;
    }
    
    
    public IETypeEnum getIeType() {
        return ieType;
    }


    public void setIeType(IETypeEnum ieType) {
        this.ieType = ieType;
    }


    public String getTotalTime() {
        return totalTime;
    }


    public void setTotalTime(String totalTime) {
        this.totalTime = totalTime;
    }


    public void setId(String id) {
        this.id = id;
    }
    public String getId() {
        return id;
    }


    public String getUsrName() {
        return usrName;
    }


    public Object getAdapter(Class adapter) {
        if (adapter == IWorkbenchAdapter.class)
            return this;
        if (adapter == IPropertySource.class) {
            return new RecordProperties(this);
        }
        return null;
    }
    
}

⌨️ 快捷键说明

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