blob: 5be873bb90edb5e6c2d8b98be27791aa538b1138 [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.layout;
/**
* Simple box support ascent.
*
* @author mengbo
* @version 1.5
*/
public class WidgetBox extends FlowBox {
private int _ascent = -1;
public int getAscent() {
if (_ascent < 0) {
return super.getAscent();
}
return _ascent;
}
public void setAscent(int ascent) {
_ascent = ascent;
}
/**
* @return
*/
public boolean supportAscent() {
return _ascent > 0;
}
}