📄 accountpanel.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: AccountPanel.java,v 1.1 2003/11/09 15:47:32 per_nyfelt Exp $package org.ozoneDB.adminGui.feature.account;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 AccountPanel extends FeaturePanel { private Map components = new HashMap(); private UserInfoPanel userInfoPanel; public AccountPanel() { this.setLayout(new FlowLayout()); } public void activateFeature() { System.out.println("activating User 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(userInfoPanel = new UserInfoPanel()); splitter.setLeftComponent(new AccountFeatureBar(userInfoPanel)); splitter.setOneTouchExpandable(false); //splitter.setDividerLocation(.20); splitter.setDividerSize(3); splitter.setEnabled(false); splitter.setBackground(Settings.COLOR_COBALT); add(splitter); //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 + -