blob: 86c979302f92f9ca4b906c87b64ca646c188cc1e [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2006 Sybase, Inc. and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Sybase, Inc. - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.pagedesigner.css2.list;
/**
* @author mengbo
*/
public interface ICounterValueGenerator {
public String getIdentifier();
public ICounterValueGenerator resetCount(int initial);
public ICounterValueGenerator resetCount();
/*
* Set the counter based on value.
*/
public void setCount(Integer value);
// public void regist(Object caller);
// public void unregist(Object caller);
/*
* Increase counter based on declared increment number
*/
public void increase(int increment);
/*
* Increase counter with default increment number(1)
*/
public void increase();
public Integer getCount(Object caller);
public int getCurrentCount();
}