|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.pivot.olap.remote.RemoteOlapStyle
public class RemoteOlapStyle
RemoteOlapStyle paints pending cells with a background color.
It will be applied only if the value of a cell is an instance of RemotePendingValue
.
In order to take effect, the style should be added to pivot table's style model.
Field Summary | |
---|---|
protected Color |
pendingBackgroundColor
the background color for cells whose values have not yet been evaluated |
Constructor Summary | |
---|---|
RemoteOlapStyle()
Constructs a RemoteOlapStyle with a yellow background color. |
|
RemoteOlapStyle(Color color)
Constructs a RemoteOlapStyle. |
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 pendingBackgroundColor)
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 RemoteOlapStyle()
public RemoteOlapStyle(Color color)
Method Detail |
---|
public void apply(Component c, JTable table, int row, int column)
apply
in interface Style
c
- 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 pendingBackgroundColor)
pendingBackgroundColor
- the new pending background color to assign
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |