e4s.html.input.inlineedit
Class E4InlineEditCached
java.lang.Object
e4s.util.E4Object
e4s.html.E4HtmlObject
e4s.html.E4HtmlElementGeneral
e4s.html.E4HtmlElement
e4s.html.E4HtmlContentElement
e4s.html.DIV
e4s.html.ajax.E4AjaxElementGeneral
e4s.html.E4AjaxElement
e4s.html.input.inlineedit.E4InlineEdit
e4s.html.input.inlineedit.E4InlineEditCached
- All Implemented Interfaces:
- E4HtmlElement_Intf, E4ClientObject_Intf, E4SessionObject_Intf
public abstract class E4InlineEditCached
- extends E4InlineEdit
Inline Editing including a cache. The cache is filled up with data #setData(int,e4s.html.input.extended.E4InputFieldName_Intf,String) and the
inline editing procedure changes the data. When data is changed, a callback to dataChanged(int) will be issued, notificating the
above instance to store the data, using #getData(int,e4s.html.input.extended.E4InputFieldName_Intf).
|
Method Summary |
static java.lang.String |
_getSVNVersionString()
Get version info string from subversion. |
void |
addRow(E4Fieldset fieldset)
|
abstract void |
dataChanged(int row)
|
abstract void |
dataDeleted(int row)
|
void |
deleteRow(int row)
|
java.lang.String |
getData(int row,
E4InputFieldName fieldname)
|
boolean |
getDataBool(int row,
E4InputFieldName fieldname)
|
java.util.Date |
getDataDate(int row,
E4InputFieldName fieldname)
|
float |
getDataFloat(int row,
E4InputFieldName fieldname)
|
int |
getDataInt(int row,
E4InputFieldName fieldname)
|
long |
getDataLong(int row,
E4InputFieldName fieldname)
|
int |
getNumRows()
Get the initial number of rows. |
void |
resetData()
|
void |
saveRow(int row,
E4Fieldset fieldset)
|
void |
setData(int row,
E4InputFieldName fieldname,
boolean value)
|
void |
setData(int row,
E4InputFieldName fieldname,
java.util.Date value)
|
void |
setData(int row,
E4InputFieldName fieldname,
E4Date value)
|
void |
setData(int row,
E4InputFieldName fieldname,
E4Long value)
|
void |
setData(int row,
E4InputFieldName fieldname,
E4String value)
|
void |
setData(int row,
E4InputFieldName fieldname,
float value)
|
void |
setData(int row,
E4InputFieldName fieldname,
int value)
|
void |
setData(int row,
E4InputFieldName fieldname,
long value)
|
void |
setData(int row,
E4InputFieldName fieldname,
java.lang.String value)
|
void |
setRow(int row,
E4Fieldset fieldset)
|
| Methods inherited from class e4s.html.input.inlineedit.E4InlineEdit |
getAjaxData, getButtonAdd, getButtonCancel, getButtonDelete, getButtonEdit, getButtonSave, getObjectID, register, setAddOnInit, setDisplayLabels, setDisplayRowcount, setField, setFields, setFields, setForm |
| Methods inherited from class e4s.html.ajax.E4AjaxElementGeneral |
collectScripts, collectStylesForEditing, collectTranslationsForEditing, getDebug, getJsCallMethod, getMethodDispacher, getOnChange, getOnClick, getOnClick, getOnReadyRequest, getOnTimer, getOnTimer, getSendReqScript, getSendReqScriptGeneric, getShowOnLoad, getTimeout, prepare, setAEPCallbackScript_After, setAEPCallbackScript_After, setAEPCallbackScript_Before, setAEPCallbackScript_Before, setData, setData, setMethodDispacher, setNameScripts, setShowOnLoad, setTimeout, toHtml, toString, updateOnReadyReq, validate |
| Methods inherited from class e4s.html.DIV |
eventHandlers, getAlign, getDivId, getStyleHide, hide, jsClear, jsHide, jsIsOpen, jsShow, jsWrite, onMouseOut, onMouseOver, setAlign, setEventHandler, setSTYLE, setStyle, setStyleHide, setTitle, show, toHtml |
| Methods inherited from class e4s.html.E4HtmlContentElement |
A_Email, A_Email, A_Multiple, A_Popup, A_Popup, A_Popup, A_Popup, A_Popup, A_Popup, A_Popup, A_Reference, A_Reference, A_Reference, A_Reference, A_Reference, A_ReturnValue, A_ReturnValue, A_ReturnValue, A_ReturnValue, A, A, A, A, A, A, A, AjaxElement, AjaxElement, AjaxElement, B, B, BIG, Box, Box, Box, BoxRoundCorners, BoxRoundCorners, BoxRoundCorners, BR, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, CENTER, DEL, DIV, DIV, DIV, DIV, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FullSizeE4Message, H1, H2, H3, H4, Hint, HR, I, I, IMG, IMG, IMG, IMG, IMG, IMG, IMG, IMG, INS, Message, Message, Message, Message, Message, NBSP, NOBR, P_NBSP, P, PRE, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, rem, rem, rem, rem, rem, rem, SMALL, SPAN, STRIKE, strike, SystemError, SystemError, SystemError, SystemError, TABLE, TABLE, trace, trace, trace, trace, trace, trace, translate_Sys, translate, U, UL |
| Methods inherited from class e4s.html.E4HtmlElementGeneral |
addScript, addScript, addScript, addStyleForEditing, addTranslationForEditing, buildStyleAttribute, buildStyleClassReference, collectStylesForEditing, collectStylesForEditing, collectTranslationsForEditing, createScript, createScript, debugToString, findElement, findElement, findElement, findElement, getElements, getElementsVec, getField, getId, getLastElement, getStringContent, getStyle, getSTYLE, getStyle, hasScripts, hasSTYLE, isContentClass, isE4InputField_Intf, openTag, removeAll, removeElementById, removeElements, removeElements, removeStyle, setId, setReadOnly, setStyle, setStyle, setSTYLE, setValue, Style, Style, toHtml_hidden |
| 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, collectScripts, collectStylesForEditing, collectTranslationsForEditing, debugToString, findElement, findElement, getElements, getElementsVec, getField, getId, getStringContent, isContentClass, removeAll, removeElementById, removeElements, set_e4sID, setId, setReadOnly, setValue, toHtml_hidden, toHtml, validate |
E4InlineEditCached
public E4InlineEditCached(java.lang.String div_id,
FORM form,
E4ServletImplementation_Intf servlet)
E4InlineEditCached
public E4InlineEditCached(java.lang.String div_id,
E4ServletImplementation_Intf servlet)
getNumRows
public int getNumRows()
throws java.lang.Exception
- Description copied from class:
E4InlineEdit
- Get the initial number of rows. This function is abstract, so it requires
to be implemented in an above instance. It will be called more often. If
the number of rows is in the range 20 or more, we recommend paging which
can be set using
#setPageSize(int).
- Specified by:
getNumRows in class E4InlineEdit
- Returns:
- the number of existing rows (might be 0)
- Throws:
java.lang.Exception- See Also:
#setNewRows(int),
#setPageSize(int),
E4InlineEdit.setRow(int,e4s.html.input.extended.E4Fieldset),
E4InlineEdit.setFields(e4s.html.input.extended.E4Fieldset),
#saveRow(int,boolean,e4s.html.input.extended.E4Fieldset)
resetData
public void resetData()
saveRow
public void saveRow(int row,
E4Fieldset fieldset)
throws java.lang.Exception
- Specified by:
saveRow in class E4InlineEdit
- Throws:
java.lang.Exception
dataChanged
public abstract void dataChanged(int row)
throws java.lang.Exception
- Throws:
java.lang.Exception
dataDeleted
public abstract void dataDeleted(int row)
throws java.lang.Exception
- Throws:
java.lang.Exception
addRow
public void addRow(E4Fieldset fieldset)
throws java.lang.Exception
- Specified by:
addRow in class E4InlineEdit
- Throws:
java.lang.Exception
deleteRow
public void deleteRow(int row)
throws java.lang.Exception
- Specified by:
deleteRow in class E4InlineEdit
- Throws:
java.lang.Exception
setRow
public void setRow(int row,
E4Fieldset fieldset)
throws java.lang.Exception
- Specified by:
setRow in class E4InlineEdit
- Throws:
java.lang.Exception
setData
public void setData(int row,
E4InputFieldName fieldname,
java.util.Date value)
setData
public void setData(int row,
E4InputFieldName fieldname,
E4Date value)
setData
public void setData(int row,
E4InputFieldName fieldname,
E4String value)
setData
public void setData(int row,
E4InputFieldName fieldname,
boolean value)
setData
public void setData(int row,
E4InputFieldName fieldname,
E4Long value)
setData
public void setData(int row,
E4InputFieldName fieldname,
long value)
setData
public void setData(int row,
E4InputFieldName fieldname,
int value)
setData
public void setData(int row,
E4InputFieldName fieldname,
float value)
setData
public void setData(int row,
E4InputFieldName fieldname,
java.lang.String value)
getDataBool
public boolean getDataBool(int row,
E4InputFieldName fieldname)
getDataDate
public java.util.Date getDataDate(int row,
E4InputFieldName fieldname)
throws java.text.ParseException
- Throws:
java.text.ParseException
getDataLong
public long getDataLong(int row,
E4InputFieldName fieldname)
getDataFloat
public float getDataFloat(int row,
E4InputFieldName fieldname)
getDataInt
public int getDataInt(int row,
E4InputFieldName fieldname)
getData
public java.lang.String getData(int row,
E4InputFieldName fieldname)
_getSVNVersionString
public static java.lang.String _getSVNVersionString()
- Get version info string from subversion.
- Returns:
- the version info string.
- See Also:
E4Util.getRevisionCodeFromSVN(Class)