Class powersoft.jcm.db.BoundLabel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class powersoft.jcm.db.BoundLabel

java.lang.Object
   |
   +----powersoft.jcm.ui.Component
           |
           +----powersoft.jcm.ui.Label
                   |
                   +----powersoft.jcm.db.BoundLabel

public class BoundLabel
extends Label
implements DataOpenListener, DataAvailableListener, DataRequestListener, DataCloseListener
Encapsulates a label bound to a data source. The contents of the label correspond to the contents of the column in the result set to which the label is bound.
See Also:
Label

Constructor Index

 o BoundLabel()

Method Index

 o addDataAvailableListener(DataAvailableListener)
 o addDataCloseListener(DataCloseListener)
 o addDataOpenListener(DataOpenListener)
 o addDataRequestListener(DataRequestListener)
 o dataAvailable(DataAvailableEvent)
The data source calls this method when it has data available for the target (such as when the current row changes).
 o dataClose(DataCloseEvent)
The data source calls this method when its data set is no longer available.
 o dataOpen(DataOpenEvent)
The data source calls this method when a new set of data is available.
 o dataRequest(DataRequestEvent)
The data source calls this method when it wishes the target to send changed data back to the source.
 o getDataColumns()
 o getDataSource()
 o removeDataAvailableListener(DataAvailableListener)
 o removeDataCloseListener(DataCloseListener)
 o removeDataOpenListener(DataOpenListener)
 o removeDataRequestListener(DataRequestListener)
 o reset()
 o setDataColumns(String)
 o setDataSource(DataSource)

Constructors

 o BoundLabel
  public BoundLabel()

Methods

 o getDataSource
  public DataSource getDataSource()
 o setDataSource
  public void setDataSource(DataSource source)
 o getDataColumns
  public String getDataColumns()
 o setDataColumns
  public void setDataColumns(String str)
 o reset
  public synchronized void reset()
 o addDataAvailableListener
  public void addDataAvailableListener(DataAvailableListener l)
 o removeDataAvailableListener
  public void removeDataAvailableListener(DataAvailableListener l)
 o addDataCloseListener
  public void addDataCloseListener(DataCloseListener l)
 o removeDataCloseListener
  public void removeDataCloseListener(DataCloseListener l)
 o addDataOpenListener
  public void addDataOpenListener(DataOpenListener l)
 o removeDataOpenListener
  public void removeDataOpenListener(DataOpenListener l)
 o addDataRequestListener
  public void addDataRequestListener(DataRequestListener l)
 o removeDataRequestListener
  public void removeDataRequestListener(DataRequestListener l)
 o dataOpen
  public void dataOpen(DataOpenEvent event)
The data source calls this method when a new set of data is available. The target can prepare itself and can also make calls back on the source to bind columns, etc.
 o dataAvailable
  public void dataAvailable(DataAvailableEvent event)
The data source calls this method when it has data available for the target (such as when the current row changes). The default implementation is to simply call the DataAvailable event on the event object.
 o dataRequest
  public void dataRequest(DataRequestEvent event)
The data source calls this method when it wishes the target to send changed data back to the source. The default implementation is to simply call the DataRequest event on the event object.
 o dataClose
  public void dataClose(DataCloseEvent event)
The data source calls this method when its data set is no longer available.

All Packages  Class Hierarchy  This Package  Previous  Next  Index