Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate


com.aspose.cells
Class PivotItem

java.lang.Object
  extended by com.aspose.cells.PivotItem

public class PivotItem
extends java.lang.Object

Represents an item in a PivotTable field.


Method Summary
 java.util.Calendar getDateTimeValue()
          Gets the pivot item date time value.
 java.lang.Double getDoubleValue()
          Gets the pivot item double value.
 java.lang.String getStringValue()
          Gets the pivot item string value.
 java.lang.Object getValue()
          Gets the pivot item value.Read-only.
 void hide(boolean isHide)
          Sets whether the pivot item is hidden.
 boolean isHidden()
          Indicates whether the pivot item is hidden.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isHidden

public boolean isHidden()
Indicates whether the pivot item is hidden.

Returns:
whether the pivot item is hidden.

hide

public void hide(boolean isHide)
Sets whether the pivot item is hidden.

Parameters:
isHide - whether the pivot item is hidden.

getValue

public java.lang.Object getValue()
Gets the pivot item value.Read-only. The value type is Double,Integer,Calendar,String. The value can be null if the pivot data range contains empty cell.

Returns:
the pivot item value.

getStringValue

public java.lang.String getStringValue()
Gets the pivot item string value. If the value is null, it will return "". If the value type is Date time, it will return default format "yyyy-MM-dd hh:mm:ss".

Returns:
the pivot item string value.

getDoubleValue

public java.lang.Double getDoubleValue()
Gets the pivot item double value. If the value is not number ,it will return null.

Returns:
the pivot item double value.

getDateTimeValue

public java.util.Calendar getDateTimeValue()
Gets the pivot item date time value.

Returns:
the pivot item date time value.