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

Class powersoft.jcm.db.BoundOptionButton

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

public class BoundOptionButton
extends OptionButton
implements DataOpenListener, DataAvailableListener, DataRequestListener, DataCloseListener, ClickListener
Encapsulates an option button bound to a data source. A bound option button can be made to change appearance based on the contents of a column in a result set.
See Also:
OptionButton

Constructor Index

 o BoundOptionButton()

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 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)

Constructors

 o BoundOptionButton
  public BoundOptionButton()

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index