|
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.E4HtmlContentElement
e4s.html.DIV
e4s.html.ajax.E4AjaxElementGeneral
e4s.html.E4AjaxElement
e4s.html.input.inlineedit.E4InlineEdit
public abstract class E4InlineEdit
Ajax based inline data editing: the DIV element contains one or more lines of data, each line contains one or more E4InputField_Intf
elements. Each element is identified by a unique E4InputFieldName_Intf. There is only one row at a time able for editing, or one
row can be added which is added at the end of the list.
| Field Summary | |
|---|---|
static int |
_COMMAND_ADD
|
static int |
_COMMAND_CANCEL
|
static int |
_COMMAND_DELETE
|
static int |
_COMMAND_EDIT
|
static int |
_COMMAND_SAVE
|
static E4InputFieldName |
PARAM_COMMAND
|
| Fields inherited from class e4s.html.ajax.E4AjaxElementGeneral |
|---|
JS_XML_HTTP_REQUEST, m_debug, m_id, m_js_AEP_callback_after, m_js_AEP_callback_before, m_url, READY_STATE_COMPLETE |
| Fields inherited from class e4s.html.DIV |
|---|
DEFAULTSTYLE, HTML_TAG |
| Fields inherited from class e4s.html.E4HtmlContentElement |
|---|
BOOL_STR_FALSE, BOOL_STR_TRUE |
| 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 | |
|---|---|
E4InlineEdit(java.lang.String div_id,
boolean can_add,
boolean can_edit,
boolean can_delete,
E4ServletImplementation_Intf servlet)
|
|
E4InlineEdit(java.lang.String div_id,
E4ServletImplementation_Intf servlet)
|
|
E4InlineEdit(java.lang.String div_id,
FORM form,
boolean can_add,
boolean can_edit,
boolean can_delete,
E4ServletImplementation_Intf servlet)
|
|
E4InlineEdit(java.lang.String div_id,
FORM form,
E4ServletImplementation_Intf servlet)
|
|
| Method Summary | |
|---|---|
static java.lang.String |
_getSVNVersionString()
Get version info string from subversion. |
abstract void |
addRow(E4Fieldset fieldset)
|
abstract void |
deleteRow(int row)
|
e4s.html.input.inlineedit.E4InlineEdit.E4LineAddData |
getAjaxData()
|
E4HtmlElement_Intf |
getButtonAdd()
Can be overwritten: get the content for the add trigger, e.g. a graphic. |
E4HtmlElement_Intf |
getButtonCancel()
Can be overwritten: get the content for the cancel trigger, e.g. a graphic. |
E4HtmlElement_Intf |
getButtonDelete()
Can be overwritten: get the content for the delete trigger, e.g. a graphic. |
E4HtmlElement_Intf |
getButtonEdit()
Can be overwritten: get the content for the editing trigger, e.g. a graphic. |
E4HtmlElement_Intf |
getButtonSave()
Can be overwritten: get the content for the save trigger, e.g. a graphic. |
abstract int |
getNumRows()
Get the initial number of rows. |
java.lang.String |
getObjectID()
Get the ID of the Object. |
void |
register(E4AjaxDataRepository repository)
|
abstract void |
saveRow(int row,
E4Fieldset fieldset)
|
void |
setAddOnInit()
|
void |
setDisplayLabels(boolean display_labels)
Set the display of labels (first row) on or off. |
void |
setDisplayRowcount(boolean display_rowcount)
Set the display of a row counter (first column) on or off. |
void |
setField(E4InputField_Intf field)
Add a field to the representation of a row. |
void |
setFields(E4Fieldset fieldset)
Define the data fields for one representative row. |
void |
setFields(E4InputField_Intf[] fields)
Define the data fields for one representative row. |
void |
setForm(FORM form)
|
abstract void |
setRow(int row,
E4Fieldset fieldset)
|
| Methods inherited from class e4s.html.E4AjaxElement |
|---|
updateOnReadyReqCore |
| 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.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, 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 |
| Field Detail |
|---|
public static final E4InputFieldName PARAM_COMMAND
public static final int _COMMAND_ADD
public static final int _COMMAND_DELETE
public static final int _COMMAND_EDIT
public static final int _COMMAND_SAVE
public static final int _COMMAND_CANCEL
| Constructor Detail |
|---|
public E4InlineEdit(java.lang.String div_id,
E4ServletImplementation_Intf servlet)
public E4InlineEdit(java.lang.String div_id,
FORM form,
E4ServletImplementation_Intf servlet)
public E4InlineEdit(java.lang.String div_id,
boolean can_add,
boolean can_edit,
boolean can_delete,
E4ServletImplementation_Intf servlet)
public E4InlineEdit(java.lang.String div_id,
FORM form,
boolean can_add,
boolean can_edit,
boolean can_delete,
E4ServletImplementation_Intf servlet)
| Method Detail |
|---|
public java.lang.String getObjectID()
E4ClientObject_Intf
getObjectID in interface E4ClientObject_IntfgetObjectID in interface E4SessionObject_Intf
public abstract int getNumRows()
throws java.lang.Exception
#setPageSize(int).
java.lang.Exception#setNewRows(int),
#setPageSize(int),
setRow(int,e4s.html.input.extended.E4Fieldset),
setFields(e4s.html.input.extended.E4Fieldset),
#saveRow(int,boolean,e4s.html.input.extended.E4Fieldset)
public abstract void setRow(int row,
E4Fieldset fieldset)
throws java.lang.Exception
java.lang.Exception
public abstract void saveRow(int row,
E4Fieldset fieldset)
throws java.lang.Exception
java.lang.Exception
public abstract void addRow(E4Fieldset fieldset)
throws java.lang.Exception
java.lang.Exception
public abstract void deleteRow(int row)
throws java.lang.Exception
java.lang.Exceptionpublic E4HtmlElement_Intf getButtonCancel()
A tag later, the default implementation
uses e4s.util.E4Images.cancel_small_1.
getButtonSave(),
getButtonAdd(),
getButtonEdit(),
getButtonDelete()public E4HtmlElement_Intf getButtonSave()
A tag later, the default implementation
uses e4s.util.E4Images.save_small_1.
getButtonCancel(),
getButtonAdd(),
getButtonEdit(),
getButtonDelete()public E4HtmlElement_Intf getButtonAdd()
A tag later, the default implementation
uses e4s.util.E4Images.add_small_1.
getButtonCancel(),
getButtonSave(),
getButtonEdit(),
getButtonDelete()public E4HtmlElement_Intf getButtonEdit()
A tag later, the default implementation
uses e4s.util.E4Images.editing_small_1.
getButtonCancel(),
getButtonSave(),
getButtonAdd(),
getButtonDelete()public E4HtmlElement_Intf getButtonDelete()
A tag later, the default implementation
uses e4s.util.E4Images.delete_small_1.
getButtonCancel(),
getButtonSave(),
getButtonEdit(),
getButtonAdd()public void setField(E4InputField_Intf field)
setFields(e4s.html.input.extended.E4Fieldset),
setFields(e4s.html.input.extended.E4InputField_Intf[])public void setFields(E4InputField_Intf[] fields)
setRow(int, e4s.html.input.extended.E4Fieldset).
Each field will get a unique name while rolled out to the different input rows.
fields - an array of fields, each representing a column in the input table#getFields(),
setFields(e4s.html.input.extended.E4Fieldset)public void setFields(E4Fieldset fieldset)
setRow(int, e4s.html.input.extended.E4Fieldset).
Each field will get a unique name while rolled out to the different input rows.
fieldset - contains the fields (one row only)#getFields(),
#setFields(e4s.html.input.extended.E4InputField_Intf)public void setDisplayRowcount(boolean display_rowcount)
display_rowcount - false if rowcount shall not be displayed (default)setDisplayRowcount(boolean)public void setDisplayLabels(boolean display_labels)
display_labels - true if labels shall be displayed (default)setDisplayRowcount(boolean)public void setAddOnInit()
public e4s.html.input.inlineedit.E4InlineEdit.E4LineAddData getAjaxData()
public void register(E4AjaxDataRepository repository)
public void setForm(FORM form)
public static java.lang.String _getSVNVersionString()
E4Util.getRevisionCodeFromSVN(Class)
|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||