package ntut.csie.csdet.views;

import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;

public abstract class APropertyPage {
	
	public APropertyPage(Composite composite,CSPropertyPage page){
	}
	
	abstract public boolean storeSettings();
	
	/**
	 * get control's right below coordinate  
	 * @param control
	 * @return			right below coordinate
	 */
	protected Point getLowerRightCoordinate(Control control) {
		if (control == null) return new Point(0,0);

		return new Point(control.getBounds().x + control.getBounds().width ,
						 control.getBounds().y + control.getBounds().height);
	}
}
