blob: 2f4f9c17f23b3fe3b10109942f86f7d6340a6745 [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.dom.html;
/**
* @author mengbo
* @version 1.5
*/
/*package*/ class ColStructure implements Comparable {
private final int _column;
private final int _colSpan;
/**
* @param column
* @param colSpan
*/
public ColStructure(int column, int colSpan) {
this._column = column;
this._colSpan = colSpan;
}
/**
* @return the column span
*/
public int getColSpan() {
return _colSpan;
}
/**
* @return the column
*/
public int getColumn() {
return _column;
}
public int compareTo(Object o) {
ColStructure cs = (ColStructure) o;
if (this._column > cs.getColumn()) {
return 1;
} else if (this._column == cs.getColumn()) {
return 0;
} else {
return -1;
}
}
}