org.zkoss.pivot.impl
Class AbstractCalculator<C extends Context<C>>

java.lang.Object
  extended by org.zkoss.pivot.impl.AbstractCalculator<C>
All Implemented Interfaces:
Calculator, ContextualCalculator<C>

public abstract class AbstractCalculator<C extends Context<C>>
extends java.lang.Object
implements ContextualCalculator<C>

The skeleton to implement ContextualCalculator.

Author:
simonpai

Field Summary
protected  java.lang.String _label
           
protected  java.lang.String _labelKey
           
 
Constructor Summary
AbstractCalculator(java.lang.String label, java.lang.String labelKey)
           
 
Method Summary
 java.lang.String getLabel()
           
 java.lang.String getLabelKey()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.zkoss.pivot.impl.calc.ContextualCalculator
getContextType, getResult
 

Field Detail

_label

protected final java.lang.String _label

_labelKey

protected final java.lang.String _labelKey
Constructor Detail

AbstractCalculator

public AbstractCalculator(java.lang.String label,
                          java.lang.String labelKey)
Method Detail

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface Calculator

getLabelKey

public java.lang.String getLabelKey()
Specified by:
getLabelKey in interface Calculator


Copyright © 2013. All Rights Reserved.