|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.paperclips.DefaultCellBackgroundProvider
public class DefaultCellBackgroundProvider
Default implementation of the CellBackgroundProvider interface.
| Constructor Summary | |
|---|---|
DefaultCellBackgroundProvider()
Constructs a DefaultGridBackgroundProvider with a null background. |
|
DefaultCellBackgroundProvider(CellBackgroundProvider chain)
Constructs a DefaultGridBackgroundProvider which chains to the argument if this instance has a null background color. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
org.eclipse.swt.graphics.RGB |
getBackground()
Returns the background color. |
org.eclipse.swt.graphics.RGB |
getCellBackground(int row,
int column,
int colspan)
Returns the value in the background property. |
int |
hashCode()
|
void |
setBackground(org.eclipse.swt.graphics.RGB background)
Sets the background color to the argument. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCellBackgroundProvider()
public DefaultCellBackgroundProvider(CellBackgroundProvider chain)
chain - the provider to chain a getCellBackground(...) call to if this
instance would return null. Ignored if null.| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
public org.eclipse.swt.graphics.RGB getCellBackground(int row,
int column,
int colspan)
getCellBackground in interface CellBackgroundProviderrow - the row index (zero-based)column - the column index (zero-based). This is the grid column index,
not the cell index within the row.colspan - the number of grid columns that the cell occupies.
public org.eclipse.swt.graphics.RGB getBackground()
public void setBackground(org.eclipse.swt.graphics.RGB background)
background - the new background color.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||