Search in sources :

Example 1 with GetInstInfo

use of massbank.GetInstInfo in project MassBank-web by MassBank.

the class MassBankAPI method getInstrumentTypes.

/**
 * 分析機器種別を取得する
 */
public String[] getInstrumentTypes() {
    GetInstInfo instInfo = new GetInstInfo(MassBankEnv.get(MassBankEnv.KEY_BASE_URL));
    String[] instTypes = instInfo.getTypeAll();
    return (String[]) instTypes;
}
Also used : GetInstInfo(massbank.GetInstInfo)

Example 2 with GetInstInfo

use of massbank.GetInstInfo in project MassBank-web by MassBank.

the class SearchPage method init.

/**
 * ���C���v���O����
 */
public void init() {
    // �A�v���b�g�R���e�L�X�g�擾
    context = getAppletContext();
    // �A�v���b�g������ʃT�C�Y�擾
    initAppletWidth = getWidth();
    initAppletHight = getHeight();
    // �‹��ݒ�t�@�C������A�g�T�C�g��URL���擾
    String confPath = getCodeBase().toString();
    confPath = confPath.replaceAll("/jsp", "");
    GetConfig conf = new GetConfig(confPath);
    siteNameList = conf.getSiteName();
    baseUrl = conf.getServerUrl();
    // Cookie��񃆁[�e�B���e�B������
    cm = new CookieManager(this, "SerchApplet", 30, conf.isCookie());
    // Precursor m/z��񏉊���
    initPreInfo();
    // Tolerance��񏉊���
    initTolInfo();
    // Cutoff Threshold��񏉊���
    initCutoffInfo();
    // ���u��ʏ�񏉊���
    instInfo = new GetInstInfo(confPath);
    initInstInfo();
    // MS��ʏ�񏉊���
    initMsInfo();
    // �C�I����ʏ�񏉊���
    initIonInfo();
    // �E�C���h�E����
    createWindow();
    // �������_�C�A���O
    this.dlg = new ProgressDialog(getFrame());
    // ���[�U�[�t�@�C���Ǎ���
    if (getParameter("file") != null) {
        loadFile(getParameter("file"));
    } else // ����ʂ���̃N�G���lj�
    if (getParameter("num") != null) {
        DefaultTableModel dm = (DefaultTableModel) querySorter.getTableModel();
        dm.setRowCount(0);
        int num = Integer.parseInt(getParameter("num"));
        for (int i = 0; i < num; i++) {
            String pnum = Integer.toString(i + 1);
            String id = getParameter("qid" + pnum);
            String name = getParameter("name" + pnum);
            String site = getParameter("site" + pnum);
            String[] idNameSite = new String[] { id, name, site };
            nameList.add(idNameSite);
            site = siteNameList[Integer.parseInt(site)];
            String[] idNameSite2 = new String[] { id, name, site, String.valueOf(i + 1) };
            dm.addRow(idNameSite2);
        }
    }
}
Also used : GetConfig(massbank.GetConfig) GetInstInfo(massbank.GetInstInfo) DefaultTableModel(javax.swing.table.DefaultTableModel)

Aggregations

GetInstInfo (massbank.GetInstInfo)2 DefaultTableModel (javax.swing.table.DefaultTableModel)1 GetConfig (massbank.GetConfig)1