borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.view 

ColumnView component

java.lang.Object
   +----borland.jbcl.view.ColumnView
           +----borland.jbcl.control.DatasetColumnView

About the ColumnView component

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.


ColumnView constructors

ColumnView properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.lang.Object

ColumnView methods

Methods implemented in this class

Methods implemented in java.lang.Object


ColumnView constructors

ColumnView()

  public ColumnView()
Creates a ColumnView object with default property values.

ColumnView(borland.jbcl.view.ColumnView)

  public ColumnView(borland.jbcl.view.ColumnView clonee)
Creates a ColumnView object and uses property values from clonee as its default values.

ColumnView(borland.jbcl.view.GridCore)

  public ColumnView(borland.jbcl.view.GridCore core)

ColumnView properties

alignment

 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.

background

 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.

caption

 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.

editClickPoint

 public Point getEditClickPoint()

font

 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.

foreground

 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.

itemEditor

 public ItemEditor getItemEditor()
 public void setItemEditor(borland.jbcl.model.ItemEditor itemEditor)
Read-only property that specifies the custom ItemEditor for this Column.

itemMargins

 public Insets getItemMargins()
 public void setItemMargins(java.awt.Insets newMargins)
The margins for this Column.

itemPainter

 public ItemPainter getItemPainter()
 public void setItemPainter(borland.jbcl.model.ItemPainter itemPainter)
Read-only property that returns the custom ItemPainter for this Column.

name

 public String getName()
 public void setName(java.lang.String newName)
The String name of this Column.

siteGraphics

 public Graphics getSiteGraphics()

width

 public int getWidth()
 public void setWidth(int newWidth)
Returns or specifies the width of the Column, expressed in pixels.


ColumnView methods

clone()

  public Object clone()

Overrides: java.lang.Object.clone()