echopoint.ui
Class DefaultPaddingController

java.lang.Object
  extended by echopoint.ui.AbstractPaddingController
      extended by echopoint.ui.DefaultPaddingController

public class DefaultPaddingController
extends AbstractPaddingController

Default padding controller class used by TableColumn.


Constructor Summary
DefaultPaddingController()
           
 
Method Summary
 int getBottomPadding(int column, int row, java.lang.Object component)
          Gets the bottom padding value for a given cell
 int getLeftPadding(int column, int row, java.lang.Object component)
          Gets the left padding value for a given cell
 int getRightPadding(int column, int row, java.lang.Object component)
          Gets the right padding value for a given cell
 int getTopPadding(int column, int row, java.lang.Object component)
          Gets the top padding value for a given cell
 void setBottomPadding(int bottom)
           
 void setLeftPadding(int left)
           
 void setRightPadding(int right)
           
 void setTopPadding(int top)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPaddingController

public DefaultPaddingController()
Method Detail

setLeftPadding

public void setLeftPadding(int left)

getLeftPadding

public int getLeftPadding(int column,
                          int row,
                          java.lang.Object component)
Gets the left padding value for a given cell

Overrides:
getLeftPadding in class AbstractPaddingController
Parameters:
column - column index of the cell
row - row index of the cell
component - component that resides in the cell
Returns:
left padding value, returning negative number will make the renderer ignore the padding

setRightPadding

public void setRightPadding(int right)

getRightPadding

public int getRightPadding(int column,
                           int row,
                           java.lang.Object component)
Gets the right padding value for a given cell

Overrides:
getRightPadding in class AbstractPaddingController
Parameters:
column - column index of the cell
row - row index of the cell
component - component that resides in the cell
Returns:
right padding value, returning negative number will make the renderer ignore the padding

setTopPadding

public void setTopPadding(int top)

getTopPadding

public int getTopPadding(int column,
                         int row,
                         java.lang.Object component)
Gets the top padding value for a given cell

Overrides:
getTopPadding in class AbstractPaddingController
Parameters:
column - column index of the cell
row - row index of the cell
component - component that resides in the cell
Returns:
top padding value, returning negative number will make the renderer ignore the padding

setBottomPadding

public void setBottomPadding(int bottom)

getBottomPadding

public int getBottomPadding(int column,
                            int row,
                            java.lang.Object component)
Gets the bottom padding value for a given cell

Overrides:
getBottomPadding in class AbstractPaddingController
Parameters:
column - column index of the cell
row - row index of the cell
component - component that resides in the cell
Returns:
bottom padding value, returning negative number will make the renderer ignore the padding