public class GridEditor extends ControlEditor
TableEditor
grabHorizontal, grabVertical, horizontalAlignment, minimumHeight, minimumWidth, verticalAlignment
Constructor and Description |
---|
GridEditor(Grid table)
Creates a TableEditor for the specified Table.
|
Modifier and Type | Method and Description |
---|---|
protected Rectangle |
computeBounds()
Returns the bounds of the editor.
|
void |
dispose()
Removes all associations between the TableEditor and the cell in the
table.
|
int |
getColumn()
Returns the zero based index of the column of the cell being tracked by
this editor.
|
GridItem |
getItem()
Returns the TableItem for the row of the cell being tracked by this
editor.
|
void |
layout()
Lays out the control within the underlying composite.
|
void |
setColumn(int column)
Sets the zero based index of the column of the cell being tracked by this
editor.
|
void |
setEditor(Control editor,
GridItem item,
int column)
Specify the Control that is to be displayed and the cell in the table
that it is to be positioned above.
|
void |
setItem(GridItem item)
Sets the item that this editor will function over.
|
getEditor, setEditor
public GridEditor(Grid table)
table
- the Table Control above which this editor will be displayedprotected Rectangle computeBounds()
public void dispose()
dispose
in class ControlEditor
public int getColumn()
public GridItem getItem()
public void setColumn(int column)
column
- the zero based index of the column of the cell being
tracked by this editorpublic void setItem(GridItem item)
item
- editing item.public void setEditor(Control editor, GridItem item, int column)
Note: The Control provided as the editor must be created with its parent being the Table control specified in the TableEditor constructor.
editor
- the Control that is displayed above the cell being editeditem
- the TableItem for the row of the cell being tracked by this
editorcolumn
- the zero based index of the column of the cell being
tracked by this editorpublic void layout()
layout
in class ControlEditor
Copyright (c) EclipseSource and others 2002, 2020.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0