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

com.vaadin.client.widget.escalator.Cell Maven / Gradle / Ivy

Go to download

Vaadin is a web application framework for Rich Internet Applications (RIA). Vaadin enables easy development and maintenance of fast and secure rich web applications with a stunning look and feel and a wide browser support. It features a server-side architecture with the majority of the logic running on the server. Ajax technology is used at the browser-side to ensure a rich and interactive user experience.

There is a newer version: 8.27.1
Show newest version
/*
 * Copyright 2000-2016 Vaadin Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.vaadin.client.widget.escalator;

import com.google.gwt.dom.client.TableCellElement;

/**
 * Describes a cell
 * 

* It's a representation of the element in a grid cell, and its row and column * indices. *

* Unlike the {@link FlyweightRow}, an instance of {@link Cell} can be stored in * a field. * * @since 7.4 * @author Vaadin Ltd */ public class Cell { private final int row; private final int column; private final TableCellElement element; /** * Constructs a new {@link Cell}. * * @param row * The index of the row * @param column * The index of the column * @param element * The cell element */ public Cell(int row, int column, TableCellElement element) { super(); this.row = row; this.column = column; this.element = element; } /** * Returns the index of the row the cell resides in. * * @return the row index * */ public int getRow() { return row; } /** * Returns the index of the column the cell resides in. * * @return the column index */ public int getColumn() { return column; } /** * Returns the element of the cell. * * @return the cell element */ public TableCellElement getElement() { return element; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy