Code Generator for Eclipse Code
Brought to you by:
hotzst
--- a/ch.sahits.model/src/ch/sahits/model/gui/IFormInputElement.java +++ b/ch.sahits.model/src/ch/sahits/model/gui/IFormInputElement.java @@ -3,7 +3,6 @@ * This interface defines a class of the form * that accepts an input. * @author Andi Hotz - * TODO: Add methods for enable / disable visible / invisible */ public interface IFormInputElement extends IFormElement { /** @@ -26,4 +25,24 @@ * @return size of the input field */ public int getSize(); + /** + * Enable/Disable the input field for write access + * @param enable true to enable + */ + public void setEnable(boolean enable); + /** + * Check if the input field has write access + * @return true if write access is granted + */ + public boolean isEnabled(); + /** + * Set the visibility of the element + * @param visible true if the element is visible + */ + public void setVisible(boolean visible); + /** + * Check if the field is visible + * @return true if the field is visible + */ + public boolean isVisible(); }
--- a/ch.sahits.model/src/ch/sahits/model/gui/IFormLable.java +++ b/ch.sahits.model/src/ch/sahits/model/gui/IFormLable.java @@ -16,4 +16,14 @@ * @param label text of the label */ public void setText(String label); + /** + * Set the visibility of the element + * @param visible true if the element is visible + */ + public void setVisible(boolean visible); + /** + * Check if the field is visible + * @return true if the field is visible + */ + public boolean isVisible(); }