From: <jm...@us...> - 2005-08-04 07:40:23
|
Update of /cvsroot/struts/dialogs/src/net/jspcontrols/dialogs/actions/crud In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19672/src/net/jspcontrols/dialogs/actions/crud Modified Files: CRUDAction.java CRUDForm.java ICRUDForm.java Log Message: Index: CRUDAction.java =================================================================== RCS file: /cvsroot/struts/dialogs/src/net/jspcontrols/dialogs/actions/crud/CRUDAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CRUDAction.java 11 Jul 2005 07:13:09 -0000 1.1 --- CRUDAction.java 4 Aug 2005 07:39:44 -0000 1.2 *************** *** 87,105 **** /** - * Returns the initialization key or initialization prefix. - * Must start with the same prefix as dialog buttons. For example, - * if dialog buttons start with "DIALOG-EVENT", then "DIALOG-EVENT-INIT" - * is a good name for initilization key, while "DIALOG-INIT" is not. - */ - protected String getInitKey() { - return "DIALOG-EVENT-INIT"; - } - - /** * Maps submit button names to handler methods; also maps initialization * keys to initialization methods. Events, external to CRUDAction, * are considered initializing events, and therefore must start with * initialization prefix. For example, if initialization prefix ! * starts with "DIALOG-EVENT-INIT", then "DIALOG-EVENT-INIT-CREATE" * is a good key for "Create new business object" event, while * "DIALOG-EVENT-CREATE" is not. --- 87,95 ---- /** * Maps submit button names to handler methods; also maps initialization * keys to initialization methods. Events, external to CRUDAction, * are considered initializing events, and therefore must start with * initialization prefix. For example, if initialization prefix ! * starts with "DIALOG-EVENT", then "DIALOG-EVENT-CREATE" * is a good key for "Create new business object" event, while * "DIALOG-EVENT-CREATE" is not. Index: CRUDForm.java =================================================================== RCS file: /cvsroot/struts/dialogs/src/net/jspcontrols/dialogs/actions/crud/CRUDForm.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CRUDForm.java 11 Jul 2005 07:13:12 -0000 1.1 --- CRUDForm.java 4 Aug 2005 07:39:44 -0000 1.2 *************** *** 43,47 **** * Returns current UT mode * @see ICRUDForm#CRUD_UI_MODE_INACTIVE - * @see ICRUDForm#CRUD_UI_MODE_EDITABLE * @see ICRUDForm#CRUD_UI_MODE_READONLY */ --- 43,46 ---- *************** *** 51,55 **** * Sets current UT mode, used by business logic code. * @see ICRUDForm#CRUD_UI_MODE_INACTIVE - * @see ICRUDForm#CRUD_UI_MODE_EDITABLE * @see ICRUDForm#CRUD_UI_MODE_READONLY */ --- 50,53 ---- *************** *** 58,61 **** --- 56,63 ---- } + public String getCRUDUIMode() { + return this.uiMode; + } + /** * Constructs CRUD form. UI Mode must be set to CRUD_UI_MODE_INACTIVE, Index: ICRUDForm.java =================================================================== RCS file: /cvsroot/struts/dialogs/src/net/jspcontrols/dialogs/actions/crud/ICRUDForm.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ICRUDForm.java 11 Jul 2005 07:13:12 -0000 1.1 --- ICRUDForm.java 4 Aug 2005 07:39:44 -0000 1.2 *************** *** 54,57 **** --- 54,62 ---- public static final String CRUD_UI_MODE_EDITABLE = "CRUD-UI-MODE-EDITABLE"; + + public static final String CRUD_UI_MODE_EDIT = "CRUD-UI-MODE-EDIT"; + + public static final String CRUD_UI_MODE_CREATE = "CRUD-UI-MODE-CREATE"; + /** * View-only UI mode: business data must have been already created *************** *** 80,84 **** * @param mode UI mode for this action form * @see ICRUDForm#CRUD_UI_MODE_INACTIVE - * @see ICRUDForm#CRUD_UI_MODE_EDITABLE * @see ICRUDForm#CRUD_UI_MODE_READONLY */ --- 85,88 ---- *************** *** 88,92 **** * Returns current UI mode for this action form. * @see ICRUDForm#CRUD_UI_MODE_INACTIVE - * @see ICRUDForm#CRUD_UI_MODE_EDITABLE * @see ICRUDForm#CRUD_UI_MODE_READONLY */ --- 92,95 ---- |