/*******************************************************************************
 * Copyright (c), 2001, 2002 N2 Broadband, Inc.  All Rights Reserved.
 *
 * This module contains unpublished, confidential, proprietary
 * material.  The use and dissemination of this material are
 * governed by a license.  The above copyright notice does not
 * evidence any actual or intended publication of this material.
 *
 * Author:  Drake H. Henderson
 * Created:  11-12-01
 *
 ******************************************************************************/
package com.n2bb.web.util;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class DashItem {

  private static Log n2bbLog = LogFactory.getLog(DashItem.class);
  
  public String display;
  public String path;
  public String img;
  public String newWin;
  public int priority;

  public DashItem(String display, String path, String img, String newWin, String priority) {
    this.display = display.trim();
    this.path = path.trim();
    this.img = img.trim();
    this.newWin = newWin.trim();
    try {
      this.priority = Integer.parseInt(priority.trim());
    } catch (Exception e) {
      n2bbLog.warn(e.getMessage(), e);
      this.priority = 0;
    }
  }

  public int getPriority() {
    return priority;
  }

  public String getDisplay() {
    return display;
  }
}


