com.mizar.trinidad.components
Class ProgressIndicator

java.lang.Object
  extended by com.mizar.trinidad.components.ProgressIndicator

public class ProgressIndicator
extends java.lang.Object

This class should be defined as

Example tag usage:

 <af:panelGroupLayout layout="horizontal">
   <af:poll interval="2000" id="poller" clientComponent="true" pollListener="#{SessionManagedBean.pi.pollListener}"/>
   <af:inputText label="Updated rows" value="#{SessionManagedBean.pi.brm.value}" columns="5" readOnly="true" partialTriggers="poller"/>
   <af:spacer width="10"/>
   <af:progressIndicator id="pi" value="#{SessionManagedBean.pi.brm}" partialTriggers="poller"/>
 </af:panelGroupLayout>
 

Example Managed Bean reference

   pi = SessionManagedBean.pi.getCurrentInstance(this, "buildFace");
   pi.setMaximum(getListSize());
   pi.setStart(0);
   pi.setDefaultIncrement(50);
 


Field Summary
protected  org.apache.commons.logging.Log _Logger
           
 
Constructor Summary
ProgressIndicator()
           
ProgressIndicator(java.lang.Object hostObject, java.lang.String runMethod)
           
 
Method Summary
 void estimateCompletionTime()
           
 org.apache.myfaces.trinidad.model.DefaultBoundedRangeModel getBrm()
           
 int getDefaultIncrement()
           
 int getDefaultInterval()
           
 java.lang.reflect.Method getDoneMethod()
           
 int getEnd()
           
 java.util.Date getEstimatedEndTime()
           
 java.lang.Object getHostObject()
           
 int getInterval()
           
static java.lang.String getManagedBeanName()
           
 long getMaximum()
           
 java.lang.String getPass()
           
 oracle.adf.view.rich.component.rich.RichPoll getPoll()
           
 java.lang.reflect.Method getRunMethod()
           
 int getStart()
           
 java.util.Date getStartTime()
           
 long getValue()
           
 boolean isStopped()
           
 void pollListener(org.apache.myfaces.trinidad.event.PollEvent event)
           
 void run()
           
 void setBrm(org.apache.myfaces.trinidad.model.DefaultBoundedRangeModel brm)
           
 void setDefaultIncrement(int defaultIncrement)
           
 void setDefaultInterval(int defaultInterval)
           
 void setDoneMethod(java.lang.reflect.Method method)
           
 void setDoneMethod(java.lang.Object hostObject, java.lang.String methodName)
           
 void setDoneMethod(java.lang.String methodName)
           
 void setHostObject(java.lang.Object hostObject)
           
 void setInterval(int interval)
           
static void setManagedBeanName(java.lang.String managedBeanName)
          Defaults to "ProgressIndicator"
 void setMaximum(long maximum)
           
 void setPass(java.lang.String pass)
           
 void setPoll(oracle.adf.view.rich.component.rich.RichPoll poll)
           
 void setRunMethod(java.lang.reflect.Method method)
           
 void setRunMethod(java.lang.Object hostObject, java.lang.String methodName)
           
 void setStart(int start)
           
 void setStop(boolean stop)
           
 void setValue(long value)
           
 void start()
           
 void stop()
           
 void stop(oracle.adf.view.rich.event.DialogEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_Logger

protected org.apache.commons.logging.Log _Logger
Constructor Detail

ProgressIndicator

public ProgressIndicator()

ProgressIndicator

public ProgressIndicator(java.lang.Object hostObject,
                         java.lang.String runMethod)
Method Detail

run

public void run()

estimateCompletionTime

public void estimateCompletionTime()

start

public void start()

stop

public void stop(oracle.adf.view.rich.event.DialogEvent event)

stop

public void stop()

setStop

public void setStop(boolean stop)

isStopped

public boolean isStopped()

pollListener

public void pollListener(org.apache.myfaces.trinidad.event.PollEvent event)

setBrm

public void setBrm(org.apache.myfaces.trinidad.model.DefaultBoundedRangeModel brm)

getBrm

public org.apache.myfaces.trinidad.model.DefaultBoundedRangeModel getBrm()

setMaximum

public void setMaximum(long maximum)

getMaximum

public long getMaximum()

setValue

public void setValue(long value)

getValue

public long getValue()

setHostObject

public void setHostObject(java.lang.Object hostObject)

getHostObject

public java.lang.Object getHostObject()

setRunMethod

public void setRunMethod(java.lang.reflect.Method method)

setRunMethod

public void setRunMethod(java.lang.Object hostObject,
                         java.lang.String methodName)

getRunMethod

public java.lang.reflect.Method getRunMethod()

setDoneMethod

public void setDoneMethod(java.lang.reflect.Method method)

setDoneMethod

public void setDoneMethod(java.lang.String methodName)

setDoneMethod

public void setDoneMethod(java.lang.Object hostObject,
                          java.lang.String methodName)

getDoneMethod

public java.lang.reflect.Method getDoneMethod()

setInterval

public void setInterval(int interval)

getInterval

public int getInterval()

setStart

public void setStart(int start)

getStart

public int getStart()

getEnd

public int getEnd()

setDefaultIncrement

public void setDefaultIncrement(int defaultIncrement)

getDefaultIncrement

public int getDefaultIncrement()

setManagedBeanName

public static void setManagedBeanName(java.lang.String managedBeanName)
Defaults to "ProgressIndicator"

Parameters:
managedBeanName - the managed bean name as specified in a JSF faces-config.xml file

getManagedBeanName

public static java.lang.String getManagedBeanName()

setPoll

public void setPoll(oracle.adf.view.rich.component.rich.RichPoll poll)

getPoll

public oracle.adf.view.rich.component.rich.RichPoll getPoll()

setDefaultInterval

public void setDefaultInterval(int defaultInterval)

getDefaultInterval

public int getDefaultInterval()

getStartTime

public java.util.Date getStartTime()

getEstimatedEndTime

public java.util.Date getEstimatedEndTime()

setPass

public void setPass(java.lang.String pass)

getPass

public java.lang.String getPass()