home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / VCafe / prosrc.bin / ProjectionBean.java < prev    next >
Encoding:
Java Source  |  1998-03-18  |  1.4 KB  |  50 lines

  1. /*
  2.  * @(#ProjectionBean.java
  3.  *
  4.  * Copyright (c) 1997 Symantec Corporation. All Rights Reserved.
  5.  *
  6.  */
  7.  
  8. package symantec.itools.db.awt;
  9.  
  10. /**
  11.  * An interface to get/set the database value in a component.
  12.  * dbAWARE components implement this interface.
  13.  */
  14. public interface ProjectionBean {
  15.     /**
  16.      * Sets the value of this component to the given value.
  17.      * @param value the new component value
  18.      * @see #getData
  19.      */
  20.     void setData(Object value);
  21.     /**
  22.      * Gets the value of this component.
  23.      * @return the current component value
  24.      * @see #setData
  25.      */
  26.     Object getData();
  27.     /**
  28.      * Sets whether the data value of this component may be modified.
  29.      * @param value <code>true</code> if the value may not be modified,
  30.      * <code>false</code>if the value may be modified
  31.      */
  32.     void setReadOnly(boolean value);
  33.     /**
  34.      * Gets whether this component saves its value as a text String.
  35.      * @return <code>true</code> if the value is saved as text,
  36.      * <code>false</code> otherwise
  37.      */
  38.     boolean isTextBased();
  39.     /**
  40.      * Gets the number of digits to the right of the decimal point for
  41.      * this component's value.
  42.      * @return the number of digits to the right of the decimal point
  43.      */
  44.     int getScale();
  45.     /**
  46.      * Registers the standard event listener(s) for this component.
  47.      */
  48.     void registerListeners();
  49. }
  50.