|
OBEROn SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.oberon.client.common.Forms
public class Forms
Contains all static methods to manage OBEROn forms with SWT controls
| Field Summary | |
|---|---|
static java.lang.String[] |
regExpressions
Regular Expression Aliases for form fields: [ "USERNAME", "PASSWORD", "EMAIL", "WEB", "URL", "IP", "COLOR", "PHONE", "TIME", "PERC", "CREDIT-CARD" ] |
| Constructor Summary | |
|---|---|
Forms()
|
|
| Method Summary | |
|---|---|
static void |
clearSearchResults(java.lang.String formHTMLName,
ApplicationSession session)
Remove the last search result from the session |
static org.eclipse.swt.custom.ScrolledComposite |
createForm(org.eclipse.swt.widgets.Composite parent,
java.lang.String actionPage,
ObjectBase objlink,
Form form,
ApplicationRequest request)
Generates the SWT form panel according to the OBEROn Form definition and the object/link values |
static org.eclipse.swt.widgets.Composite |
createObjectMenu(org.eclipse.swt.widgets.Composite parent,
ApplicationSession session)
Creates the object contextual menu |
static org.eclipse.swt.custom.ScrolledComposite |
createSearchForm(org.eclipse.swt.widgets.Composite parent,
java.lang.String actionPage,
Form form,
ApplicationRequest request)
Generates the SWT search form panel according to the OBEROn Form definition |
static java.util.Comparator<?> |
displayTagComparator(java.lang.String formatTags,
java.util.Locale locale)
Returns the sort Comparator according to the format Tag |
static void |
fillObjectPopUpMenu(org.eclipse.swt.widgets.Menu menu,
org.eclipse.swt.widgets.Composite parent,
java.lang.String sID,
java.lang.String sLinkID,
ApplicationSession session)
|
static java.lang.String |
getErrorMessage(ApplicationSession session)
Checks and retrieves an error message for the latest operation from the session |
static java.lang.String |
getFormHTMLName(Form form)
Gets the form name removing the spaces and the '-' char |
static java.util.Vector<java.lang.String> |
getSearchResults(java.lang.String formHTMLName,
ApplicationSession session)
Retrieve the last search result from the session |
static java.lang.String |
getTranslatedValue(java.lang.String section,
java.lang.String keyFormat,
java.lang.String subKey,
Framework framework)
Returns a sub-keyword translation |
static ApplicationRequest |
prepareRequest(org.eclipse.swt.widgets.Widget form,
boolean clone)
|
static java.lang.String |
saveFormData(java.lang.String forwardPage,
ObjectBase objlink,
Form form,
ApplicationRequest request)
Update the object/link fields |
static java.lang.String |
searchObjects(Form form,
ApplicationRequest request)
Perform the search process according to the search filters |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String[] regExpressions
| Constructor Detail |
|---|
public Forms()
| Method Detail |
|---|
public static java.lang.String getTranslatedValue(java.lang.String section,
java.lang.String keyFormat,
java.lang.String subKey,
Framework framework)
throws java.lang.Exception
section - the dictionary sectionkeyFormat - the format string including the label tag that represents the keyword namesubKey - the sub-keyword nameframework - the current framework
java.lang.Exception
public static java.util.Comparator<?> displayTagComparator(java.lang.String formatTags,
java.util.Locale locale)
formatTags - format string including the item/column value format taglocale - current localepublic static java.lang.String getFormHTMLName(Form form)
public static org.eclipse.swt.custom.ScrolledComposite createForm(org.eclipse.swt.widgets.Composite parent,
java.lang.String actionPage,
ObjectBase objlink,
Form form,
ApplicationRequest request)
parent - the parent SWT widgetactionPage - the forward action pageobjlink - the ObjectObj or Link objectform - the Form administrative objectrequest - the Application request including the input parameters
public static org.eclipse.swt.custom.ScrolledComposite createSearchForm(org.eclipse.swt.widgets.Composite parent,
java.lang.String actionPage,
Form form,
ApplicationRequest request)
parent - the parent SWT widgetactionPage - the forward search action pageform - the {link @Form} administrative object with search filtersrequest - the Application request including the input parameters
public static java.lang.String saveFormData(java.lang.String forwardPage,
ObjectBase objlink,
Form form,
ApplicationRequest request)
throws java.lang.Exception
forwardPage - the forward pageobjlink - the ObjectObj or Link objectform - the Form administrative objectrequest - the Application request including the input parameters (field values)
java.lang.Exception
public static java.lang.String searchObjects(Form form,
ApplicationRequest request)
throws java.lang.Exception
form - the Form administrative objectrequest - the Application request including the input parameters (filter values)
java.lang.Exception
public static java.util.Vector<java.lang.String> getSearchResults(java.lang.String formHTMLName,
ApplicationSession session)
throws java.lang.Exception
formHTMLName - the search form namesession - current Application session
java.lang.Exception
public static void clearSearchResults(java.lang.String formHTMLName,
ApplicationSession session)
throws java.lang.Exception
formHTMLName - the search form namesession - current Application session
java.lang.Exception
public static ApplicationRequest prepareRequest(org.eclipse.swt.widgets.Widget form,
boolean clone)
public static java.lang.String getErrorMessage(ApplicationSession session)
public static org.eclipse.swt.widgets.Composite createObjectMenu(org.eclipse.swt.widgets.Composite parent,
ApplicationSession session)
parent - the SWT widget parentsession - the Application session
public static void fillObjectPopUpMenu(org.eclipse.swt.widgets.Menu menu,
org.eclipse.swt.widgets.Composite parent,
java.lang.String sID,
java.lang.String sLinkID,
ApplicationSession session)
throws java.lang.Exception
java.lang.Exception
|
OBEROn SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||