de.jaret.util.ui.table.renderer
Class DefaultBorderConfiguration

java.lang.Object
  extended by de.jaret.util.ui.table.renderer.DefaultBorderConfiguration
All Implemented Interfaces:
IBorderConfiguration

public class DefaultBorderConfiguration
extends java.lang.Object
implements IBorderConfiguration

Default implementation of a BorderConfiguration.

Version:
$Id: DefaultBorderConfiguration.java 361 2007-04-09 15:43:38Z olk $
Author:
Peter Kliem

Field Summary
protected  int _borderBottom
          bottom border.
protected  int _borderLeft
          left border.
protected  int _borderRight
          right border.
protected  int _borderTop
          top border.
 
Constructor Summary
DefaultBorderConfiguration(int left, int right, int top, int bottom)
          Construct a border configuration.
DefaultBorderConfiguration(java.lang.String str)
          Construct a borderconfiguration form a comma separated string holding the values (no error hndling).
 
Method Summary
 DefaultBorderConfiguration copy()
          Produce a copy of this border configuration.
 int getBorderBottom()
          Get bottom border width.
 int getBorderLeft()
          Get left border width.
 int getBorderRight()
          Get right border width.
 int getBorderTop()
          Get top border width.
 void setBorderBottom(int borderBottom)
           
 void setBorderLeft(int borderLeft)
           
 void setBorderRight(int borderRight)
           
 void setBorderTop(int borderTop)
           
 java.lang.String toString()
           Produces a string that can be passed to the constructor as a csv string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_borderLeft

protected int _borderLeft
left border.


_borderRight

protected int _borderRight
right border.


_borderTop

protected int _borderTop
top border.


_borderBottom

protected int _borderBottom
bottom border.

Constructor Detail

DefaultBorderConfiguration

public DefaultBorderConfiguration(int left,
                                  int right,
                                  int top,
                                  int bottom)
Construct a border configuration.

Parameters:
left - left border
right - right border
top - top border
bottom - bottom border

DefaultBorderConfiguration

public DefaultBorderConfiguration(java.lang.String str)
Construct a borderconfiguration form a comma separated string holding the values (no error hndling).

Parameters:
str - csv string
Method Detail

copy

public DefaultBorderConfiguration copy()
Produce a copy of this border configuration.

Specified by:
copy in interface IBorderConfiguration
Returns:
copy of the configuration

toString

public java.lang.String toString()
Produces a string that can be passed to the constructor as a csv string.

Overrides:
toString in class java.lang.Object

getBorderBottom

public int getBorderBottom()
Description copied from interface: IBorderConfiguration
Get bottom border width.

Specified by:
getBorderBottom in interface IBorderConfiguration
Returns:
Returns the borderBottom.

setBorderBottom

public void setBorderBottom(int borderBottom)
Parameters:
borderBottom - The borderBottom to set.

getBorderLeft

public int getBorderLeft()
Description copied from interface: IBorderConfiguration
Get left border width.

Specified by:
getBorderLeft in interface IBorderConfiguration
Returns:
Returns the borderLeft.

setBorderLeft

public void setBorderLeft(int borderLeft)
Parameters:
borderLeft - The borderLeft to set.

getBorderRight

public int getBorderRight()
Description copied from interface: IBorderConfiguration
Get right border width.

Specified by:
getBorderRight in interface IBorderConfiguration
Returns:
Returns the borderRight.

setBorderRight

public void setBorderRight(int borderRight)
Parameters:
borderRight - The borderRight to set.

getBorderTop

public int getBorderTop()
Description copied from interface: IBorderConfiguration
Get top border width.

Specified by:
getBorderTop in interface IBorderConfiguration
Returns:
Returns the borderTop.

setBorderTop

public void setBorderTop(int borderTop)
Parameters:
borderTop - The borderTop to set.


Copyright © 2012. All Rights Reserved.