|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sciapp.table.remote.RemoteStyle
public class RemoteStyle
RemoteStyle paints pending cells with a background color.
RemoteStyle will be applied if the value of a cell is an instance of PendingValue.
| Field Summary | |
|---|---|
protected Color |
pendingBackgroundColor
the background color for pending cells. |
| Constructor Summary | |
|---|---|
RemoteStyle()
Constructs a RemoteStyle with a yellow background color. |
|
RemoteStyle(Color color)
Constructs a RemoteStyle. |
|
| Method Summary | |
|---|---|
void |
apply(Component c,
JTable table,
int row,
int column)
Applies the style to the component c. |
Color |
getPendingBackgroundColor()
Returns the pending background color. |
void |
setPendingBackgroundColor(Color newPendingBackgroundColor)
Assigns a new pending background color. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Color pendingBackgroundColor
| Constructor Detail |
|---|
public RemoteStyle()
public RemoteStyle(Color color)
| Method Detail |
|---|
public void apply(Component c,
JTable table,
int row,
int column)
apply in interface Stylec - the component that we wish to apply a style to.table - the associated tablerow - the current row of the tablecolumn - the current column of the tablepublic Color getPendingBackgroundColor()
public void setPendingBackgroundColor(Color newPendingBackgroundColor)
newPendingBackgroundColor - the new pending background color to assign.
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||