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

Class powersoft.jcm.db.BoundCheckBox

java.lang.Object
   |
   +----powersoft.jcm.ui.Component
           |
           +----powersoft.jcm.ui.CheckBox
                   |
                   +----powersoft.jcm.db.BoundCheckBox

public class BoundCheckBox
extends CheckBox
implements DataOpenListener, DataAvailableListener, DataRequestListener, DataCloseListener, ClickListener
Encapsulates a check box bound to a data source. The state of the check box corresponds to the contents of the column of the result set to which it is bound.
See Also:
CheckBox

Constructor Index

 o BoundCheckBox()

Method Index

 o addDataAvailableListener(DataAvailableListener)
 o addDataCloseListener(DataCloseListener)
 o addDataOpenListener(DataOpenListener)
 o addDataRequestListener(DataRequestListener)
 o click(ClickEvent)
 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 getDataValueChecked()
 o getDataValueUnchecked()
 o removeDataAvailableListener(DataAvailableListener)
 o removeDataCloseListener(DataCloseListener)
 o removeDataOpenListener(DataOpenListener)
 o removeDataRequestListener(DataRequestListener)
 o reset()
 o setChecked(boolean)
 o setChecked(boolean, boolean)
 o setDataColumns(String)
 o setDataSource(DataSource)
 o setDataValueChecked(String)
 o setDataValueUnchecked(String)

Constructors

 o BoundCheckBox
  public BoundCheckBox()

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 setChecked
  public void setChecked(boolean checked)
@overrides CheckBox
Overrides:
setChecked in class CheckBox
 o getDataValueChecked
  public String getDataValueChecked()
 o setDataValueChecked
  public void setDataValueChecked(String str)
 o getDataValueUnchecked
  public String getDataValueUnchecked()
 o setDataValueUnchecked
  public void setDataValueUnchecked(String str)
 o click
  public void click(ClickEvent event)
 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.
 o reset
  protected void reset()
 o setChecked
  protected void setChecked(boolean checked,
                            boolean notify)

All Packages  Class Hierarchy  This Package  Previous  Next  Index