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

📄 serverpanel.java

📁 Java的面向对象数据库系统的源代码
💻 JAVA
字号:
// You can redistribute this software and/or modify it under the terms of// the Ozone Library License version 1 published by ozone-db.org.//// The original code and portions created by SMB are// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.//// $Id: ServerPanel.java,v 1.2 2003/03/27 16:05:59 per_nyfelt Exp $package org.ozoneDB.adminGui.feature.server;import org.ozoneDB.adminGui.widget.MessageBox;import org.ozoneDB.adminGui.feature.FeaturePanel;import org.ozoneDB.adminGui.res.Settings;import java.awt.*;import java.util.*;import javax.swing.*;/** * @author Per Nyfelt */public class ServerPanel extends FeaturePanel {    private Map components = new HashMap();    private ServerInfoPanel serverInfoPanel;    public ServerPanel() {        this.setLayout(new FlowLayout());    }    public void activateFeature() {        System.out.println("activating Server feature");        try {            addComponents();        } catch (Exception e) {            MessageBox.showError("Failed to find Admin object", e.toString());            e.printStackTrace();        }    }    protected void addComponents() {        this.removeAll();        JSplitPane splitter = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);        splitter.setRightComponent(serverInfoPanel = new ServerInfoPanel());        splitter.setLeftComponent(new ServerFeatureBar(serverInfoPanel));        splitter.setOneTouchExpandable(false);        //splitter.setDividerLocation(.20);        splitter.setDividerSize(3);        splitter.setEnabled(false);        splitter.setBackground(Settings.COLOR_COBALT);        add(splitter);        //add(new DataFeatureBar(admin), BorderLayout.WEST);        //add(new UserInfoPanel(), BorderLayout.CENTER);    }    protected Properties getCriteria() {        Properties criteria = new Properties();        Iterator it = components.keySet().iterator();        while (it.hasNext()) {            String name = (String) it.next();            String value = ((JTextField) components.get(name)).getText();            if (value.trim().length() > 0) {                criteria.setProperty(name, value);            }        }        return criteria;    }}

⌨️ 快捷键说明

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