borland Packages  Class Hierarchy  jbcl.view Package  Index 

ColumnView component

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

About the ColumnView component

Variables  Constructors  Properties  Methods  

Implements ItemEditSite, ItemPaintSite, Serializable, 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 variables

Variables implemented in this class

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 variables

alignment

  protected int alignment

background

  protected Color background

caption

  protected String caption

font

  protected Font font

foreground

  protected Color foreground

itemEditor

  protected transient ItemEditor itemEditor

itemPainter

  protected transient ItemPainter itemPainter

margins

  protected Insets margins

name

  protected String name

ordinal

  protected int ordinal

userSetAlignment

  protected boolean userSetAlignment

userSetBackground

  protected boolean userSetBackground

userSetCaption

  protected boolean userSetCaption

userSetFont

  protected boolean userSetFont

userSetForeground

  protected boolean userSetForeground

userSetItemEditor

  protected boolean userSetItemEditor

userSetItemPainter

  protected boolean userSetItemPainter

userSetMargins

  protected boolean userSetMargins

userSetName

  protected boolean userSetName

userSetOrdinal

  protected boolean userSetOrdinal

userSetWidth

  protected boolean userSetWidth

width

  protected int width

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(int)

  public ColumnView(int ordinal)
Creates a ColumnView object for a specified column in the MatrixModel. An ordinal value of 0 specifies the first column, an ordinal value of 1 specifies the second column, and so on. An ordinal value of less than 0 means the index of the columnView array is used to determine the correct SMatrixModel column.

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()
Returns the point clicked with the mouse.

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.

ordinal

 public int getOrdinal()
 public void setOrdinal(int newOrdinal)
This is the column index in the MatrixModel for this column. An S
value less than 0 means the index of the columnView array is used to determine the MatrixModel column.

siteComponent

 public Component getSiteComponent()

siteGraphics

 public Graphics getSiteGraphics()

transparent

 public boolean isTransparent()
Determines whether the column is transparent.

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()

resetUserFlags()

  public void resetUserFlags()
This method resets all the user setting flags to false, so that any resolving of property settings results in the newly set ones.