MenuAbs.java :  » App » learnandroid » com » lgnortel » equipment » menu » Android Open Source

Android Open Source » App » learnandroid 
learnandroid » com » lgnortel » equipment » menu » MenuAbs.java
/**
 * 
 */
package com.lgnortel.equipment.menu;

import javax.swing.JMenu;

import com.lgnortel.platform.model.LabelMenuMgr;

/**
 * Copyright (c) 2008 LG-Nortel, Inc. All Rights Reserved.
 * 
 * CONFIDENTIALITY AND LIMITED USE: This software, including any software of <br>
 * third parties embodied herein, contains code, information, data and concepts <br>
 * which are confidential and/or proprietary to LG-Nortel and such third <br>
 * parties. This software is licensed for use solely in accordance with the <br>
 * terms and conditions of the applicable license agreement with LG-Nortel or <br>
 * its authorized distributor, and not for any other use or purpose. No <br>
 * redistribution of this software by any party is permitted. <br>
 * 
 * Title: MenuUF.java<br>
 * Description: <br>
 * Copyright: Copyright(c) 2009 LG-NORTEL ALL Rights Reserved<br>
 * Company: LG-Nortel<br>
 * 
 * @author Jonghwa, Lee
 * @version 0.1
 * @created 2009. 2. 13.
 * @modified 2009. 2. 13.
 * @product EFA R4.0 EMS
 * @sw_block Client Block
 */
public abstract class MenuAbs {
  protected JMenu menu;
  protected int slotId;
  protected int portId;
  protected int shelfId;
  protected int neId;
  protected String profileName;
  protected LabelMenuMgr labelMenuMgr = LabelMenuMgr.getInstance();
  
  /**
   * @return the slotId
   */
  public int getSlotId() {
    return slotId;
  }

  /**
   * @param slotId the slotId to set
   */
  public void setSlotId(int slotId) {
    this.slotId = slotId;
  }
  
  public void setProfileName(String profile) {
    this.profileName = profile;
  }
  
  public String getProfileName() {
    return this.profileName;
  }
  
  /**
   * @return the portId
   */
  public int getPortId() {
    return portId;
  }

  /**
   * @return the shelfId
   */
  public int getShelfId() {
    return shelfId;
  }

  /**
   * @return the neId
   */
  public int getNeId() {
    return neId;
  }

  /**
   * @param portId the portId to set
   */
  public void setPortId(int portId) {
    this.portId = portId;
  }

  /**
   * @param shelfId the shelfId to set
   */
  public void setShelfId(int shelfId) {
    this.shelfId = shelfId;
  }

  /**
   * @param neId the neId to set
   */
  public void setNeId(int neId) {
    this.neId = neId;
  }
  
  /**
   * 
   * @param neId
   * @param shelfId
   * @param slotId
   * @param portId
   */
  public void setUnitInfomationID(int neId, int shelfId, int slotId, int portId) {
    this.setNeId(neId);
    this.setShelfId(shelfId);
    this.setSlotId(slotId);
    this.setPortId(portId);
  }
  
  /**
   * 
   * @return
   */
  public JMenu getMenuReference() {
    return menu;
  }
  
  /**
   * 
   * @param unitId
   * @return
   */
  public abstract JMenu getMenu(UNIT unitId);
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.