com.f1j.ss.pivot
Interface DecisionListener


public interface DecisionListener
extends java.util.EventListener

This interface defines the DecisionListener API. When a decision needs to be made during the processing of a PivotRange, one of these methods is called to help indicate how to proceed.


Method Summary
 boolean onPageItemRename(java.lang.String currentValue, java.lang.String newValue)
          Called when a page item is being renamed.
 boolean onPivotRangeTooLarge()
          Called when a PivotRange is too wide or too tall.
 boolean onValueOverwrite()
          Called when a PivotRange is about to overwrite non-PivotRange values.
 

Method Detail

onPageItemRename

public boolean onPageItemRename(java.lang.String currentValue,
                                java.lang.String newValue)
Called when a page item is being renamed. The default is to rename the item.
Parameters:
currentValue - The current value of the page item.
newValue - The new value for the page item.
Returns:
boolean. true = if item should be renamed.

onPivotRangeTooLarge

public boolean onPivotRangeTooLarge()
Called when a PivotRange is too wide or too tall. Allows for the PivotRange change that caused the large size to be aborted. The default is to continue and clip
Returns:
boolean. true = if PivotRange should be continued and clipped.

onValueOverwrite

public boolean onValueOverwrite()
Called when a PivotRange is about to overwrite non-PivotRange values. Allows for the PivotRange change to be clipped (as if at edge of sheet). The default is to overwrite.
Returns:
boolean. true = if "overwrite".