|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecte4s.util.E4Object
e4s.html.E4HtmlObject
e4s.html.E4HtmlElementGeneral
e4s.html.E4HtmlElement
e4s.html.editing.E4EditingElement
public class E4EditingElement
Element that can be used to display values out of an database table and modify values.
Supports changing of sorting columns, layout definitions, next/previous page, search capabilities,
adding/modify/delete records. Used within E4EditingFrameset.
First, start to define a frameset using E4EditingFrameset. The frameset contains the
E4EditingElement. Some general settings are defined in the property file, using E4EditingSettings
to retrieve them.
When data is displayed out of a database table (using the interface E4DBSelect_Intf, then it will be
displayed using some kind of a table view. Either the data will be displayed as it is contained in the database table,
or you can use a Formatter (E4EditingFormatter_Intf to distinct between what will be displayed
and what is the real data (e.g. real data = "N", "W", "S", "E" but display will be "North", "West", ..). When performing a
search, this will be treatened vice versa and the user gets a combo-box selecting "North", "West", .. but the database
query results in "N", "W". A Formatter is optional.
The functionality is covered in modules E4ModuleEditingHandling01 and E4ModuleEditingHandling02.
The first module contains more or less frame handling and list handling, including searching. The second module
contains functionality for modifying records. It is not required to use this functionality of the second module, either
because it is not needed or it will be overwritten by your own functions. If the module is used, then you can make use of the
AEP (AEP_EditingDataDescriptor_Intf - Application Exit Point) to become involved before or after an operation such
as deleting or inserting. The E4EditingDataDescriptor can be used, to define if any and which functions (@link e4s.html.E4Method)
shall be involved on editing functionality. Those gives you the flexibility to use your own functions. If you use your own functions, the AEP_EditingDataDescriptor_Intf
will have no effect. Both, AEP_EditingDataDescriptor_Intf and E4EditingDataDescriptor are optional. The E4EditingDataDescriptor defines
more functionality, such as default values or main index fields - but never any layout issues.
The {e4s.html.editing.E4EditingDefinitionDataField} is more or less an internal used class, it is used to hold
information about display (layouted) columns and database columns, including label definitions and visibility definitions.
These values can be set using the environment at runtime, and they will be stored on the local file system using E4EditingPersistance.
E4EditingFrameset.getEditingElement(),
E4ModuleEditingHandling01,
E4ModuleEditingHandling02,
E4EditingSettings,
AEP_EditingDataDescriptor_Intf,
AEP_UserDefFunction_Intf,
e4s.html.editing.EditingDefinition_Intf,
E4EditingDataDescriptor,
E4SubEditingBODY,
E4DBSelect_Intf,
Example_Editing_01.java
| Nested Class Summary | |
|---|---|
static class |
E4EditingElement.E4EditingElementAdditionalButton
|
static class |
E4EditingElement.E4EditingElementOnlyEditing
Covers parameters and the editing mode that enable to use ONLY the editing frameset, without having any navigation frames or selection table. |
| Field Summary | |
|---|---|
static E4Color |
DEFAULT_TOOLBAR_COLOR
|
static java.lang.String |
JS_NAME_DELETE
Name of the Java-Script used for editing (add, modify) a database record. |
static java.lang.String |
JS_NAME_DUPLICATE
Name of the Java-Script used for duplicating a database record. |
static java.lang.String |
JS_NAME_EDIT
Name of the Java-Script used for editing (add, modify) a database record. |
static java.lang.String |
JS_NAME_USERDEF
Name of the Java-Script used for editing (add, modify) a database record. |
static int |
MAX_BLOCK_LENGTH
The maximum block length. |
| Fields inherited from class e4s.html.E4HtmlElementGeneral |
|---|
m_elements, m_needed_scripts |
| Fields inherited from class e4s.html.E4HtmlObject |
|---|
m_parent_e4sID |
| Fields inherited from class e4s.util.E4Object |
|---|
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET |
| Constructor Summary | |
|---|---|
E4EditingElement(java.lang.String persistantObjId,
E4ServletImplementation_Intf servlet)
|
|
E4EditingElement(java.lang.String persistantObjId,
E4ServletImplementation_Intf servlet,
E4EditingDataDescriptor descriptor)
|
|
| Method Summary | |
|---|---|
void |
addAdditionalButton(E4EditingElement.E4EditingElementAdditionalButton a)
|
void |
addAdditionalButton(E4Method mref,
IMG image,
java.lang.String alt)
|
void |
addAdditionalParameters(E4CgiParams params,
E4ServletImplementation_Intf servlet)
When the sort (or similar other functions) are called, pass those parameters to the called method. |
long |
calculateRowCount()
|
boolean |
canHaveFreeFields()
|
void |
collectScripts(E4ScriptsVec v,
E4ServletImplementation_Intf servlet)
Append the current script to the Vector, each script is identified by a name and can only appear onece in the Vector. |
void |
collectTranslationsForEditing(E4TranslationsVec v,
E4ServletImplementation_Intf servlet)
Build a list (Vector) with translation texts used so far during display of this page. |
int |
countColumns()
|
E4Fieldset |
create_search_FIELDSET(FORM form,
E4CgiParams additional,
E4ApplObj_Intf applobj)
|
E4Fieldset |
createFIELDSET(FORM form,
E4DBColumnInfo[] cols)
|
E4ID |
E4ID()
Get the E4ID of the object. |
void |
enableLayoutProperties(boolean mode)
Disable the layout properties (show all columns with their default names as labels). |
E4EditingDefinitionDataField |
findDataField(E4DBColumnInfo cInfo)
|
E4EditingDefinitionDataField |
findDataField(E4DBColumnName cName)
|
E4EditingFormatter_Intf |
findFormatter(java.lang.Class clazz)
|
E4EditingFormatter_Intf |
findFormatter(E4DBColumnName cName)
|
E4EditingFormatter_Intf |
findFormatter(java.lang.String classname)
|
E4Method |
getActionSearch()
|
E4Method |
getActionSearchReset()
|
int |
getActualBlock()
Get the current (actual) block. |
E4EditingElement.E4EditingElementAdditionalButton[] |
getAdditionalButtons()
|
E4CgiParams |
getAdditionalParameters()
|
E4Label_Intf |
getCaptionText()
|
E4Color |
getColor_ListBorder()
|
E4Color |
getColor_ResizeArea()
|
E4Color |
getColor_ToolbarBackground()
|
E4Color |
getColor_ToolbarCaption()
|
E4EditingDataDescriptor |
getDataDescriptor()
|
int |
getDisplayBlockLength()
Get definition for the display block length. |
boolean |
getDisplayIndex()
Get the state for the display of an index table (one entry for each page). |
boolean |
getDisplayRowCounter()
Get the state for display of a row-counter. |
E4EditingPersistance.TableLayout |
getEditingColumns()
Get the editing columns defined. |
E4EditingElement.E4EditingElementOnlyEditing |
getEditingOnly()
This medthod disables the selection and the navigation and just opens one editing area |
E4DBSelect_Intf |
getEditingSelection()
Get the fundamental object that is responsible for the selection. |
int |
getFirstBlock()
Get the first block. |
java.util.Enumeration |
getFormatter()
|
IMG |
getImageAdd(boolean active)
|
IMG |
getImageCancel(boolean active)
|
IMG |
getImageLast(boolean active)
|
IMG |
getImageNext(boolean active)
|
IMG |
getImagePrev(boolean active)
|
IMG |
getImageReload(boolean active)
|
IMG |
getImageSave(boolean active)
|
IMG |
getImageSearch(boolean active)
|
IMG |
getImageSearchReset(boolean active)
|
IMG |
getImageSettings()
|
IMG |
getImageStart(boolean active)
|
boolean |
getIncludeFreefieldsInSearch()
|
E4JavaScript |
getJsCancel()
|
E4JavaScript |
getJsSave()
|
Language |
getLanguage()
|
int |
getLastBlock()
Get the last available block. |
E4SortedList |
getList()
Get the current E4SortedList element that was initially created when
the object was created and changed by every #readBlock(). |
E4Method |
getMethodAdd()
Get the method defined to add a record. |
E4Method |
getMethodDelete()
Get the method defined to delete a record. |
E4Method |
getMethodEdit()
Get the method defined to edit a record. |
int[] |
getNumRows4Display()
|
java.lang.String |
getObjectID()
Get the ID of the Object, used for object persistance. |
E4DBTableName |
getTableName()
|
int |
getTranslationType()
|
java.lang.String |
getXmlLayoutFile()
Get the name for the XML descriptor file. |
boolean |
hasUserdefinedFunctions()
Determine, if userdefined functions are declared within the E4EditingDataDescriptor. |
void |
initDisplayBlockLength()
|
boolean |
isAjax()
|
boolean |
isDataAvailable()
Is data available based on the latest query? |
boolean |
isFilterDefined()
|
boolean |
isFramesetVertical()
Get the frameset layout of this editing element. |
void |
paintIndex(BODY body,
E4EventHandlerA moveSpecified)
Get the state for the display of an index table (one entry for each page). |
boolean |
readBlock(E4ServletImplementation_Intf servlet)
Read the current block. |
void |
resetFormatter()
|
void |
resetSearchFilter()
Resets any predefined search criteria. |
void |
setActionSearch(E4Method mref)
|
void |
setActionSearchReset(E4Method mref)
|
void |
setActionSort(E4Method mref,
E4ServletImplementation_Intf servlet)
|
void |
setActualBlock(int block)
Set the current (actual) block. |
void |
setCaptionText(E4Label_Intf text)
|
void |
setCaptionText(java.lang.String text)
|
void |
setColor_ListBorder(E4Color color)
|
void |
setColor_ResizeArea(E4Color color)
|
void |
setColor_ToolbarBackground(E4Color color)
|
void |
setColor_ToolbarCaption(E4Color color)
|
void |
setDataDescriptor(E4EditingDataDescriptor descriptor)
|
void |
setDisplayBlockLength(int length)
Set the block length for display. |
void |
setDisplayIndex(boolean mode)
Enables the display of an index table (one entry for each page). |
void |
setDisplayRowCounter(boolean mode)
Enables the display of a row-counter. |
void |
setEditingColumns(java.util.Vector vec)
Set the editing columns defined. |
void |
setEditingOnly(E4EditingElement.E4EditingElementOnlyEditing params)
This medthod disables the selection and the navigation and just opens one editing area |
void |
setEditingSelection(E4DBSelect_Intf selector)
Sets the selection object, that is the object that contains data and enables filtering and sorting. |
void |
setFormatter(E4EditingFormatter_Intf formatter)
|
void |
setFramesetVertical(boolean mode)
Set the frameset layout of this editing element. |
void |
setImageAdd(IMG add,
boolean active)
|
void |
setImageCancel(IMG cancel,
boolean active)
|
void |
setImageLast(IMG last,
boolean active)
|
void |
setImageNext(IMG next,
boolean active)
|
void |
setImagePrev(IMG prev,
boolean active)
|
void |
setImageReload(IMG reload,
boolean active)
|
void |
setImageSave(IMG save,
boolean active)
|
void |
setImageSearch(IMG search,
boolean active)
|
void |
setImageSearchReset(IMG search_reset,
boolean active)
|
void |
setImageSettings(IMG settings)
|
void |
setImageStart(IMG start,
boolean active)
|
void |
setIncludeFreefieldsInSearch(boolean include_freefields)
|
void |
setJsCanBranch(java.lang.String js_name_can_branch)
|
void |
setNumRows4Display(int[] numrows)
|
void |
setSearchFilter(E4CgiParams params,
E4ApplObj_Intf applobj)
Handling of search parameters used to define or rebuild a filter criteria. |
void |
setSearchFilter2(E4ApplObj_Intf applobj)
Rebuild a filter criteria defined previous. |
void |
setTranslationType(int translation_type)
|
void |
setXmlLayoutFile(java.lang.String filename)
Optionally, sets the name for the XML descriptor file. |
void |
sortBy(E4DBColumnName column,
boolean descending)
Set the sort column of the selection object. |
void |
toHtml(E4StringBufferHtml buf,
E4CgiParams params,
E4ServletImplementation_Intf servlet)
|
void |
toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet)
Create the HTML output for this element. |
java.lang.String |
toString()
|
void |
useAjax(boolean mode)
|
boolean |
useLayoutProperties()
Get the state of the layout properties. |
| Methods inherited from class e4s.html.E4HtmlElement |
|---|
_getSVNVersionString, addElement, addElement, addElement, copyElements, print |
| Methods inherited from class e4s.html.E4HtmlObject |
|---|
E4ID, set_e4sID |
| Methods inherited from class e4s.util.E4Object |
|---|
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface e4s.html.E4HtmlElement_Intf |
|---|
addScript, addScript, addScript, collectStylesForEditing, debugToString, findElement, findElement, getElements, getElementsVec, getField, getId, getStringContent, isContentClass, removeAll, removeElementById, removeElements, set_e4sID, setId, setReadOnly, setValue, toHtml_hidden, validate |
| Field Detail |
|---|
public static final E4Color DEFAULT_TOOLBAR_COLOR
public static final int MAX_BLOCK_LENGTH
setDisplayBlockLength(int),
Constant Field Valuespublic static final java.lang.String JS_NAME_EDIT
JS_NAME_DELETE,
e4s.html.application.sysmodule.E4ModuleEditingHandling02#editRecord(e4s.html.HTML,e4s.html.E4CgiParams),
e4s.html.application.sysmodule.E4ModuleEditingHandling02#addRecord(e4s.html.HTML,e4s.html.E4CgiParams),
Constant Field Valuespublic static final java.lang.String JS_NAME_DELETE
JS_NAME_EDIT,
e4s.html.application.sysmodule.E4ModuleEditingHandling02#deleteRecord(e4s.html.HTML,e4s.html.E4CgiParams),
Constant Field Valuespublic static final java.lang.String JS_NAME_DUPLICATE
JS_NAME_EDIT,
e4s.html.application.sysmodule.E4ModuleEditingHandling02#duplicateRecord(e4s.html.HTML,e4s.html.E4CgiParams),
Constant Field Valuespublic static final java.lang.String JS_NAME_USERDEF
JS_NAME_EDIT,
E4EditingDataDescriptor.setUserDefMethod(e4s.html.E4Method, e4s.html.IMG, java.lang.String),
Constant Field Values| Constructor Detail |
|---|
public E4EditingElement(java.lang.String persistantObjId,
E4ServletImplementation_Intf servlet,
E4EditingDataDescriptor descriptor)
public E4EditingElement(java.lang.String persistantObjId,
E4ServletImplementation_Intf servlet)
| Method Detail |
|---|
public void useAjax(boolean mode)
public boolean isAjax()
public E4DBSelect_Intf getEditingSelection()
#setEditingSelection()
public void sortBy(E4DBColumnName column,
boolean descending)
column - the column to be used for searchingdescending - true = sort Z..A, false sort A..Z
public void setEditingSelection(E4DBSelect_Intf selector)
throws java.lang.Exception
selector - a selection object
java.lang.ExceptiongetEditingSelection()public E4EditingPersistance.TableLayout getEditingColumns()
e4s.html.editing.Editing_TableColumn objects.
Each object specifies one (display-)table column, each column can contain one or several
objects of class e4s.html.editing.Editing_DataField which is related to the
(database-)column.setEditingColumns(java.util.Vector)
public void setEditingColumns(java.util.Vector vec)
throws java.lang.Exception
vec - a Vector containing e4s.html.editing.Editing_TableColumn objects.
Each object specifies one (display-)table column, each column can contain one or several
objects of class e4s.html.editing.Editing_DataField which is related to the
(database-)column.
java.lang.ExceptiongetEditingColumns()
public boolean readBlock(E4ServletImplementation_Intf servlet)
throws java.lang.Exception
setActualBlock(int), getActualBlock().
When the current block is read by this function, this means that a database access will be performed,
skipping some records before the current block and reading some records within the current block up to getDisplayBlockLength() records.
If a search was defined, then only the records matching that search will be read.
The E4SortedList-Element (getList() will be filled with actual data, including to define buttons for
functionality such as delete/edit of records.
java.lang.ExceptiongetActualBlock(),
setActualBlock(int),
getDisplayBlockLength(),
getLastBlock(),
getList()public E4Method getMethodEdit()
E4EditingDataDescriptor and there
is a E4EditingDataDescriptor required to define this method.
E4EditingDataDescriptor is defined or if there is no
method for editing defined within this descriptor.getMethodAdd(),
getMethodDelete(),
getDataDescriptor()public E4Method getMethodAdd()
E4EditingDataDescriptor and there
is a E4EditingDataDescriptor required to define this method.
E4EditingDataDescriptor is defined or if there is no
method for adding defined within this descriptor.#getMethodEditing(),
getMethodDelete(),
getDataDescriptor()public E4JavaScript getJsSave()
public E4JavaScript getJsCancel()
public E4Method getMethodDelete()
E4EditingDataDescriptor and there
is a E4EditingDataDescriptor required to define this method.
E4EditingDataDescriptor is defined or if there is no
method for deleting defined within this descriptor.getMethodAdd(),
getMethodEdit(),
getDataDescriptor()public int countColumns()
public void setColor_ResizeArea(E4Color color)
public E4Color getColor_ResizeArea()
public void setColor_ToolbarBackground(E4Color color)
public E4Color getColor_ToolbarBackground()
public void setColor_ToolbarCaption(E4Color color)
public E4Color getColor_ToolbarCaption()
public E4Color getColor_ListBorder()
public void setColor_ListBorder(E4Color color)
public void setCaptionText(java.lang.String text)
public void setCaptionText(E4Label_Intf text)
public E4Label_Intf getCaptionText()
public void initDisplayBlockLength()
public void setDisplayBlockLength(int length)
length - the length of the block,1 <= length <= {@link #MAX_BLOCK_LENGTH)getDisplayBlockLength(),
initDisplayBlockLength()public int getDisplayBlockLength()
E4EditingSettings.DISPLAY_BLOCK_LENGTH,
E4EditingSettings.getDisplayBlockLength(),
setDisplayBlockLength(int)public int getActualBlock()
getFirstBlock() <= return value <= getLastBlock()getFirstBlock(),
getLastBlock(),
setActualBlock(int),
#readBlock()public void setActualBlock(int block)
block - a value for the actual block. getFirstBlock() <= block <= getLastBlock()getFirstBlock(),
getLastBlock(),
getActualBlock(),
#readBlock()public E4SortedList getList()
E4SortedList element that was initially created when
the object was created and changed by every #readBlock().
#readBlock()public IMG getImageAdd(boolean active)
public IMG getImageSave(boolean active)
public IMG getImageCancel(boolean active)
public IMG getImagePrev(boolean active)
public IMG getImageNext(boolean active)
public IMG getImageStart(boolean active)
public IMG getImageLast(boolean active)
public IMG getImageReload(boolean active)
public IMG getImageSettings()
public IMG getImageSearch(boolean active)
public IMG getImageSearchReset(boolean active)
public void setImageAdd(IMG add,
boolean active)
public void setImageSave(IMG save,
boolean active)
public void setImageCancel(IMG cancel,
boolean active)
public void setImagePrev(IMG prev,
boolean active)
public void setImageNext(IMG next,
boolean active)
public void setImageStart(IMG start,
boolean active)
public void setImageLast(IMG last,
boolean active)
public void setImageReload(IMG reload,
boolean active)
public void setImageSettings(IMG settings)
public void setImageSearch(IMG search,
boolean active)
public void setImageSearchReset(IMG search_reset,
boolean active)
public void setActionSort(E4Method mref,
E4ServletImplementation_Intf servlet)
public void setActionSearch(E4Method mref)
public void setActionSearchReset(E4Method mref)
public E4Method getActionSearch()
public E4Method getActionSearchReset()
public void setFormatter(E4EditingFormatter_Intf formatter)
public java.util.Enumeration getFormatter()
public E4EditingFormatter_Intf findFormatter(E4DBColumnName cName)
throws java.lang.Exception
java.lang.Exception
public E4EditingFormatter_Intf findFormatter(java.lang.Class clazz)
throws java.lang.Exception
java.lang.Exception
public E4EditingFormatter_Intf findFormatter(java.lang.String classname)
throws java.lang.Exception
java.lang.Exceptionpublic void resetFormatter()
public E4Fieldset createFIELDSET(FORM form,
E4DBColumnInfo[] cols)
throws java.lang.Exception
java.lang.Exception
public E4EditingDefinitionDataField findDataField(E4DBColumnInfo cInfo)
throws java.lang.Exception
java.lang.Exception
public E4EditingDefinitionDataField findDataField(E4DBColumnName cName)
throws java.lang.Exception
java.lang.Exception
public E4Fieldset create_search_FIELDSET(FORM form,
E4CgiParams additional,
E4ApplObj_Intf applobj)
throws java.lang.Exception
java.lang.Exception
public void setSearchFilter2(E4ApplObj_Intf applobj)
throws java.lang.Exception
e4s.application.sysmodule.editing.E4ModuleEditingHandling01#searchExecute())
and store them in the editing columns definition, or in the case that this
variable is null, then use the previous values out of the column definition
which enables a subsequent setting of this filter.
java.lang.Exception#setSearchFilter(e4s.html.E4CgiParams),
resetSearchFilter(),
e4s.application.sysmodule.editing.E4ModuleEditingHandling01#searchPrepare(),
e4s.application.sysmodule.editing.E4ModuleEditingHandling01#searchExecute()
public void resetSearchFilter()
throws java.lang.Exception
java.lang.Exception#setSearchFilter( e4s.html.E4CgiParams)
public void setSearchFilter(E4CgiParams params,
E4ApplObj_Intf applobj)
throws java.lang.Exception
e4s.application.sysmodule.editing.E4ModuleEditingHandling01#searchExecute())
and store them in the editing columns definition, or in the case that this
variable is null, then use the previous values out of the column definition
which enables a subsequent setting of this filter.
params - the parameters, one for each search field or null to use previous stored parameters
java.lang.Exception#setSearchFilter(e4s.html.E4CgiParams),
resetSearchFilter(),
E4ModuleEditingHandling01.searchPrepare,
E4ModuleEditingHandling01.searchExecutepublic boolean isFilterDefined()
public long calculateRowCount()
throws E4DBException
E4DBExceptionpublic int getFirstBlock()
getLastBlock(),
getActualBlock()
public int getLastBlock()
throws E4DBException
getDisplayBlockLength()), but it should not be empty.
E4DBExceptiongetFirstBlock(),
getActualBlock()public void setDisplayRowCounter(boolean mode)
mode - enables (true) or disables (false) the display of the row countergetDisplayRowCounter()public boolean getDisplayRowCounter()
setDisplayRowCounter(boolean)public void setDisplayIndex(boolean mode)
mode - enables (true) or disables (false) the display of the indexgetDisplayIndex(),
paintIndex(e4s.html.BODY,e4s.html.E4EventHandlerA),
E4EditingFrameset.setDisplayIndex(boolean),
e4s.application.sysmodule.editing.E4ModuleEditingHandling01#moveSelectedpublic boolean getDisplayIndex()
setDisplayIndex(boolean),
paintIndex(e4s.html.BODY,e4s.html.E4EventHandlerA),
E4EditingFrameset.setDisplayIndex(boolean),
e4s.application.sysmodule.editing.E4ModuleEditingHandling01#moveSelected
public void paintIndex(BODY body,
E4EventHandlerA moveSpecified)
throws java.lang.Exception
body - the structure where the output goes tomoveSpecified - a function handling the block to be displayedsessionId - the sessionId of the E4EditingElement
java.lang.ExceptiongetDisplayIndex(),
setDisplayIndex(boolean),
E4EditingFrameset.setDisplayIndex(boolean),
E4ModuleEditingHandling01.moveSpecified(e4s.html.HTML,e4s.html.E4CgiParams),
E4ModuleEditingHandling01.PARAM_GOTOpublic void setDataDescriptor(E4EditingDataDescriptor descriptor)
public E4EditingDataDescriptor getDataDescriptor()
public E4ID E4ID()
E4HtmlObject
E4ID in class E4HtmlObjectE4HtmlObject.E4ID(String),
E4HtmlObject.set_e4sID(e4s.util.E4ID)public boolean hasUserdefinedFunctions()
E4EditingDataDescriptor.
E4EditingDataDescriptor.getUserDefMethods()public void enableLayoutProperties(boolean mode)
true - means enabled (which is the default), and false means disabled#hasLayoutProperties(),
getXmlLayoutFile()public boolean useLayoutProperties()
enableLayoutProperties(boolean),
getTranslationType()public void setTranslationType(int translation_type)
public int getTranslationType()
public void collectTranslationsForEditing(E4TranslationsVec v,
E4ServletImplementation_Intf servlet)
E4HtmlElementGeneralE4Label.
collectTranslationsForEditing in interface E4HtmlElement_IntfcollectTranslationsForEditing in class E4HtmlElementGeneralv - the Vector where the styles will be collected, may not be nullservlet - the current servlet instanceE4Label_Intf
public void toHtml(E4StringBufferHtml buf,
E4CgiParams params,
E4ServletImplementation_Intf servlet)
throws java.lang.Exception
java.lang.Exception
public void toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet)
throws java.lang.Exception
E4HtmlElement_IntfE4HtmlElement_Intf.toHtml(e4s.util.E4StringBufferHtml, e4s.servlet.E4ServletImplementation_Intf) function to generate output of those
objects which becomes appended. Normally, there is no need to call this function anyway,
and this also might result in side effects of too-early relasing of objects in some cases.
This function is called by E4ServletImplementation_Intf.write(e4s.html.E4HtmlElement)
on the top level HTML element (common this is a HTML
or BODY element) and branches down to all child elements.
toHtml in interface E4HtmlElement_IntftoHtml in class E4HtmlElementGeneralservlet - the servlet environment currently running in
java.lang.Exception
public void addAdditionalParameters(E4CgiParams params,
E4ServletImplementation_Intf servlet)
params - parameters to be added, a value of null resets all the additional parameters.
Please note, that parameters are not added, they are treatened as a whole block
as defined in the param variable. Added means adding this to the Java Script.e4s.html.list.E4SortedList#addAdditionalParameters()public E4CgiParams getAdditionalParameters()
public void collectScripts(E4ScriptsVec v,
E4ServletImplementation_Intf servlet)
collectScripts in interface E4HtmlElement_IntfcollectScripts in class E4HtmlElementGeneralv - the Vector where scripts are added.servlet - the servlet contextE4JavaScriptpublic java.lang.String getObjectID()
getObjectID in interface E4SessionObject_IntfE4ServletImplementation_Intf.getSessionObject(String)public void setJsCanBranch(java.lang.String js_name_can_branch)
public Language getLanguage()
public E4DBTableName getTableName()
public boolean isDataAvailable()
public boolean isFramesetVertical()
setFramesetVertical(boolean).
setFramesetVertical(boolean)public void setFramesetVertical(boolean mode)
mode - true (default) uses the vertical framesetisFramesetVertical()public void setXmlLayoutFile(java.lang.String filename)
getXmlLayoutFile(),
E4EditingPersistance.getXmlFilename(e4s.html.editing.E4EditingElement)public java.lang.String getXmlLayoutFile()
setXmlLayoutFile(String).
setXmlLayoutFile(String),
#hasLayoutProperties(),
E4EditingPersistance.getXmlFilename(e4s.html.editing.E4EditingElement)public int[] getNumRows4Display()
public boolean getIncludeFreefieldsInSearch()
public boolean canHaveFreeFields()
public void setNumRows4Display(int[] numrows)
public void setIncludeFreefieldsInSearch(boolean include_freefields)
public java.lang.String toString()
toString in class E4Objectpublic void setEditingOnly(E4EditingElement.E4EditingElementOnlyEditing params)
getEditingOnly()
public void addAdditionalButton(E4Method mref,
IMG image,
java.lang.String alt)
public E4EditingElement.E4EditingElementAdditionalButton[] getAdditionalButtons()
public void addAdditionalButton(E4EditingElement.E4EditingElementAdditionalButton a)
public E4EditingElement.E4EditingElementOnlyEditing getEditingOnly()
#setEditingOnly()
|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||