Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot.olap.remote
Class RemoteOlapStyle

java.lang.Object
  extended by com.citra.pivot.olap.remote.RemoteOlapStyle
All Implemented Interfaces:
Style

public class RemoteOlapStyle
extends Object
implements Style

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

pendingBackgroundColor

protected Color pendingBackgroundColor
the background color for cells whose values have not yet been evaluated

Constructor Detail

RemoteOlapStyle

public RemoteOlapStyle()
Constructs a RemoteOlapStyle with a yellow background color.


RemoteOlapStyle

public RemoteOlapStyle(Color color)
Constructs a RemoteOlapStyle.

Method Detail

apply

public void apply(Component c,
                  JTable table,
                  int row,
                  int column)
Applies the style to the component c.

Specified by:
apply in interface Style
Parameters:
c - the component that we wish to apply a style to.
table - the associated table
row - the current row of the table
column - the current column of the table

getPendingBackgroundColor

public Color getPendingBackgroundColor()
Returns the pending background color.

Returns:
the pending background color.

setPendingBackgroundColor

public void setPendingBackgroundColor(Color pendingBackgroundColor)
Assigns a new pending background color.

Parameters:
pendingBackgroundColor - the new pending background color to assign

Copyright © 2011 Citra Technologies. All Rights Reserved.