001    /*
002     * Copyright 2002 - 2007 JEuclid, http://jeuclid.sf.net
003     *
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     *      http://www.apache.org/licenses/LICENSE-2.0
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    
017    /* $Id: AbstractTableRow.java,v bc1d5fde7b73 2009/06/01 14:40:54 maxberger $ */
018    
019    package net.sourceforge.jeuclid.elements.presentation.table;
020    
021    import org.apache.batik.dom.AbstractDocument;
022    import org.w3c.dom.mathml.MathMLNodeList;
023    import org.w3c.dom.mathml.MathMLTableCellElement;
024    import org.w3c.dom.mathml.MathMLTableRowElement;
025    
026    /**
027     * Abstract class for table rows with and without label.
028     * 
029     * @version $Revision: bc1d5fde7b73 $
030     */
031    public abstract class AbstractTableRow extends AbstractTableElement implements
032            MathMLTableRowElement {
033    
034        /**
035         * Default constructor. Sets MathML Namespace.
036         * 
037         * @param qname
038         *            Qualified name.
039         * @param odoc
040         *            Owner Document.
041         */
042        public AbstractTableRow(final String qname, final AbstractDocument odoc) {
043            super(qname, odoc);
044            this.setDefaultMathAttribute(Mtable.ATTR_GROUPALIGN, "");
045        }
046    
047        /** {@inheritDoc} */
048        public void deleteCell(final int index) {
049            throw new UnsupportedOperationException();
050        }
051    
052        /** {@inheritDoc} */
053        public MathMLNodeList getCells() {
054            throw new UnsupportedOperationException();
055        }
056    
057        /** {@inheritDoc} */
058        public MathMLTableCellElement insertCell(
059                final MathMLTableCellElement newCell, final int index) {
060            throw new UnsupportedOperationException();
061        }
062    
063        /** {@inheritDoc} */
064        public MathMLTableCellElement insertEmptyCell(final int index) {
065            throw new UnsupportedOperationException();
066        }
067    
068        /** {@inheritDoc} */
069        public MathMLTableCellElement setCell(final MathMLTableCellElement newCell,
070                final int index) {
071            throw new UnsupportedOperationException();
072        }
073    
074    }