www.element4solution.com

e4s.application.sysmodule.editing
Class E4ModuleEditingHandling01

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.html.E4HtmlObject
          extended by e4s.servlet.E4ModuleImplementation
              extended by e4s.application.sysmodule.editing.E4ModuleEditingHandlingSettings
                  extended by e4s.application.sysmodule.editing.E4ModuleEditingHandling01
Direct Known Subclasses:
E4ModuleEditingHandling01Ajax, E4ModuleEditingHandling02

public class E4ModuleEditingHandling01
extends E4ModuleEditingHandlingSettings

Handling of editing elements (part 1/2 - listing functionality).

Since:
JDK 1.4
See Also:
E4EditingElement, E4EditingDataDescriptor, E4ModuleEditingHandling02

Field Summary
protected static int BUTTON_ID_ADD
           
protected static int BUTTON_ID_CANCEL
           
protected static int BUTTON_ID_FIRST
           
protected static int BUTTON_ID_LAST
           
protected static int BUTTON_ID_NEXT
           
protected static int BUTTON_ID_PREV
           
protected static int BUTTON_ID_RELOAD
           
protected static int BUTTON_ID_SAVE
           
protected static int BUTTON_ID_SEARCH
           
protected static int BUTTON_ID_SEARCH_RESET
           
static E4Method drawList
           
static E4Method drawListFirsttime
           
static E4Method drawMainFrames
           
static E4Method drawToolbar
           
static E4FrameName FRAMENAME_LIST
           
static E4FrameName FRAMENAME_MAIN
           
static E4FrameName FRAMENAME_TOOLBAR
           
protected static E4FrameName FRAMENAME_WORK
           
static int FRAMESTATE_BIGGER
           
static int FRAMESTATE_LEFT
           
static int FRAMESTATE_MIDDLE
           
static int FRAMESTATE_RIGHT
           
static int FRAMESTATE_SMALLER
           
static java.lang.String JS_NAME_CAN_BRANCH
           
static java.lang.String JS_NAME_DO_ACTION
          Name of the Java-Script method that passes a url to the target working frame and resizes the frame size to have the working frame a maximal size.
static java.lang.String JS_NAME_MAKE_BIG_LEFT
           
static java.lang.String JS_NAME_MAKE_BIG_RIGHT
           
protected static java.lang.String JS_NAME_RESIZE_FRAMEBORDER
           
protected static java.lang.String JS_NAME_SWITCH_BUTTONS
           
protected static java.lang.String JS_NAME_TOOLBAR_ACTION
           
protected static java.lang.String JS_NAME_TOOLBAR_ENABLEBUTTON
           
static E4Method moveFirst
           
static E4Method moveLast
           
static E4Method moveNext
           
static E4Method movePrev
           
static E4Method moveReload
           
static E4Method moveSpecified
           
static java.lang.String PARAM_GOTO
           
static E4Method searchExecute
           
static E4Method searchPrepare
           
static E4Method searchReset
           
protected static java.lang.String SESSION_OBJ_SEARCH_FORM
           
static E4Method sortColumn
           
 
Fields inherited from class e4s.application.sysmodule.editing.E4ModuleEditingHandlingSettings
modifySettings, modifySettings_Save, modifySettings_Sort, modifySettings_Tab, PARAM_EDITING_OBJ, STYLE_EDITING_EDIT, STYLE_EDITING_LIST, STYLE_EDITING_MENU, STYLE_EDITING_SEARCH
 
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
E4ModuleEditingHandling01()
           
 
Method Summary
static java.lang.String _getSVNVersionString()
          Get version info string from subversion.
 void drawList(HTML html, E4CgiParams params)
           
 void drawListFirsttime(HTML html, E4CgiParams params)
           
static void drawListInternal(HTML html, E4CgiParams params, boolean can_access_header, boolean make_big_leftside, E4ServletImplementation_Intf servlet)
           
 void drawMainFrames(HTML html, E4CgiParams params)
           
protected  void drawMainFrames(HTML html, E4CgiParams params, E4Method mref_action)
           
 void drawToolbar(HTML html, E4CgiParams params)
           
protected  E4EditingElement getEditingElement(E4CgiParams params)
           
protected static E4EditingElement getEditingElement(E4CgiParams params, E4ServletImplementation_Intf servlet)
           
protected static void makeBig_Leftside(BODY body, E4EditingElement eElement)
           
protected  void makeBig_Rightside(BODY body, E4EditingElement eElement)
           
 void moveFirst(HTML html, E4CgiParams params)
           
 void moveLast(HTML html, E4CgiParams params)
           
 void moveNext(HTML html, E4CgiParams params)
           
 void movePrev(HTML html, E4CgiParams params)
           
 void moveReload(HTML html, E4CgiParams params)
           
 void moveSpecified(HTML html, E4CgiParams params)
           
 void searchExecute(HTML html, E4CgiParams params)
           
 void searchPrepare(HTML html, E4CgiParams params)
           
 void searchReset(HTML html, E4CgiParams params)
           
static void setButtonStates_Editing(BODY body, E4CgiParams params, E4ServletImplementation_Intf servlet)
          Change the button state for editing, this means that all buttons are disabled except save and cancel which are enabled.
protected static void setButtonStates_Editing(BODY body, E4EditingElement eElement)
           
protected static void setButtonStates_Editing(E4JavaScript js, E4EditingElement eElement)
           
protected static void setButtonStates_Editing(E4JavaScript js, E4EditingElement eElement, boolean can_save)
           
protected static E4JavaScript setButtonStates_Listing(BODY body, E4EditingElement eElement)
           
protected static E4JavaScript setButtonStates_Listing(java.lang.String prefix, BODY body, E4EditingElement eElement)
           
protected static void setEventHandlerListingReload(BODY body, E4EditingElement eElement)
           
 void sortColumn(HTML html, E4CgiParams params)
           
 
Methods inherited from class e4s.application.sysmodule.editing.E4ModuleEditingHandlingSettings
createFieldset_DataField, createFieldset_General, createFieldset_TableColumn, modifySettings_Save, modifySettings_Sort, modifySettings_Tab, modifySettings, sortVec
 
Methods inherited from class e4s.servlet.E4ModuleImplementation
canDo, canDo, canRun, closeHtmlOutput, empty2nbsp, empty2nbsp, getApplication_Permissions, getApplication, getApplObj, getClient, getClientImage, getClientObject, getClientObject, getClientObject, getClientValue, getClientValueBool, getClientValueDate, getClientValueFloat, getClientValueInt, getClientValueLong, getCookie, getCookieArr, getCookieBool, getCookieDate, getCookieLong, getCountryCode, getCSS, getDateFormat, getDbConnection, getDecimalSign, getE4ClientLogo, getE4S_Permissions, getLanguage_App, getLanguage_Sys, getLanguage, getParameters, getPersistantParameter, getPersistantParameterBoolean, getPersistantParameterDate, getPersistantParameterInt, getPersistantParameterIntArr, getPersistantParameterLong, getPickParams, getRemoteAddr, getRequiredModulePermission, getServlet, getSession, getSessionId, getSessionObject_Boolean, getSessionObject_Long, getSessionObject_String, getSessionObject, getSessionObject, getSessionObjects, getTimeFormat, getTimeZone, getUrl, getUserEmail, getUserValue, getUserValue, getUserValueArr, getUserValueBool, getUserValueBool, getUserValueDate, getUserValueDate, getUserValueInt, getUserValueInt, getUserValueLong, getUserValueLong, isok, isPersistant, isRunningWindow, isTimeout, ok, openHtmlOutput, removeApplicationObject, removeClientObject, removeClientObject, removeClientObject, removeClientValue, removeSessionObject, removeSessionObject, removeUserValue, removeUserValue, resetClientLogo, setAjaxTrace, setApplication, setApplicationObject, setClientObject, setClientObject, setClientObject, setClientValue, setClientValue, setClientValue, setClientValue, setClientValue, setClientValue, setClientValue, setCookie, setCookie, setCookie, setCookie, setCookie, setCookie, setCookie, setCookie, setPersistantParameter, setPersistantParameter, setPersistantParameter, setPersistantParameter, setPersistantParameter, setPersistantParameter, setServlet, setSessionObject, setSessionObject, setSessionObject, setSessionObject, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, SystemError, write, write, write, write, write, writeln, writeln, writeln, writeln
 
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, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, 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
 

Field Detail

drawToolbar

public static E4Method drawToolbar

drawMainFrames

public static E4Method drawMainFrames

drawList

public static E4Method drawList

drawListFirsttime

public static E4Method drawListFirsttime

moveFirst

public static E4Method moveFirst

movePrev

public static E4Method movePrev

moveNext

public static E4Method moveNext

moveLast

public static E4Method moveLast

moveReload

public static E4Method moveReload

moveSpecified

public static E4Method moveSpecified

sortColumn

public static E4Method sortColumn

searchPrepare

public static E4Method searchPrepare

searchReset

public static E4Method searchReset

searchExecute

public static E4Method searchExecute

FRAMENAME_WORK

protected static final E4FrameName FRAMENAME_WORK

FRAMENAME_MAIN

public static final E4FrameName FRAMENAME_MAIN

FRAMENAME_LIST

public static final E4FrameName FRAMENAME_LIST

FRAMENAME_TOOLBAR

public static final E4FrameName FRAMENAME_TOOLBAR

JS_NAME_TOOLBAR_ENABLEBUTTON

protected static final java.lang.String JS_NAME_TOOLBAR_ENABLEBUTTON
See Also:
Constant Field Values

JS_NAME_TOOLBAR_ACTION

protected static final java.lang.String JS_NAME_TOOLBAR_ACTION
See Also:
Constant Field Values

JS_NAME_RESIZE_FRAMEBORDER

protected static final java.lang.String JS_NAME_RESIZE_FRAMEBORDER
See Also:
Constant Field Values

JS_NAME_SWITCH_BUTTONS

protected static final java.lang.String JS_NAME_SWITCH_BUTTONS
See Also:
Constant Field Values

JS_NAME_CAN_BRANCH

public static final java.lang.String JS_NAME_CAN_BRANCH
See Also:
Constant Field Values

JS_NAME_MAKE_BIG_LEFT

public static final java.lang.String JS_NAME_MAKE_BIG_LEFT
See Also:
Constant Field Values

JS_NAME_MAKE_BIG_RIGHT

public static final java.lang.String JS_NAME_MAKE_BIG_RIGHT
See Also:
Constant Field Values

SESSION_OBJ_SEARCH_FORM

protected static final java.lang.String SESSION_OBJ_SEARCH_FORM
See Also:
Constant Field Values

JS_NAME_DO_ACTION

public static final java.lang.String JS_NAME_DO_ACTION
Name of the Java-Script method that passes a url to the target working frame and resizes the frame size to have the working frame a maximal size.

See Also:
e4s.html.editing.E4EditingDataDescriptor#setE4JavaScript_Action_Forwarding(), E4EditingDataDescriptor.getE4JavaScript_Action_Forwarding(), Constant Field Values

FRAMESTATE_SMALLER

public static final int FRAMESTATE_SMALLER
See Also:
Constant Field Values

FRAMESTATE_LEFT

public static final int FRAMESTATE_LEFT
See Also:
Constant Field Values

FRAMESTATE_MIDDLE

public static final int FRAMESTATE_MIDDLE
See Also:
Constant Field Values

FRAMESTATE_RIGHT

public static final int FRAMESTATE_RIGHT
See Also:
Constant Field Values

FRAMESTATE_BIGGER

public static final int FRAMESTATE_BIGGER
See Also:
Constant Field Values

BUTTON_ID_FIRST

protected static final int BUTTON_ID_FIRST
See Also:
Constant Field Values

BUTTON_ID_PREV

protected static final int BUTTON_ID_PREV
See Also:
Constant Field Values

BUTTON_ID_NEXT

protected static final int BUTTON_ID_NEXT
See Also:
Constant Field Values

BUTTON_ID_LAST

protected static final int BUTTON_ID_LAST
See Also:
Constant Field Values

BUTTON_ID_ADD

protected static final int BUTTON_ID_ADD
See Also:
Constant Field Values

BUTTON_ID_SAVE

protected static final int BUTTON_ID_SAVE
See Also:
Constant Field Values

BUTTON_ID_CANCEL

protected static final int BUTTON_ID_CANCEL
See Also:
Constant Field Values

BUTTON_ID_RELOAD

protected static final int BUTTON_ID_RELOAD
See Also:
Constant Field Values

BUTTON_ID_SEARCH

protected static final int BUTTON_ID_SEARCH
See Also:
Constant Field Values

BUTTON_ID_SEARCH_RESET

protected static final int BUTTON_ID_SEARCH_RESET
See Also:
Constant Field Values

PARAM_GOTO

public static final java.lang.String PARAM_GOTO
See Also:
Constant Field Values
Constructor Detail

E4ModuleEditingHandling01

public E4ModuleEditingHandling01()
Method Detail

drawToolbar

public void drawToolbar(HTML html,
                        E4CgiParams params)
                 throws java.lang.Exception
Throws:
java.lang.Exception

drawMainFrames

public void drawMainFrames(HTML html,
                           E4CgiParams params)
                    throws java.lang.Exception
Throws:
java.lang.Exception

drawMainFrames

protected void drawMainFrames(HTML html,
                              E4CgiParams params,
                              E4Method mref_action)
                       throws java.lang.Exception
Throws:
java.lang.Exception

moveSpecified

public void moveSpecified(HTML html,
                          E4CgiParams params)
                   throws java.lang.Exception
Throws:
java.lang.Exception

moveFirst

public void moveFirst(HTML html,
                      E4CgiParams params)
               throws java.lang.Exception
Throws:
java.lang.Exception

movePrev

public void movePrev(HTML html,
                     E4CgiParams params)
              throws java.lang.Exception
Throws:
java.lang.Exception

moveNext

public void moveNext(HTML html,
                     E4CgiParams params)
              throws java.lang.Exception
Throws:
java.lang.Exception

moveLast

public void moveLast(HTML html,
                     E4CgiParams params)
              throws java.lang.Exception
Throws:
java.lang.Exception

moveReload

public void moveReload(HTML html,
                       E4CgiParams params)
                throws java.lang.Exception
Throws:
java.lang.Exception

setEventHandlerListingReload

protected static void setEventHandlerListingReload(BODY body,
                                                   E4EditingElement eElement)
                                            throws E4DBException
Throws:
E4DBException

setButtonStates_Listing

protected static E4JavaScript setButtonStates_Listing(BODY body,
                                                      E4EditingElement eElement)
                                               throws E4DBException
Throws:
E4DBException

setButtonStates_Listing

protected static E4JavaScript setButtonStates_Listing(java.lang.String prefix,
                                                      BODY body,
                                                      E4EditingElement eElement)
                                               throws E4DBException
Throws:
E4DBException

setButtonStates_Editing

public static void setButtonStates_Editing(BODY body,
                                           E4CgiParams params,
                                           E4ServletImplementation_Intf servlet)
                                    throws java.lang.Exception
Change the button state for editing, this means that all buttons are disabled except save and cancel which are enabled.

Parameters:
body - the current BODY element
params - the handled E4CgiParams
Throws:
java.lang.Exception

setButtonStates_Editing

protected static void setButtonStates_Editing(E4JavaScript js,
                                              E4EditingElement eElement)

setButtonStates_Editing

protected static void setButtonStates_Editing(E4JavaScript js,
                                              E4EditingElement eElement,
                                              boolean can_save)

setButtonStates_Editing

protected static void setButtonStates_Editing(BODY body,
                                              E4EditingElement eElement)

drawListFirsttime

public void drawListFirsttime(HTML html,
                              E4CgiParams params)
                       throws java.lang.Exception
Throws:
java.lang.Exception

drawList

public void drawList(HTML html,
                     E4CgiParams params)
              throws java.lang.Exception
Throws:
java.lang.Exception

drawListInternal

public static void drawListInternal(HTML html,
                                    E4CgiParams params,
                                    boolean can_access_header,
                                    boolean make_big_leftside,
                                    E4ServletImplementation_Intf servlet)
                             throws java.lang.Exception
Throws:
java.lang.Exception

sortColumn

public void sortColumn(HTML html,
                       E4CgiParams params)
                throws java.lang.Exception
Throws:
java.lang.Exception

searchPrepare

public void searchPrepare(HTML html,
                          E4CgiParams params)
                   throws java.lang.Exception
Throws:
java.lang.Exception

searchExecute

public void searchExecute(HTML html,
                          E4CgiParams params)
                   throws java.lang.Exception
Throws:
java.lang.Exception

searchReset

public void searchReset(HTML html,
                        E4CgiParams params)
                 throws java.lang.Exception
Throws:
java.lang.Exception

makeBig_Leftside

protected static void makeBig_Leftside(BODY body,
                                       E4EditingElement eElement)

makeBig_Rightside

protected void makeBig_Rightside(BODY body,
                                 E4EditingElement eElement)

getEditingElement

protected E4EditingElement getEditingElement(E4CgiParams params)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getEditingElement

protected static E4EditingElement getEditingElement(E4CgiParams params,
                                                    E4ServletImplementation_Intf servlet)
                                             throws java.lang.Exception
Throws:
java.lang.Exception

_getSVNVersionString

public static java.lang.String _getSVNVersionString()
Get version info string from subversion.

Returns:
the version info string.
See Also:
E4Util.getRevisionCodeFromSVN(Class)

www.element4solution.com