borland Packages  Class Hierarchy  dbswing Package 

TableFastStringRenderer component

java.lang.Object
   +----java.awt.Component
           +----com.borland.dbswing.TableFastStringRenderer

About the TableFastStringRenderer component

Variables  Constructors  Properties  Methods  Event Listeners

Implements CustomPaintSite, ImageObserver, MenuContainer, Serializable, TableCellRenderer

Note: This is a feature of JBuilder Professional and Enterprise.

TableFastStringRenderer is an optimized implementation of the javax.swing.table.TableCellRenderer for painting Strings. It is JdbTable's default cell renderer for DataSet data types renderable as Strings.

TableFastStringRenderer also provides JdbTable's support for the DataExpress ColumnPaintListener event.

TableFastStringRenderer can be used as a table cell renderer for a JTable or JdbTable when not used with a DataSet. In such cases, the value to be rendered is converted to a String by calling the toString() method.

See also: JdbTable
ColumnPaintListener


TableFastStringRenderer variables

Variables implemented in java.awt.Component

TableFastStringRenderer constructors

TableFastStringRenderer properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.awt.Component

Properties implemented in java.lang.Object

TableFastStringRenderer methods

Methods implemented in this class

Methods implemented in java.awt.Component

Methods implemented in java.lang.Object

TableFastStringRenderer event listeners


TableFastStringRenderer constructors

TableFastStringRenderer()

  public TableFastStringRenderer()
Constructs a TableFastStringRenderer component with no parameters.

TableFastStringRenderer properties

alignment

 public int getAlignment()
 public void setAlignment(int alignment)
The alignment setting for the cell being rendered.

Parameters:

alignment
An int representing the alignment bitmask. One of the Alignment variables.

border

 public Border getBorder()
 public void setBorder(Border border)
Returns and sets the border setting for the cell being rendered.

defaultAlignment

 public void setDefaultAlignment(int alignment)
The default alignment setting for the cell being rendered.

Parameters:

alignment
An int representing the alignment bitmask. One of the Alignment variables.

defaultBackground

 public void setDefaultBackground(Color background)
The default background color for the cell being rendered.

Parameters:

color
A java.awt.Color object representing the background color.

defaultFont

 public void setDefaultFont(Font font)
The default font to use for the item being rendered.

Parameters:

font
A java.awt.Font object representing the font to use.

defaultForeground

 public void setDefaultForeground(Color foreground)
The default foreground color for the cell being rendered.

Parameters:

color
A java.awt.Color object representing the foreground color.

defaultMargins

 public void setDefaultMargins(Insets margins)
The default margins for the cell being rendered. Calls setItemMargins(), passing it margins.

Parameters:

margins
An Insets object representing the margins for this item.

horizontalAlignment

 public void setHorizontalAlignment(int horizontalAlignment)
The horizontal alignment for the item in the cell. One of:

itemMargins

 public Insets getItemMargins()
 public void setItemMargins(Insets margins)
The margins for the item in the cell being rendered. The setItemMargins() method calls setMargins(), passing it margins.

Parameters:

margins
An Insets object representing the margins for this item.

margins

 public void setMargins(Insets margins)
The margins for the cell being rendered.

Parameters:

margins
An Insets object representing the margins for this item.

siteComponent

 public Component getSiteComponent()
Returns the hosting-site component representing the TableFastStringRenderer. This is used for coordinating space calculations, as well as to provide a component for ItemPainter implementations that require one.

transparent

 public boolean isTransparent()
Returns whether or not the TableFastStringRenderer should erase its background. Returns true if transparent, false if not.

value

 public void setValue(Object value)
The value being rendered.

verticalAlignment

 public void setVerticalAlignment(int verticalAlignment)
The vertical alignment for the item in the cell. One of:

TableFastStringRenderer methods

paint(java.awt.Graphics)

  public void paint(Graphics g)

Overrides: java.awt.Component.paint(java.awt.Graphics)

setBounds(int, int, int, int)

  public void setBounds(int x, int y, int width, int height)

Overrides: java.awt.Component.setBounds(int, int, int, int)


TableFastStringRenderer event listeners

This component is a source for the following event sets.

component

 public synchronized void addComponentListener(java.awt.event.ComponentListener )
 public synchronized void removeComponentListener(java.awt.event.ComponentListener )

focus

 public synchronized void addFocusListener(java.awt.event.FocusListener )
 public synchronized void removeFocusListener(java.awt.event.FocusListener )

inputMethod

 public synchronized void addInputMethodListener(java.awt.event.InputMethodListener )
 public synchronized void removeInputMethodListener(java.awt.event.InputMethodListener )

key

 public synchronized void addKeyListener(java.awt.event.KeyListener )
 public synchronized void removeKeyListener(java.awt.event.KeyListener )

mouse

 public synchronized void addMouseListener(java.awt.event.MouseListener )
 public synchronized void removeMouseListener(java.awt.event.MouseListener )

mouseMotion

 public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener )
 public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener )

propertyChange

 public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener )
 public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener )