All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zkoss.openlayers.base.OLBase Maven / Gradle / Ivy

/* OLBase.java

{{IS_NOTE
	Purpose:
		
	Description:
		
	History:
		Jun 22, 2012 5:32:58 PM , Created by jumperchen
}}IS_NOTE

Copyright (C) 2012 Potix Corporation. All Rights Reserved.

{{IS_RIGHT
}}IS_RIGHT
*/
package org.zkoss.openlayers.base;

import org.zkoss.openlayers.OLWidget;
import org.zkoss.openlayers.Openlayers;

/**
 * @author jumperchen
 *
 */
public abstract class OLBase extends OLWidget implements Cloneable {


	@Override
	protected void setMap(Openlayers map) {
		throw new UnsupportedOperationException(
				"Unsupport setMap() method!");
	}
	
	public Object clone() {
		OLBase clone = null;
		try {
			clone = (OLBase)super.clone();
		} catch (CloneNotSupportedException e) {
			throw new InternalError();
		}
		clone._map = null;
		return clone;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy