borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.view
java.lang.Object +----borland.jbcl.view.ColumnView +----borland.jbcl.control.DatasetColumnView
Constructors Properties Methods
Implements ItemEditSite, ItemPaintSite, Cloneable
This component provides persistent storage for properties that affect how information is displayed in a Column of a GridControl. This component can also be used to provide default property values when passed into other objects that know how to handle such properties, such as the DataSetColumnView component.
Data-aware controls pick up Column properties when bound to a DataSet. After that, to affect display, set properties of the ColumnView or DataSetColumnView components.
public ColumnView()Creates a ColumnView object with default property values.
public ColumnView(borland.jbcl.view.ColumnView clonee)Creates a ColumnView object and uses property values from clonee as its default values.
public ColumnView(borland.jbcl.view.GridCore core)
public int getAlignment() public void setAlignment(int newAlignment)Stores the alignment of the ColumnView, both horizontal and vertical. To set a new value for both horizontal and vertical alignment, separate the values with a vertical bar (|). Unless otherwise specified, alignment defaults to center and bottom. Acceptable values for newAlignment are defined in borland.jbcl.util.Alignment.
public Color getBackground() public void setBackground(java.awt.Color newColor)Stores the background color used by the ColumnView component. Valid values for background are listed in java.awt.color.
public String getCaption() public void setCaption(java.lang.String newCaption)The caption property stores the ColumnView's label that displays in a data-aware control. The default caption is the Column name to which the ColumnView is bound.
public Point getEditClickPoint()
public Font getFont() public void setFont(java.awt.Font newFont)Stores the font used for the ColumnView caption (label). If not set, font defaults to the Java-specified default font. Valid values for newFont are listed in java.awt.font.
public Color getForeground() public void setForeground(java.awt.Color newColor)Stores the foreground color of the ColumnView. Valid values for color are listed in java.awt.color.
public ItemEditor getItemEditor() public void setItemEditor(borland.jbcl.model.ItemEditor itemEditor)Read-only property that specifies the custom ItemEditor for this Column.
public Insets getItemMargins() public void setItemMargins(java.awt.Insets newMargins)The margins for this Column.
public ItemPainter getItemPainter() public void setItemPainter(borland.jbcl.model.ItemPainter itemPainter)Read-only property that returns the custom ItemPainter for this Column.
public String getName() public void setName(java.lang.String newName)The String name of this Column.
public Graphics getSiteGraphics()
public int getWidth() public void setWidth(int newWidth)Returns or specifies the width of the Column, expressed in pixels.
public Object clone()
Overrides: java.lang.Object.clone()