/* * Copyright 2005 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.wamblee.photos.tapestry; /** * Represents a reference to a specific page of an album. */ public class AlbumPageRef extends EntryRef { static final long serialVersionUID = 5599279689735883396L; /** * Page number. */ private int _pageNo; /** * Corresponding start index in the album. */ private int _startIndex; // TODO pageNo should be a String instead of a number. /** * Constructs a page references. * @param aPageNo page number * @param aStartIndex Start index of the page in the album. * @param aLinkable Whether of not the item may be linked to. */ public AlbumPageRef(int aPageNo, int aStartIndex, String aPath, boolean aLinkable) { super(aPath, aLinkable, false); _pageNo = aPageNo; _startIndex = aStartIndex; } /** * @return Returns the pageNo. */ public int getPageNo() { return _pageNo; } /** * @param pageNo The pageNo to set. */ public void setPageNo(int pageNo) { _pageNo = pageNo; } /** * @return Returns the startIndex. */ public int getStartIndex() { return _startIndex; } /** * @param aStartIndex The startIndex to set. */ public void setStartIndex(int aStartIndex) { _startIndex = aStartIndex; } }