|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.sahits.codegen.java.gui.util.GUIHelper
public class GUIHelper
This is a helper class for GUIs
| Constructor Summary | |
|---|---|
GUIHelper(IJavaForm _form)
Initialize the form |
|
| Method Summary | |
|---|---|
java.util.List<IFormGroup> |
containerFields()
Retrieve a list of all Group fields |
IJavaForm |
convertOneColumnLayout()
Since a on column layout is not encapsuled in groups the elements are put into groups. |
java.lang.String |
getBrowseButtonName(IFormFileUpload elem)
Compute the name of the browse button of the file browse element |
EGUIGroup |
getGroupType(IFormGroup group)
Translate the contents of the group into an enumeration element |
java.util.List<IFormHidden> |
getHiddenFields()
Retrieve all hidden fields of the form or in a group of the form one level down |
int |
getNumberOfColums()
Convert the EFormLayout into a number |
IFormGroup |
getParentGroup(IFormElement e)
Retrieve the parent group of the element |
boolean |
hasButton()
Check if there is a button |
boolean |
hasCheckBox()
Check if there is a check box |
boolean |
hasCombo()
Check if there is a combo box |
boolean |
hasFileBrowse()
Check if there is a File browser field |
boolean |
hasHiddenFields()
Check if the form has hidden fields |
boolean |
hasImageButton()
Check if there is an image button |
boolean |
hasInputField()
Check if there is a input field |
boolean |
hasList()
Check if there is a list |
boolean |
hasPasswordField()
Check if there is a password field |
boolean |
hasRadioButton()
Check if there is a radio button |
boolean |
hasResetButton()
Check if there is a reset button |
boolean |
hasTextArea()
Check if there is a text input area |
java.util.List<IFormElement> |
inputFields()
Retrieve a list of all input elements |
boolean |
isCheckBoxGroup(IFormGroup group)
Check if the group is a check box group |
boolean |
isFileUpload(IFormGroup group)
Check whether the group contains a file upload field |
boolean |
isFormGroup(IFormGroup group)
Check if the group is a form group |
boolean |
isRadioGroup(IFormGroup group)
Check if the group is a radio button group |
boolean |
isValidGroup(IFormGroup group)
Check if the group is a valid group |
java.lang.String |
toFileFilter(java.lang.String fileType)
Convert to a file-type |
java.lang.String |
toName(IFormElement element)
Convert the name of an element into a variable name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GUIHelper(IJavaForm _form)
_form - | Method Detail |
|---|
public final boolean hasHiddenFields()
public final java.util.List<IFormHidden> getHiddenFields()
public final java.lang.String toFileFilter(java.lang.String fileType)
fileType - string that is to be converted
public final int getNumberOfColums()
EFormLayout into a number
public final boolean hasInputField()
public final boolean hasPasswordField()
public final boolean hasTextArea()
public final boolean hasCombo()
public final boolean hasFileBrowse()
public final boolean hasList()
public final boolean hasButton()
public final boolean hasImageButton()
public final boolean hasResetButton()
public final boolean hasRadioButton()
public final boolean hasCheckBox()
public final boolean isValidGroup(IFormGroup group)
group - to be checked
isCheckBoxGroup(IFormGroup),
isFormGroup(IFormGroup),
isRadioGroup(IFormGroup)public final boolean isRadioGroup(IFormGroup group)
group - to be checked
IFormRadioButtonpublic final boolean isCheckBoxGroup(IFormGroup group)
group - to be checked
IFormCheckboxpublic final boolean isFormGroup(IFormGroup group)
group - to be checked
public final java.lang.String toName(IFormElement element)
element - to be converted
public final boolean isFileUpload(IFormGroup group)
group - to be checked
IFormFileUpload element is foundpublic final java.util.List<IFormElement> inputFields()
public final java.util.List<IFormGroup> containerFields()
public final EGUIGroup getGroupType(IFormGroup group)
group - to be translated
EGUIGroup constant or null if the element could not be translatedpublic final java.lang.String getBrowseButtonName(IFormFileUpload elem)
elem - IFormFileUpload element
public final IJavaForm convertOneColumnLayout()
public final IFormGroup getParentGroup(IFormElement e)
e - Element whose parent is searched
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||