|
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.FRAMESET
e4s.html.editing.E4EditingFrameset
public class E4EditingFrameset
Provides a frameset for editing of database table contents, making use of E4EditingElement.
A detailed description can be found at E4EditingElement.
Example_Editing_02.java
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class e4s.html.FRAMESET |
|---|
FRAMESET.E4FrameException |
| Field Summary | |
|---|---|
static int |
TOOLBAR_FRAME_HEIGHT
Frame height for the toolbar. |
| Fields inherited from class e4s.html.FRAMESET |
|---|
_FRAMESET_COLS, _FRAMESET_ROWS, COLS, ROWS, TIMEOUT_KEEPALIVE_REFRESH |
| 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 | |
|---|---|
E4EditingFrameset(E4DBTableName persistantObjId,
E4ServletImplementation_Intf servlet)
|
|
E4EditingFrameset(E4ID parent_id,
E4DBTableName persistantObjId,
E4ServletImplementation_Intf servlet)
|
|
E4EditingFrameset(E4ID parent_id,
E4String persistantObjId,
E4ServletImplementation_Intf servlet)
|
|
E4EditingFrameset(E4ID parent_id,
java.lang.String persistantObjId,
E4ServletImplementation_Intf servlet)
|
|
E4EditingFrameset(E4ServletImplementation_Intf servlet)
Create an editing frameset which uses an 'E' followed by an incremental integer value as identifier. |
|
E4EditingFrameset(E4String persistantObjId,
E4ServletImplementation_Intf servlet)
|
|
E4EditingFrameset(java.lang.String persistantObjId,
E4ServletImplementation_Intf servlet)
Create an editing frameset which uses a specified identifier. |
|
| Method Summary | |
|---|---|
static java.lang.String |
_getSVNVersionString()
Get version info string from subversion. |
void |
addAdditionalButton(E4Method mref,
IMG image,
java.lang.String alt)
|
void |
collectTranslationsForEditing(E4TranslationsVec v,
E4ServletImplementation_Intf servlet)
Build a list (Vector) with translation texts used so far during display of this page. |
E4EditingDataDescriptor |
createDataDescriptor()
Create and associate the specified E4EditingDataDescriptor with the E4EditingElement. |
void |
enableLayoutProperties(boolean mode)
Disable the layout properties (show all columns with their default names as labels). |
E4EditingElement |
getEditingElement()
|
java.lang.String |
getXmlLayoutFile()
Get the name for the XML descriptor file. |
boolean |
isAjax()
|
boolean |
isFramesetVertical()
Get the frameset layout of this editing element. |
void |
resetFormatter()
|
void |
setActionSearch(E4Method mref)
|
void |
setActionSearchReset(E4Method mref)
|
void |
setActionSort(E4Method mref,
E4ServletImplementation_Intf servlet)
|
void |
setAEP_EditingDataDescriptor(AEP_EditingDataDescriptor_Intf aep)
Creates a descriptor and sets the AEP. |
void |
setCaptionText(E4Label_Intf text)
Define the caption text for the editing element, which apears beside the function buttons. |
void |
setCaptionText(java.lang.String text)
Define the caption text for the editing element, which apears beside the function buttons. |
void |
setColor_ListBorder(E4Color color)
|
void |
setColor_ResizeArea(E4Color color)
|
void |
setColor_ToolbarBackground(E4Color color)
|
void |
setColor_ToolbarCaption(E4Color color)
|
void |
setDataDescriptor(E4EditingDataDescriptor descriptor)
Associate the specified E4EditingDataDescriptor with the E4EditingElement. |
void |
setDisplayBlockLength(int length)
|
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 |
setEditingOnly(E4EditingElement.E4EditingElementOnlyEditing param)
Define parameters and the editing mode to enable using ONLY the editing frameset, without having any navigation frames or selection table. |
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 |
setTranslationType_Sys()
|
void |
setTranslationType(int translation_type)
|
void |
setXmlLayoutFile(java.lang.String filename)
Optionally, sets the name for the XML descriptor file. |
void |
toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet)
General about FRAMES/FRAMESET: A FRAMESET is once derived from class HTML, the next FRAMESET
can be derived from FRAMESET. |
void |
useAjax(boolean mode)
|
| Methods inherited from class e4s.html.FRAMESET |
|---|
_createKeepAliveScript, addKeepAliveScript, collectScripts, createEventHandler, createEventHandler, eventHandlers, FRAME, FRAME, FRAME, FRAME, FRAME, FRAME, FRAME, FRAME, FRAME, FRAME, FRAME, FRAME, FRAME, FRAME, FRAMESET, FRAMESET, FRAMESET, FRAMESET, FRAMESET, getFrameborder, getFrameSize, getFramespacing, MenuFrameset, MenuFrameset, onLoad, onUnLoad, onUnLoad, setEventHandler, setFrameborder, setFramespacing, SmoothResize, SmoothResize, SmoothResize2 |
| Methods inherited from class e4s.html.E4HtmlElement |
|---|
addElement, addElement, addElement, copyElements, print |
| Methods inherited from class e4s.html.E4HtmlObject |
|---|
E4ID, 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, toString, 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, collectScripts, 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 int TOOLBAR_FRAME_HEIGHT
| Constructor Detail |
|---|
public E4EditingFrameset(E4ServletImplementation_Intf servlet)
servlet - the servlet contextE4EditingFrameset(String,e4s.servlet.E4ServletImplementation_Intf)
public E4EditingFrameset(java.lang.String persistantObjId,
E4ServletImplementation_Intf servlet)
persistantObjId - the identifier for the persistanceservlet - the servlet context
public E4EditingFrameset(E4ID parent_id,
java.lang.String persistantObjId,
E4ServletImplementation_Intf servlet)
public E4EditingFrameset(E4String persistantObjId,
E4ServletImplementation_Intf servlet)
public E4EditingFrameset(E4ID parent_id,
E4String persistantObjId,
E4ServletImplementation_Intf servlet)
public E4EditingFrameset(E4DBTableName persistantObjId,
E4ServletImplementation_Intf servlet)
public E4EditingFrameset(E4ID parent_id,
E4DBTableName persistantObjId,
E4ServletImplementation_Intf servlet)
| Method Detail |
|---|
public boolean isFramesetVertical()
setFramesetVertical(boolean).
setFramesetVertical(boolean),
E4EditingElement.isFramesetVertical()public void setFramesetVertical(boolean mode)
mode - true (default) uses the vertical framesetisFramesetVertical(),
E4EditingElement.setFramesetVertical(boolean)public void setCaptionText(java.lang.String text)
E4EditingElement.setCaptionText( String )public void setCaptionText(E4Label_Intf text)
E4EditingElement.setCaptionText( String )public void setColor_ResizeArea(E4Color color)
public void setColor_ListBorder(E4Color color)
public void setColor_ToolbarCaption(E4Color color)
public void setColor_ToolbarBackground(E4Color color)
public void setEditingSelection(E4DBSelect_Intf selector)
throws java.lang.Exception
selector - a selection object
java.lang.ExceptionE4EditingElement.getEditingSelection(),
e4s.html.editing.E4EditingElement#setEditingSelection()public void setDisplayBlockLength(int length)
public void setDisplayRowCounter(boolean mode)
mode - enables (true) or disables (false) the display of the row counter#e4s.html.editing.EditingElement#setDisplayRowCounter,
#e4s.html.editing.EditingElement#getDisplayRowCounterpublic void setDisplayIndex(boolean mode)
mode - enables (true) or disables (false) the display of the index#e4s.html.editing.EditingElement#getDisplayIndex,
#e4s.html.editing.EditingElement#setDisplayIndex,
#e4s.html.editing.EditingElement#paintIndex,
#e4s.application.sysmodule.editing.moduleEditingHandling01#moveSelected
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 setImageAdd(IMG add,
boolean active)
public void setImageSave(IMG save,
boolean active)
public void setImageCancel(IMG cancel,
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 void setDataDescriptor(E4EditingDataDescriptor descriptor)
E4EditingDataDescriptor with the E4EditingElement.
descriptor - the data desccriptorservlet - the servlet's contextcreateDataDescriptor()public E4EditingDataDescriptor createDataDescriptor()
E4EditingDataDescriptor with the E4EditingElement.
servlet - the servlet's contextsetDataDescriptor(e4s.html.editing.E4EditingDataDescriptor)public void setFormatter(E4EditingFormatter_Intf formatter)
public void resetFormatter()
public void toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet)
throws java.lang.Exception
FRAMESETHTML, the next FRAMESET
can be derived from FRAMESET.
A FRAMESET consists of FRAME (which is a subclass of HTML) or again a FRAMESET.
When a FRAME is used, when it is converted into Html using the FRAMESET.toHtml(e4s.util.E4StringBufferHtml, e4s.servlet.E4ServletImplementation_Intf) function,
for each <FRAME>-tag a URL pattern is created, using the E4ServletImplementation_Intf.PARAM_PRESERVED with
an generic unique ID (based on the time and m_random). Instead of printing out the content of the frame itself,
a link is generated in the <FRAME SRC="..">-tag. The content of the frame is stored using the function E4ServletImplementation_Intf.writePreserved(String,E4HtmlElement_Intf).
In the servlet main routine (typically the doPost() or doGet() method this code should be used to handle this URL requests:
if (! servlet.writePreservedOut())
{
// continue with execution
}
toHtml in interface E4HtmlElement_IntftoHtml in class FRAMESETservlet - use the getServlet() to get the current servlet context
java.lang.Exceptionpublic E4EditingElement getEditingElement()
public void enableLayoutProperties(boolean mode)
true - means enabled (which is the default), and false means disabled#hasLayoutProperties()public void setTranslationType(int translation_type)
public void setTranslationType_Sys()
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_Intfpublic void setXmlLayoutFile(java.lang.String filename)
getXmlLayoutFile(),
E4EditingPersistance.getXmlFilename(e4s.html.editing.E4EditingElement),
E4EditingElement.setXmlLayoutFile(String)public java.lang.String getXmlLayoutFile()
setXmlLayoutFile(String).
setXmlLayoutFile(String),
E4EditingPersistance.getXmlFilename(e4s.html.editing.E4EditingElement),
E4EditingElement.getXmlLayoutFile()public void useAjax(boolean mode)
public boolean isAjax()
public static java.lang.String _getSVNVersionString()
E4Util.getRevisionCodeFromSVN(Class)public void setEditingOnly(E4EditingElement.E4EditingElementOnlyEditing param)
public void setAEP_EditingDataDescriptor(AEP_EditingDataDescriptor_Intf aep)
throws java.lang.Exception
aep - the data descriptor to be associated with the descriptor of this editing frameset
java.lang.ExceptioncreateDataDescriptor(),
E4EditingDataDescriptor.setAEP_EditingDataDescriptor(e4s.html.editing.AEP_EditingDataDescriptor_Intf)
public void addAdditionalButton(E4Method mref,
IMG image,
java.lang.String alt)
|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||