|
jACOB 2.7 API Documentation. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectSessionContext
de.tif.jacob.screen.IClientContext
public abstract class IClientContext
Client context in which an user action has been performed. A proper initialized instance of this class will be provided to all relevant GUI hooks, if a client performs a server request. Application programmers could/should use this abstract class to create user dialog windows in a client independent way.
| Field Summary | |
|---|---|
static java.lang.String |
RCS_ID
The internal revision control system id. |
static java.lang.String |
RCS_REV
The internal revision control system id in short form. |
| Method Summary | |
|---|---|
void |
clearApplication()
Completely resets the application object associated with the application window, i.e. this includes the reset off all application's domains. |
void |
clearDomain()
Resets the current domain. |
void |
clearForm()
Resets the current form. |
void |
clearForm(java.lang.String domainName,
java.lang.String formName)
Resets a specified form. |
abstract void |
clearGroup()
Resets the current group. |
abstract IAskDialog |
createAskDialog(java.lang.String question,
IAskDialogCallback callback)
|
abstract IAskDialog |
createAskDialog(java.lang.String question,
java.lang.String startValue,
IAskDialogCallback callback)
|
abstract IDocumentDialog |
createDocumentDialog(DataDocumentValue document)
Creates a document dialog to download or display the given document value. |
abstract IDocumentDialog |
createDocumentDialog(java.lang.String mimeType,
DataDocumentValue document)
Creates a document dialog to download or display the given document value. |
abstract IDocumentDialog |
createDocumentDialog(java.lang.String mimeType,
java.lang.String fileName,
byte[] content)
Creates a document dialog to download or display the given file content. |
abstract IExcelDialog |
createExcelDialog()
|
abstract IFormDialog |
createFormDialog(java.lang.String title,
FormLayout layout,
IFormDialogCallback callback)
|
abstract IGridTableDialog |
createGridTableDialog(IGuiElement anchor)
Creates a grid table dialog. |
abstract IGridTableDialog |
createGridTableDialog(IGuiElement anchor,
IGridTableDialogCallback callback)
Creates a grid table dialog. |
abstract IMessageDialog |
createMessageDialog(Message message)
|
abstract IMessageDialog |
createMessageDialog(java.lang.String message)
|
abstract IOkCancelDialog |
createOkCancelDialog(Message question,
IOkCancelDialogCallback callback)
|
abstract IOkCancelDialog |
createOkCancelDialog(java.lang.String question,
IOkCancelDialogCallback callback)
|
abstract IRecordTreeDialog |
createRecordTreeDialog(IGuiElement anchor,
IDataTableRecord record,
IRelationSet relationSet,
Filldirection filldirection,
IRecordTreeDialogCallback callback)
|
abstract IUploadDialog |
createUploadDialog(IUploadDialogCallback callback)
Creates a file upload dialog. |
abstract IUrlDialog |
createUrlDialog(java.lang.String url)
Creates a file URL dialog. |
IApplication |
getApplication()
Returns the application object. |
IDataBrowser |
getDataBrowser()
Returns the current data browser for the group in which the user action has been performed. |
IDataTable |
getDataTable()
Returns the current data table for the group in which the user action has been performed. |
IDomain |
getDomain()
Returns the current working domain. |
IDomain |
getDomain(java.lang.String domainName)
Returns the domain object specified by name. |
IForm |
getForm()
Returns the current form. |
IGroup |
getGroup()
Returns the current group. |
IBrowser |
getGUIBrowser()
Returns the search browser of the current group. |
IDataTableRecord |
getSelectedRecord()
Returns the selected data table record of the current group, i.e. the group in which the user action has been performed. |
Session |
getSession()
|
abstract boolean |
getShowSQL()
Internal method to check whether visualization of SQL request is switched on or off. |
void |
refreshGroup()
Refetchs the data element from the database of the current group. |
void |
setCurrentForm(java.lang.String formName)
Sets the current form, i.e. switches the form to be displayed. |
void |
setCurrentForm(java.lang.String domainName,
java.lang.String formName)
Sets the current form, i.e. switches the form to be displayed. |
void |
setDataBrowser(IDataBrowser browser)
Set the current data browser for the group in which the action has performed. |
abstract void |
setShowSQL(boolean enable)
Internal method to switch on/off visualization of SQL requests. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final transient java.lang.String RCS_ID
public static final transient java.lang.String RCS_REV
| Method Detail |
|---|
public abstract void setShowSQL(boolean enable)
enable - true to switch on, false to switch
offpublic abstract boolean getShowSQL()
true if switch on, false if switch
off
public abstract IRecordTreeDialog createRecordTreeDialog(IGuiElement anchor,
IDataTableRecord record,
IRelationSet relationSet,
Filldirection filldirection,
IRecordTreeDialogCallback callback)
throws java.lang.Exception
java.lang.Exception
public abstract IFormDialog createFormDialog(java.lang.String title,
FormLayout layout,
IFormDialogCallback callback)
public abstract IOkCancelDialog createOkCancelDialog(java.lang.String question,
IOkCancelDialogCallback callback)
public abstract IOkCancelDialog createOkCancelDialog(Message question,
IOkCancelDialogCallback callback)
public abstract IAskDialog createAskDialog(java.lang.String question,
IAskDialogCallback callback)
public abstract IAskDialog createAskDialog(java.lang.String question,
java.lang.String startValue,
IAskDialogCallback callback)
public abstract IUrlDialog createUrlDialog(java.lang.String url)
Either jACOB (application) internal or external web pages could be
displayed.
External URLs must start with "http://", otherwise the URL is treated as
internal and will be completed by means of "http://server:port/jacob/".
Examples:
| url | resulting URL |
| http://www.google.com | http://www.google.com |
| groupinfo.jsp | http://www.tarragon.de:8080/jacob/groupinfo.jsp |
| application/marketplace/1.0/index.html | http://www.tarragon.de:8080/jacob/application/marketplace/1.0/index.html |
url - the URL to the web page to display
public abstract IMessageDialog createMessageDialog(java.lang.String message)
public abstract IMessageDialog createMessageDialog(Message message)
public abstract IExcelDialog createExcelDialog()
public abstract IUploadDialog createUploadDialog(IUploadDialogCallback callback)
callback - the dialog callback
public abstract IDocumentDialog createDocumentDialog(DataDocumentValue document)
document - the document value to create dialog for
IDialog.show() to display the
dialog.IDataRecord.getDocumentValue(String)
public abstract IDocumentDialog createDocumentDialog(java.lang.String mimeType,
DataDocumentValue document)
mimeType - the mime type to use or null for default mime typedocument - the document value to create dialog for
IDialog.show() to display the
dialog.IDataRecord.getDocumentValue(String)
public abstract IDocumentDialog createDocumentDialog(java.lang.String mimeType,
java.lang.String fileName,
byte[] content)
mimeType - the mime type to use or null for default mime typefileName - the file namecontent - the file content
IDialog.show() to display the
dialog.public abstract IGridTableDialog createGridTableDialog(IGuiElement anchor)
anchor - the anchor GUI element
public abstract IGridTableDialog createGridTableDialog(IGuiElement anchor,
IGridTableDialogCallback callback)
anchor - the anchor GUI elementcallback - the dialog callback
public final IDataBrowser getDataBrowser()
throws java.lang.Exception
java.lang.Exception
public final void setDataBrowser(IDataBrowser browser)
throws java.lang.Exception
java.lang.Exception
public final IDataTable getDataTable()
throws java.lang.Exception
java.lang.Exception
public final IBrowser getGUIBrowser()
throws java.lang.Exception
java.lang.Exception
public final void clearApplication()
throws java.lang.Exception
java.lang.ExceptionclearDomain()
public final void clearDomain()
throws java.lang.Exception
java.lang.Exception
public final void clearForm()
throws java.lang.Exception
java.lang.Exception
public void clearForm(java.lang.String domainName,
java.lang.String formName)
throws java.lang.Exception
domainName - The parent domain of the form to resetformName - The name of the form to reset
java.lang.Exception
public abstract void clearGroup()
throws java.lang.Exception
java.lang.Exception
public void refreshGroup()
throws java.lang.Exception
java.lang.Exception
public IDataTableRecord getSelectedRecord()
throws java.lang.Exception
null if no
selected record exists
java.lang.Exception
public void setCurrentForm(java.lang.String formName)
throws java.lang.Exception
formName - the name of the form to display
java.lang.Exception - on any problem
public void setCurrentForm(java.lang.String domainName,
java.lang.String formName)
throws java.lang.Exception
domainName - the name of the domain which contains the form to displayformName - the name of the form to display
java.lang.Exception - on any problem, e.g. no such domain or form existspublic final IDomain getDomain()
public final IDomain getDomain(java.lang.String domainName)
throws java.lang.Exception
domainName - the name of the domain object to return
java.lang.Exception - on any problem, e.g. no such domain exists.public final IForm getForm()
public final IGroup getGroup()
public final IApplication getApplication()
public final Session getSession()
de.tif.jacob.core.SessionContext#getSession()
|
jACOB 2.7 API Documentation. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||