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

📄 useritem.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.
//
package org.ozoneDB.adminGui.feature.account.users;

import org.ozoneDB.adminGui.feature.account.AccountItem;
import org.ozoneDB.adminGui.feature.account.groups.GroupItem;


//#############################################################################
/**
 * This class creates users objects that are loaded into the Groups tree.
 *
 * @author  <p align=center>Ibsen Ramos-Bonilla
 * <br>Copyright &copy 1997-@year@ by SMB GmbH. All Rights Reserved.</p>
 *
 * @version 1.0
 */
//#############################################################################

public class UserItem extends AccountItem {

    /** The parent group instance holding this account. */
    private GroupItem gItem = null;


    /**
     * Overloaded constructor initializes the a new item.
     *
     * @param gItem - the parent group node.
     * @param name - the item name.
     * @param id - the item id.
     */
    public UserItem(GroupItem gItem, String name, int id) {
        super(name, id);
        this.gItem = gItem;
    }

    /**
     * This method returns the handle to the parent group node.
     *
     * @return GroupItem - parent group item.
     */
    public GroupItem getGroup() {
        return this.gItem;
    }

    /**
     * This method disconnects the current account from its parent.
     */
    public void orphan() {
        this.gItem = null;
    }

} //--------------------------------- E O F -----------------------------------


⌨️ 快捷键说明

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