ch.sahits.model.gui
Interface IFormInputElement

All Superinterfaces:
IFormElement
All Known Subinterfaces:
IFormBaseList, IFormButton, IFormCheckbox, IFormCombo, IFormFileUpload, IFormHidden, IFormImageButton, IFormInput, IFormList, IFormPasswordInput, IFormRadioButton, IFormResetButton, IFormSubmitButton

public interface IFormInputElement
extends IFormElement

This interface defines a class of the form that accepts an input.

Author:
Andi Hotz

Method Summary
 java.lang.String getDefaultValue()
          Retrieve the default value for this element
 int getSize()
          Retrieve the size of the input field
 boolean isEnabled()
          Check if the input field has write access
 boolean isVisible()
          Check if the field is visible
 void setDefaultValue(java.lang.String value)
          Set the default value for this element
 void setEnable(boolean enable)
          Enable/Disable the input field for write access
 void setSize(int size)
          Set the size of the input field
 void setVisible(boolean visible)
          Set the visibility of the element
 
Methods inherited from interface ch.sahits.model.gui.IFormElement
getId, getName, getTooltip, setId, setName, setTooltip
 

Method Detail

getDefaultValue

java.lang.String getDefaultValue()
Retrieve the default value for this element

Returns:
elements default value

setDefaultValue

void setDefaultValue(java.lang.String value)
Set the default value for this element

Parameters:
value - default value of the element

setSize

void setSize(int size)
Set the size of the input field

Parameters:
size - of the input field

getSize

int getSize()
Retrieve the size of the input field

Returns:
size of the input field

setEnable

void setEnable(boolean enable)
Enable/Disable the input field for write access

Parameters:
enable - true to enable

isEnabled

boolean isEnabled()
Check if the input field has write access

Returns:
true if write access is granted

setVisible

void setVisible(boolean visible)
Set the visibility of the element

Parameters:
visible - true if the element is visible

isVisible

boolean isVisible()
Check if the field is visible

Returns:
true if the field is visible