LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing.table
Class LyJSpecialCellBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by javax.swing.border.EmptyBorder
          extended by leon.view.win.swing.table.LyJSpecialCellBorder
All Implemented Interfaces:
java.io.Serializable, javax.swing.border.Border
Direct Known Subclasses:
LyJFooterCellBorder

public class LyJSpecialCellBorder
extends javax.swing.border.EmptyBorder

This class defines a special border for status, header and footer cell in the table.

See Also:
Serialized Form

Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LyJSpecialCellBorder()
          Creates a border with default top,bottom, right and left inset.
LyJSpecialCellBorder(boolean drawSides)
          Creates a border with default top,bottom, right and left inset.
LyJSpecialCellBorder(int top, int left, int bottom, int right)
          Creates a special border object with the specified insets.
LyJSpecialCellBorder(int top, int left, int bottom, int right, boolean drawSides)
          Creates a special border object with the specified insets.
LyJSpecialCellBorder(int top, int left, int bottom, int right, boolean drawLeftSide, boolean drawRightSide)
          Creates a special border object with the specified insets.
 
Method Summary
 boolean isBorderOpaque()
          This border never draw its background.
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
          (non-Javadoc).
 
Methods inherited from class javax.swing.border.EmptyBorder
getBorderInsets, getBorderInsets, getBorderInsets
 
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyJSpecialCellBorder

public LyJSpecialCellBorder()
Creates a border with default top,bottom, right and left inset.


LyJSpecialCellBorder

public LyJSpecialCellBorder(boolean drawSides)
Creates a border with default top,bottom, right and left inset.

Parameters:
drawSides - indicates if left and right borders must be drawn.

LyJSpecialCellBorder

public LyJSpecialCellBorder(int top,
                            int left,
                            int bottom,
                            int right)
Creates a special border object with the specified insets.

Parameters:
top - the top inset, in pixels
left - the left inset, in pixels
bottom - the bottom inset, in pixels
right - the top inset, in pixels

LyJSpecialCellBorder

public LyJSpecialCellBorder(int top,
                            int left,
                            int bottom,
                            int right,
                            boolean drawSides)
Creates a special border object with the specified insets.

Parameters:
top - the top inset, in pixels
left - the left inset, in pixels
bottom - the bottom inset, in pixels
right - the top inset, in pixels
drawSides - indicates if left and right borders must be drawn.

LyJSpecialCellBorder

public LyJSpecialCellBorder(int top,
                            int left,
                            int bottom,
                            int right,
                            boolean drawLeftSide,
                            boolean drawRightSide)
Creates a special border object with the specified insets.

Parameters:
top - the top inset, in pixels
left - the left inset, in pixels
bottom - the bottom inset, in pixels
right - the top inset, in pixels
drawLeftSide - indicates if left border must be drawn.
drawRightSide - indicates if right border must be drawn.
Method Detail

isBorderOpaque

public boolean isBorderOpaque()
This border never draw its background.

Specified by:
isBorderOpaque in interface javax.swing.border.Border
Overrides:
isBorderOpaque in class javax.swing.border.EmptyBorder
Returns:
false.
See Also:
Border.isBorderOpaque()

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
(non-Javadoc).

Specified by:
paintBorder in interface javax.swing.border.Border
Overrides:
paintBorder in class javax.swing.border.EmptyBorder
See Also:
Border.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int)

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com