/* * Copyright (c) 2004,2009 Declarative Engineering LLC. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Declarative Engineering LLC * verson 1 which accompanies this distribution, and is available at * http://declarativeengineering.com/legal/DE_Developer_License_v1.txt */ package com.foundation.tcv.swt; public interface ITable extends IScrollableComponent { //Sent to the client when the server view changes the visibility of a column component. Passes the component number (Integer) and the new value (Boolean) in that order.// public static final int MESSAGE_SET_COLUMN_IS_VISIBLE = IScrollableComponent.LAST_MESSAGE_NUMBER + 1; //Sent to the client when the server adds a column row. Passes the parent component number (Integer) and the insertion index (Integer) in that order.// public static final int MESSAGE_ADD_COLUMN_ROW = IScrollableComponent.LAST_MESSAGE_NUMBER + 2; //Sent to the client when the server adds a content column. Passes the parent component number (Integer), the insertion index (Integer), header renderer (IRenderer), and content renderer (IRenderer) in that order.// public static final int MESSAGE_ADD_CONTENT_COLUMN = IScrollableComponent.LAST_MESSAGE_NUMBER + 3; //Sent to the client when the server adds a group of other columns. Passes the parent component number (Integer) and the insertion index (Integer) and header renderer (IRenderer) in that order.// public static final int MESSAGE_ADD_GROUP_COLUMN = IScrollableComponent.LAST_MESSAGE_NUMBER + 4; //Sent to the client when the server adds a column of row columns. Passes the parent component number (Integer) and the insertion index (Integer) in that order.// public static final int MESSAGE_ADD_ROWS_COLUMN = IScrollableComponent.LAST_MESSAGE_NUMBER + 5; //Sent to the client when the server sets a new row header column. Passes the content renderer (IRenderer).// public static final int MESSAGE_SET_ROW_HEADER_COLUMN = IScrollableComponent.LAST_MESSAGE_NUMBER + 6; //Sent to the client when the server removes any of the column components (and all sub-components). Passes the component number (Integer).// public static final int MESSAGE_REMOVE_COLUMN_COMPONENT = IScrollableComponent.LAST_MESSAGE_NUMBER + 7; //Sent to the client when the server view changes the content renderer of a column component. Passes the component number (Integer) and the new value (IRenderer) in that order.// public static final int MESSAGE_SET_CONTENT_RENDERER = IScrollableComponent.LAST_MESSAGE_NUMBER + 8; //Sent to the client when the server view changes the content renderer of a column component. Passes the component number (Integer) and the new value (IRenderer) in that order.// public static final int MESSAGE_SET_HEADER_RENDERER = IScrollableComponent.LAST_MESSAGE_NUMBER + 9; //Sent to the client when the server view changes models or for any reason requires the client to clear its cache and redraw. Passes nothing.// public static final int MESSAGE_CLEAR_CACHE = IScrollableComponent.LAST_MESSAGE_NUMBER + 10; /* TODO: Need to define the messages sent between the client and server. //Called to clear the client cache of data.// public static final int MESSAGE_CLEAR_CACHE = IScrollableComponent.LAST_MESSAGE_NUMBER + 1; //Called to notify the client of the new estimated size of the collection.// public static final int MESSAGE_SET_SIZE = IScrollableComponent.LAST_MESSAGE_NUMBER + 2; //Sent to the server to request an item be opened. Opening the item should generate some add item messages.// public static final int MESSAGE_OPEN_ITEM = IScrollableComponent.LAST_MESSAGE_NUMBER + 3; public static final int MESSAGE_SET_SELECTION = IScrollableComponent.LAST_MESSAGE_NUMBER + 2; public static final int MESSAGE_ADD_ITEM = IScrollableComponent.LAST_MESSAGE_NUMBER + 3; public static final int MESSAGE_REMOVE_ITEM = IScrollableComponent.LAST_MESSAGE_NUMBER + 4; public static final int MESSAGE_REMOVE_ALL = IScrollableComponent.LAST_MESSAGE_NUMBER + 5; public static final int MESSAGE_SET_ITEM = IScrollableComponent.LAST_MESSAGE_NUMBER + 6; public static final int MESSAGE_VIEW_REFRESH_SELECTION = IScrollableComponent.LAST_MESSAGE_NUMBER + 7; public static final int MESSAGE_VIEW_SYNCHRONIZE_SELECTION = IScrollableComponent.LAST_MESSAGE_NUMBER + 8; public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION = IScrollableComponent.LAST_MESSAGE_NUMBER + 9; public static final int MESSAGE_SET_ALLOW_USER_ITEMS = IScrollableComponent.LAST_MESSAGE_NUMBER + 10; public static final int MESSAGE_SET_ALLOW_MULTI_SELECTION = IScrollableComponent.LAST_MESSAGE_NUMBER + 11; public static final int MESSAGE_SEND_DOUBLE_CLICK = IScrollableComponent.LAST_MESSAGE_NUMBER + 12; public static final int MESSAGE_DOUBLE_CLICK = IScrollableComponent.LAST_MESSAGE_NUMBER + 13; */ public static final int LAST_MESSAGE_NUMBER = IScrollableComponent.LAST_MESSAGE_NUMBER + 9; }//ITable//