Compiere 3.1

org.compiere.grid.ed
Class VLine

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by org.compiere.grid.ed.VLine
All Implemented Interfaces:
Serializable, Border

public class VLine
extends AbstractBorder

Horizontal Line with Text

Version:
$Id: VLine.java,v 1.2 2006/07/30 00:51:28 jjanke Exp $
Author:
Jorg Janke
See Also:
Serialized Form

Field Summary
static int GAP
          Gap between element
static int SPACE
          space for characters below line (y)
 
Constructor Summary
VLine()
          IDE Bean Constructor
VLine(String header)
          Constructor
VLine(String header, Icon icon)
          Constructor
 
Method Summary
 String getHeader()
          Get Header
 Icon getIcon()
          Icon
 void paintBorder(Component c, Graphics g, int x, int y, int w, int h)
          Paint Border
 void setHeader(String newHeader)
          Set Header
 void setIcon(Icon icon)
          Set Icon
 
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GAP

public static final int GAP
Gap between element

See Also:
Constant Field Values

SPACE

public static final int SPACE
space for characters below line (y)

See Also:
Constant Field Values
Constructor Detail

VLine

public VLine()
IDE Bean Constructor


VLine

public VLine(String header)
Constructor

Parameters:
header -

VLine

public VLine(String header,
             Icon icon)
Constructor

Parameters:
header -
Method Detail

paintBorder

public void paintBorder(Component c,
                        Graphics g,
                        int x,
                        int y,
                        int w,
                        int h)
Paint Border

Specified by:
paintBorder in interface Border
Overrides:
paintBorder in class AbstractBorder
Parameters:
c - the component for which this border is being painted
g - the paint graphics
x - the x position of the painted border
y - the y position of the painted border
w - the width of the painted border
h - the height of the painted border

setHeader

public void setHeader(String newHeader)
Set Header

Parameters:
newHeader - String - '_' are replaced by spaces

getHeader

public String getHeader()
Get Header

Returns:
header string

getIcon

public Icon getIcon()
Icon


setIcon

public void setIcon(Icon icon)
Set Icon


Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.