123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- /*
- * Copyright 2000-2014 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.shared.ui.grid;
-
- import java.io.Serializable;
-
- import com.vaadin.shared.Connector;
-
- /**
- * Column state DTO for transferring column properties from the server to the
- * client
- *
- * @since
- * @author Vaadin Ltd
- */
- public class GridColumnState implements Serializable {
-
- public static final int DEFAULT_COLUMN_WIDTH_PX = -1;
-
- /**
- * Id used by grid connector to map server side column with client side
- * column
- */
- public String id;
-
- /**
- * Column width in pixels. Default column width is
- * {@value #DEFAULT_COLUMN_WIDTH_PX}.
- */
- public int width = DEFAULT_COLUMN_WIDTH_PX;
-
- /**
- * The connector for the renderer used to render the cells in this column.
- */
- public Connector rendererConnector;
-
- /**
- * The connector for the field used to edit cells in this column when the
- * editor row is active.
- */
- public Connector editorConnector;
-
- /**
- * Are sorting indicators shown for a column. Default is false.
- */
- public boolean sortable = false;
- }
|