Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot.olap.remote
Class DefaultRemotePendingValue

java.lang.Object
  extended by com.citra.pivot.olap.remote.DefaultRemotePendingValue
All Implemented Interfaces:
OlapCell, RemotePendingValue

public class DefaultRemotePendingValue
extends Object
implements RemotePendingValue

DefaultRemotePendingValue is the default object that is returned by RemoteOlapModel for table cells that have not been evaluated yet.


Field Summary
protected  String text
          the string that is displayed
 
Constructor Summary
DefaultRemotePendingValue()
          Constructs a DefaultRemotePendingValue with an empty string as label.
DefaultRemotePendingValue(String text)
          Constructs a DefaultRemotePendingValue with a given text as its label.
 
Method Summary
 String getFormattedValue()
          Retrieves the formatted value as a string.
 OlapMeasure getMeasure()
          Retrieves the measure metadata of the value.
 Object getValue()
          Retrieves the value as a java object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

protected String text
the string that is displayed

Constructor Detail

DefaultRemotePendingValue

public DefaultRemotePendingValue()
Constructs a DefaultRemotePendingValue with an empty string as label.


DefaultRemotePendingValue

public DefaultRemotePendingValue(String text)
Constructs a DefaultRemotePendingValue with a given text as its label.

Method Detail

getFormattedValue

public String getFormattedValue()
Retrieves the formatted value as a string.

Specified by:
getFormattedValue in interface OlapCell
Returns:
the formatted value as it is received from the datasource

getMeasure

public OlapMeasure getMeasure()
Retrieves the measure metadata of the value.

Specified by:
getMeasure in interface OlapCell
Returns:
the value's measure association

getValue

public Object getValue()
Retrieves the value as a java object.

Specified by:
getValue in interface OlapCell
Returns:
the value as it is received from the datasource

Copyright © 2011 Citra Technologies. All Rights Reserved.