com.aspose.cells

Class PivotItem

  • java.lang.Object
    • com.aspose.cells.PivotItem
public class PivotItem 
extends java.lang.Object

Represents a item in a PivotField report.

Property Getters/Setters Summary
intgetIndex()
void
setIndex(intvalue)
Gets the index of the pivot item in the pivot field
booleanisHidden()
void
setHidden(booleanvalue)
Gets and Sets whether the pivot item is hidden.
java.lang.StringgetName()
Gets the name of the pivot item.
voidsetPosition(intvalue)
Specifying the position index in all the PivotItems,not the PivotItems under the same parent node.
voidsetPositionInSameParentNode(intvalue)
Specifying the position index in the PivotItems under the same parent node.
java.lang.ObjectgetValue()
Gets the value of the pivot item
 
Method Summary
DateTimegetDateTimeValue()
Gets the date time value of the pivot item If the value is null ,it will return DateTime.MinValue
doublegetDoubleValue()
Gets the double value of the pivot item If the value is null or not number ,it will return 0
java.lang.StringgetStringValue()
Gets the string value of the pivot item If the value is null, it will return ""
voidhide(booleanvalue)
Sets whether the pivot item is hidden.
voidmove(intcount)
Moves the item up or down.
voidmove(intcount, booleanisSameParent)
Moves the item up or down
 

    • Property Getters/Setters Detail

      • isHidden/setHidden

        public boolean isHidden() / public void setHidden(boolean value)
        
        Gets and Sets whether the pivot item is hidden.
      • setPosition

        public void setPosition(int value)
        
        Specifying the position index in all the PivotItems,not the PivotItems under the same parent node.
      • setPositionInSameParentNode

        public void setPositionInSameParentNode(int value)
        
        Specifying the position index in the PivotItems under the same parent node.
      • getValue

        public java.lang.Object getValue()
        
        Gets the value of the pivot item
      • getName

        public java.lang.String getName()
        
        Gets the name of the pivot item.
      • getIndex/setIndex

        public int getIndex() / public void setIndex(int value)
        
        Gets the index of the pivot item in the pivot field
    • Method Detail

      • hide

        public void hide(boolean value)
        Sets whether the pivot item is hidden. NOTE: This member is now obsolete. Instead, please use Aspose.Cells.Pivot.PivotField.HideItem method. This property will be removed 12 months later since JANUARY 2012. Aspose apologizes for any inconvenience you may have experienced.
      • move

        public void move(int count, boolean isSameParent)
        Moves the item up or down
        Parameters:
        count - The number of moving up or down. Move the item up if this is less than zero; Move the item down if this is greater than zero.
        isSameParent - Specifying whether moving operation is in the same parent node or not
      • move

        public void move(int count)
        Moves the item up or down. NOTE: This method is now obsolete. Instead, please use Move(int count, bool isSameParent) method. This method will be removed 12 months later since December 2014. Aspose apologizes for any inconvenience you may have experienced.
        Parameters:
        count - The number of moving up or down. Move the item up if this is less than zero; Move the item down if this is greater than zero.
      • getStringValue

        public java.lang.String getStringValue()
        Gets the string value of the pivot item If the value is null, it will return ""
      • getDoubleValue

        public double getDoubleValue()
        Gets the double value of the pivot item If the value is null or not number ,it will return 0
      • getDateTimeValue

        public DateTime getDateTimeValue()
        Gets the date time value of the pivot item If the value is null ,it will return DateTime.MinValue