com.gargoylesoftware.base.gui
public class TableLayoutDebuggingPanel extends JPanel
Version: $Revision: 1.4 $
Field Summary | |
---|---|
boolean | gridLinesEnabled_ |
Color | lineColor_ |
static long | serialVersionUID |
Constructor Summary | |
---|---|
TableLayoutDebuggingPanel()
Create a new panel with a default line colour of red. | |
TableLayoutDebuggingPanel(LayoutManager layout)
Create a new panel with the specified layout and a default line colour of red. |
Method Summary | |
---|---|
protected void | assertNotNull(String fieldName, Object fieldValue)
Verify that the specified value is not null. |
Color | getLineColor()
Return the current line colour. |
boolean | isGridLinesEnabled()
Return true if the grid lines are enabled. |
void | paint(Graphics g)
Override the painting logic to draw the gridlines. |
void | setGridLinesEnabled(boolean enabled)
Set whether or not the grid lines are visible. |
void | setLineColor(Color lineColor)
Set the line colour. |
Parameters: layout The new layout manager.
Parameters: fieldName The name of the field to check fieldValue The value of the field to check
Throws: DetailedNullPointerException If fieldValue is null
Returns: the line colour.
Returns: true if the grid lines are enabled.
Parameters: g The graphics object.
Parameters: enabled True if the grid lines are to be shown.
Parameters: lineColor The new line colour.