borland Packages Class Hierarchy dbswing Package
java.lang.Object +----java.awt.Component +----com.borland.dbswing.TableFastStringRenderer
Variables Constructors Properties Methods Event Listeners
Implements CustomPaintSite, ImageObserver, MenuContainer, Serializable, TableCellRenderer
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.
ColumnPaintListener
public TableFastStringRenderer()Constructs a
TableFastStringRenderer
component with no parameters.
public int getAlignment() public void setAlignment(int alignment)The
alignment
setting for the cell being rendered.
alignment
Alignment
variables.
public Border getBorder() public void setBorder(Border border)Returns and sets the
border
setting for the cell being rendered.
public void setDefaultAlignment(int alignment)The default
alignment
setting for the cell being rendered.
alignment
Alignment
variables.
public void setDefaultBackground(Color background)The default background
color
for the cell being rendered.
color
java.awt.Color
object representing the background color.
public void setDefaultFont(Font font)The default
font
to use for the item being rendered.
font
java.awt.Font
object representing the font to use.
public void setDefaultForeground(Color foreground)The default foreground
color
for the cell being rendered.
color
java.awt.Color
object representing the foreground color.
public void setDefaultMargins(Insets margins)The default
margins
for the cell being rendered. Calls setItemMargins()
, passing it margins
.
margins
Insets
object representing the margins for this item.
public void setHorizontalAlignment(int horizontalAlignment)The horizontal alignment for the item in the cell. One of:
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
.
margins
Insets
object representing the margins for this item.
public void setMargins(Insets margins)The
margins
for the cell being rendered.
margins
Insets
object representing the margins for this item.
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.
public boolean isTransparent()Returns whether or not the
TableFastStringRenderer
should erase its background. Returns true
if transparent, false
if not.
public void setValue(Object value)The value being rendered.
public void setVerticalAlignment(int verticalAlignment)The vertical alignment for the item in the cell. One of:
public void paint(Graphics g)
Overrides: java.awt.Component.paint(java.awt.Graphics)
public void setBounds(int x, int y, int width, int height)
Overrides: java.awt.Component.setBounds(int, int, int, int)
public synchronized void addComponentListener(java.awt.event.ComponentListener ) public synchronized void removeComponentListener(java.awt.event.ComponentListener )
public synchronized void addFocusListener(java.awt.event.FocusListener ) public synchronized void removeFocusListener(java.awt.event.FocusListener )
public synchronized void addInputMethodListener(java.awt.event.InputMethodListener ) public synchronized void removeInputMethodListener(java.awt.event.InputMethodListener )
public synchronized void addKeyListener(java.awt.event.KeyListener ) public synchronized void removeKeyListener(java.awt.event.KeyListener )
public synchronized void addMouseListener(java.awt.event.MouseListener ) public synchronized void removeMouseListener(java.awt.event.MouseListener )
public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener ) public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener )
public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener ) public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener )