<%@ page import="java.util.Iterator"%>
<%@ page import="org.splat.wapp.Menu"%>
<%@ page import="org.splat.wapp.MenuItem"%>
-<%@
- taglib prefix="s" uri="/struts-tags"
-%>
-<!-- Initialization of the context
- -->
-<% String mename = request.getParameter("menu");
- Menu menu = (Menu)session.getAttribute("menu." + mename);
-%>
- <s:set var="menuname"><%=menu.getName()%></s:set>
- <s:set var="namespace"><%=menu.getNamespace()%></s:set>
+<%@ page import="org.splat.simer.Action"%>
+<%@ taglib prefix="s" uri="/struts-tags"%>
+
+ <s:set var="menuname" value="leftMenuSettings.menuName" />
+ <s:set var="namespace" value="leftMenuSettings.menuNamespace" />
<!-- Display of the menu tab
-->
<div id="tab-bar">
<span id="tab-front"> <s:text name="title.%{#menuname}"/> </span>
</div>
+
<!-- Display of menu items
-->
<div id=menuitem-box>
<%
+ Menu menu = Action.getStaticMenu();
boolean submenu = false;
for (Iterator<MenuItem> listem = menu.asList().iterator(); listem.hasNext(); ) {
MenuItem item = listem.next();
<div id=left-pane>
<jsp:include page="/jsp/toolbar.jsp" />
<div id=top-spacer></div>
- <jsp:include page="/jsp/menuitem.jsp">
- <jsp:param name="menu" value="open" />
- </jsp:include>
+ <jsp:include page="/jsp/menuitem.jsp" />
</div>
</body>
<div id=left-pane>
<jsp:include page="/jsp/toolbar.jsp" />
<div id=top-spacer></div>
- <jsp:include page="/jsp/menuitem.jsp">
- <jsp:param name="menu" value="open" />
- </jsp:include>
+ <jsp:include page="/jsp/menuitem.jsp" />
</div>
</body>
<div id=left-pane>
<jsp:include page="/jsp/toolbar.jsp" />
<div id=top-spacer></div>
- <jsp:include page="/jsp/menuitem.jsp">
- <jsp:param name="menu" value="open" />
- </jsp:include>
+ <jsp:include page="/jsp/menuitem.jsp" />
</div>
<div id=main-pane>
<div id=left-pane>
<jsp:include page="/jsp/toolbar.jsp" />
<div id=top-spacer></div>
- <jsp:include page="/jsp/menuitem.jsp">
- <jsp:param name="menu" value="open" />
- </jsp:include>
+ <jsp:include page="/jsp/menuitem.jsp" />
</div>
<!-- Updload dialog
<div id=left-pane>
<jsp:include page="/jsp/toolbar.jsp" />
<div id=top-spacer></div>
- <jsp:include page="/jsp/menuitem.jsp">
- <jsp:param name="menu" value="open" />
- </jsp:include>
+ <jsp:include page="/jsp/menuitem.jsp" />
</div>
<div id=main-pane>
<div id=left-pane>
<jsp:include page="/jsp/toolbar.jsp" />
<div id=top-spacer></div>
- <jsp:include page="/jsp/menuitem.jsp">
- <jsp:param name="menu" value="open" />
- </jsp:include>
+ <jsp:include page="/jsp/menuitem.jsp" />
</div>
<!-- Updload dialog
<div id=left-pane>
<jsp:include page="/jsp/toolbar.jsp" />
<div id=top-spacer></div>
- <jsp:include page="/jsp/menuitem.jsp">
- <jsp:param name="menu" value="knowledge" />
- </jsp:include>
+ <jsp:include page="/jsp/menuitem.jsp" />
<jsp:include page="/jsp/knowledgeProperties.jsp" />
</div>
<div id=left-pane>
<jsp:include page="/jsp/toolbar.jsp" />
<div id=top-spacer></div>
- <jsp:include page="/jsp/menuitem.jsp">
- <jsp:param name="menu" value="open" />
- </jsp:include>
+ <jsp:include page="/jsp/menuitem.jsp" />
<jsp:include page="/jsp/studyProperties.jsp" />
</div>
<div id=left-pane>
<jsp:include page="/jsp/toolbar.jsp" />
<div id=top-spacer></div>
- <jsp:include page="/jsp/menuitem.jsp">
- <jsp:param name="menu" value="study" />
- </jsp:include>
+ <jsp:include page="/jsp/menuitem.jsp" />
<jsp:include page="/jsp/studyProperties.jsp" />
</div>
<div id=left-pane>
<jsp:include page="/jsp/toolbar.jsp" />
<div id=top-spacer></div>
- <jsp:include page="/jsp/menuitem.jsp">
- <jsp:param name="menu" value="open" />
- </jsp:include>
+ <jsp:include page="/jsp/menuitem.jsp" />
<jsp:include page="/jsp/studyProperties.jsp" />
</div>
<div id=left-pane>
<jsp:include page="/jsp/toolbar.jsp" />
<div id=top-spacer></div>
- <jsp:include page="/jsp/menuitem.jsp">
- <jsp:param name="menu" value="open" />
- </jsp:include>
+ <jsp:include page="/jsp/menuitem.jsp" />
<jsp:include page="/jsp/studyProperties.jsp" />
</div>
<div id=left-pane>
<jsp:include page="/jsp/toolbar.jsp" />
<div id=top-spacer></div>
- <jsp:include page="/jsp/menuitem.jsp">
- <jsp:param name="menu" value="study" />
- </jsp:include>
+ <jsp:include page="/jsp/menuitem.jsp" />
<jsp:include page="/jsp/studyProperties.jsp" />
</div>
<div id=left-pane>
<jsp:include page="/jsp/toolbar.jsp" />
<div id=top-spacer></div>
- <jsp:include page="/jsp/menuitem.jsp">
- <jsp:param name="menu" value="study" />
- </jsp:include>
+ <jsp:include page="/jsp/menuitem.jsp" />
<jsp:include page="/jsp/studyProperties.jsp" />
</div>
<div id=left-pane>
<jsp:include page="/jsp/toolbar.jsp" />
<div id=top-spacer></div>
- <jsp:include page="/jsp/menuitem.jsp">
- <jsp:param name="menu" value="study" />
- </jsp:include>
+ <jsp:include page="/jsp/menuitem.jsp" />
<jsp:include page="/jsp/studyProperties.jsp" />
</div>
<div id=left-pane>
<jsp:include page="/jsp/toolbar.jsp" />
<div id=top-spacer></div>
- <jsp:include page="/jsp/menuitem.jsp">
- <jsp:param name="menu" value="scenario" />
- </jsp:include>
+ <jsp:include page="/jsp/menuitem.jsp" />
<jsp:include page="/jsp/studyProperties.jsp" />
</div>
<div id=left-pane>
<jsp:include page="/jsp/toolbar.jsp" />
<div id=top-spacer></div>
- <jsp:include page="/jsp/menuitem.jsp">
- <jsp:param name="menu" value="open" />
- </jsp:include>
+ <jsp:include page="/jsp/menuitem.jsp" />
</div>
<!-- New study dialog
<div id=left-pane>
<jsp:include page="/jsp/toolbar.jsp" />
<div id=top-spacer></div>
- <jsp:include page="/jsp/menuitem.jsp">
- <jsp:param name="menu" value="open" />
- </jsp:include>
+ <jsp:include page="/jsp/menuitem.jsp" />
</div>
<div id=main-pane>
<div id=left-pane>
<jsp:include page="/jsp/toolbar.jsp" />
<div id=top-spacer></div>
- <jsp:include page="/jsp/menuitem.jsp">
- <jsp:param name="menu" value="open" />
- </jsp:include>
+ <jsp:include page="/jsp/menuitem.jsp" />
</div>
<div id=main-pane>
<div id=left-pane>
<jsp:include page="/jsp/toolbar.jsp" />
<div id=top-spacer></div>
- <jsp:include page="/jsp/menuitem.jsp">
- <jsp:param name="menu" value="study" />
- </jsp:include>
+ <jsp:include page="/jsp/menuitem.jsp" />
<jsp:include page="/jsp/studyProperties.jsp" />
</div>
<div id=left-pane>
<jsp:include page="/jsp/toolbar.jsp" />
<div id=top-spacer></div>
- <jsp:include page="/jsp/menuitem.jsp">
- <jsp:param name="menu" value="study" />
- </jsp:include>
+ <jsp:include page="/jsp/menuitem.jsp" />
<jsp:include page="/jsp/studyProperties.jsp" />
</div>
*/
private ToolBarSettings _toolBarSettings;
+ /**
+ * LeftMenuSettings bean.
+ */
+ private LeftMenuSettings _leftMenuSettings;
+
/**
* Injected application settings bean.
*/
private ApplicationSettings _applicationSettings;
+
+ /**
+ * Will be removed!!!
+ * It's temporary solution for menuitem.jsp
+ */
+ private static Menu staticMenu;
public class DocumentTypeComparator implements Comparator<DocumentType> {
public int compare(DocumentType t1, DocumentType t2)
}
/**
- * Initialization the Context for menubar.
+ * Initialization the Context for menubar and toolbar.
*/
public void initializationContext() {
getMenuBarSettings().initializeInitialMenuProperties();
}
/**
+ * Initialization the Context for left menu.
+ * @param leftMenuProperty - the property of the left menu.
+ */
+ public void initializationContextLeftMenus(final String leftMenuProperty) {
+
+ Menu menu = (Menu)session.get("menu." + leftMenuProperty);
+
+ getLeftMenuSettings().setMenu(menu);
+ setStaticMenu(menu);
+ getLeftMenuSettings().setMenuName(menu.getName());
+ getLeftMenuSettings().setMenuNamespace(menu.getNamespace());
+ }
+
+ /**s
* Initialization the Context for Menu Bar and Tool Bar.
*
* @param titleProperty - The title of the open study/knowledge.
getMenuBarSettings().intializeMenuBar(menuProperty);
getToolBarSettings().intializeMenuBar(toolProperty);
}
+
+ /**
+ * Initialization of the screen context for menu bar, title bar and tool bar.
+ *
+ * @param menuProperty - the property of the menu bar.
+ * @param titleProperty - The title of the open study/knowledge.
+ * @param editDisabledProperty - Property that indicates whether the current open study is editable or not.
+ * @param toolProperty - the property of the tool bar.
+ * @param leftMenuProperty - the property of the left menu.
+ */
+ public void initializationFullScreenContext(final String menuProperty,
+ final String titleProperty, final String editDisabledProperty,
+ final String toolProperty, final String leftMenuProperty) {
+
+ initializationScreenContext(menuProperty, titleProperty, editDisabledProperty);
+ initializationContextLeftMenus(leftMenuProperty);
+ getToolBarSettings().intializeMenuBar(toolProperty);
+ }
+
+ /**
+ * Initialization of the screen context for menu bar and tool bar.
+ *
+ * @param menuProperty - the property of the menu bar.
+ * @param toolProperty - the property of the tool bar.
+ * @param leftMenuProperty - the property of the left menu.
+ */
+ public void initializationFullScreenContext(final String menuProperty,
+ final String toolProperty, final String leftMenuProperty) {
+
+ initializationContext();
+ initializationContextLeftMenus(leftMenuProperty);
+ getMenuBarSettings().intializeMenuBar(menuProperty);
+ getToolBarSettings().intializeMenuBar(toolProperty);
+ }
// ==============================================================================================================================
// Getters and setters
// ==============================================================================================================================
public void setApplicationSettings(ApplicationSettings applicationSettings) {
_applicationSettings = applicationSettings;
}
+ /**
+ * Get the leftMenuSettings.
+ * @return the leftMenuSettings
+ */
+ public LeftMenuSettings getLeftMenuSettings() {
+ return _leftMenuSettings;
+ }
+
+ /**
+ * Get the staticMenu.
+ * @return the staticMenu
+ */
+ public static Menu getStaticMenu() {
+ return staticMenu;
+ }
+ /**
+ * Set the staticMenu.
+ * @param staticMenu the staticMenu to set
+ */
+ public static void setStaticMenu(Menu staticMenu) {
+ Action.staticMenu = staticMenu;
+ }
+ /**
+ * Set the leftMenuSettings.
+ * @param leftMenuSettings the leftMenuSettings to set
+ */
+ public void setLeftMenuSettings(LeftMenuSettings leftMenuSettings) {
+ _leftMenuSettings = leftMenuSettings;
+ }
+
+
}
\ No newline at end of file
*/
private String _toolProperty;
+ /**
+ * Value of the left menu property.
+ * It can be: open, study, knowledge, scenario.
+ */
+ private String _leftMenuProperty;
+
/**
* Property that indicates whether the current open study is editable or not.
* On the screen it looks like pen on the status icon, pop-up menu also can be called.
setMenuProperty("knowledge");
setTitleProperty("knowledge");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("knowledge");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return SUCCESS;
}
setMenuProperty("knowledge");
setTitleProperty("knowledge");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("knowledge");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return SUCCESS;
}
setMenuProperty("knowledge");
setTitleProperty("knowledge");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("knowledge");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return SUCCESS;
}
setMenuProperty("knowledge");
setTitleProperty("knowledge");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("knowledge");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return SUCCESS;
}
public void setToolProperty(final String toolProperty) {
_toolProperty = toolProperty;
}
+
+ /**
+ * Get the leftMenuProperty.
+ * @return the leftMenuProperty
+ */
+ public String getLeftMenuProperty() {
+ return _leftMenuProperty;
+ }
+
+ /**
+ * Set the leftMenuProperty.
+ * @param leftMenuProperty the leftMenuProperty to set
+ */
+ public void setLeftMenuProperty(final String leftMenuProperty) {
+ _leftMenuProperty = leftMenuProperty;
+ }
}
\ No newline at end of file
*/
private String _toolProperty;
+ /**
+ * Value of the left menu property.
+ * It can be: open, study, knowledge, scenario.
+ */
+ private String _leftMenuProperty;
+
/**
* Property that indicates whether the current open study is editable or not.
* On the screen it looks like pen on the status icon, pop-up menu also can be called.
} else {
setToolProperty("standard");
}
+
+ setLeftMenuProperty("study");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return SUCCESS;
}
} else {
setToolProperty("standard");
}
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return SUCCESS;
}
} else {
setToolProperty("standard");
}
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return SUCCESS;
}
} else {
setToolProperty("standard");
}
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return SUCCESS;
}
public void setToolProperty(final String toolProperty) {
_toolProperty = toolProperty;
}
+
+ /**
+ * Get the leftMenuProperty.
+ * @return the leftMenuProperty
+ */
+ public String getLeftMenuProperty() {
+ return _leftMenuProperty;
+ }
+
+ /**
+ * Set the leftMenuProperty.
+ * @param leftMenuProperty the leftMenuProperty to set
+ */
+ public void setLeftMenuProperty(final String leftMenuProperty) {
+ _leftMenuProperty = leftMenuProperty;
+ }
}
\ No newline at end of file
*/
private String _toolProperty;
+ /**
+ * Value of the left menu property.
+ * It can be: open, study, knowledge, scenario.
+ */
+ private String _leftMenuProperty;
+
/**
* Property that indicates whether the current open study is editable or not.
* On the screen it looks like pen on the status icon, pop-up menu also can be called.
} else {
setToolProperty("standard");
}
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
-
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
+
return SUCCESS;
}
} else {
setToolProperty("standard");
}
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
-
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
+
try {
mystudy = getOpenStudy();
} else {
setToolProperty("standard");
}
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
-
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
+
try {
// Getting user inputs
mystudy = getOpenStudy();
} else {
setToolProperty("standard");
}
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
-
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
+
try {
mystudy = getOpenStudy();
_toolProperty = toolProperty;
}
-
+ /**
+ * Get the leftMenuProperty.
+ * @return the leftMenuProperty
+ */
+ public String getLeftMenuProperty() {
+ return _leftMenuProperty;
+ }
+
+ /**
+ * Set the leftMenuProperty.
+ * @param leftMenuProperty the leftMenuProperty to set
+ */
+ public void setLeftMenuProperty(final String leftMenuProperty) {
+ _leftMenuProperty = leftMenuProperty;
+ }
}
\ No newline at end of file
private String _menuProperty;
/**
- * Value of the title bar property. It can be: study, knowledge.
+ * Value of the title bar property.
+ * It can be: study, knowledge.
*/
private String _titleProperty;
/**
- * Property that indicates whether the current open study is editable or not. On the screen it looks like pen on the status icon, pop-up
- * menu also can be called. It is necessary for correct building the title bar.
+ * Property that indicates whether the current open study is editable or not.
+ * On the screen it looks like pen on the status icon, pop-up menu also can be called.
+ * It is necessary for correct building the title bar.
*/
private String _editDisabledProperty = "false";
/**
- * Value of the tool bar property. It can be: none, standard, study, back.
+ * Value of the tool bar property.
+ * It can be: none, standard, study, back.
*/
private String _toolProperty;
+
+ /**
+ * Value of the left menu property.
+ * It can be: open, study, knowledge, scenario.
+ */
+ private String _leftMenuProperty;
// ==============================================================================================================================
// Action methods
setMenuProperty("study");
setTitleProperty("study");
- if ("true".equals(getWriteAccess())
- && getUserRights().canCreateDocument()) {
+ if ("true".equals(getWriteAccess()) && getUserRights().canCreateDocument()) {
setToolProperty("study");
} else {
setToolProperty("standard");
}
- initializationScreenContext(_menuProperty, _titleProperty,
- _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return SUCCESS;
}
setMenuProperty("study");
setTitleProperty("study");
- if ("true".equals(getWriteAccess())
- && getUserRights().canCreateDocument()) {
+ if ("true".equals(getWriteAccess()) && getUserRights().canCreateDocument()) {
setToolProperty("study");
} else {
setToolProperty("standard");
}
- initializationScreenContext(_menuProperty, _titleProperty,
- _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
try {
User user = getConnectedUser();
setMenuProperty("study");
setTitleProperty("study");
- if ("true".equals(getWriteAccess())
- && getUserRights().canCreateDocument()) {
+ if ("true".equals(getWriteAccess()) && getUserRights().canCreateDocument()) {
setToolProperty("study");
} else {
setToolProperty("standard");
}
- initializationScreenContext(_menuProperty, _titleProperty,
- _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
+
}
// ==============================================================================================================================
public void setToolProperty(final String toolProperty) {
_toolProperty = toolProperty;
}
+
+ /**
+ * Get the leftMenuProperty.
+ * @return the leftMenuProperty
+ */
+ public String getLeftMenuProperty() {
+ return _leftMenuProperty;
+ }
+
+ /**
+ * Set the leftMenuProperty.
+ * @param leftMenuProperty the leftMenuProperty to set
+ */
+ public void setLeftMenuProperty(final String leftMenuProperty) {
+ _leftMenuProperty = leftMenuProperty;
+ }
+
+
}
\ No newline at end of file
* It can be: none, standard, study, back.
*/
private String _toolProperty;
+
+ /**
+ * Value of the left menu property.
+ * It can be: open, study, knowledge, scenario.
+ */
+ private String _leftMenuProperty;
/**
* Serial version ID.
setTitleProperty("study");
setEditDisabledProperty("true");
setToolProperty("back");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return SUCCESS;
}
} else {
setToolProperty("standard");
}
- initializationScreenContext(_menuProperty, _toolProperty);
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _toolProperty, _leftMenuProperty);
return SUCCESS;
public void setToolProperty(final String toolProperty) {
_toolProperty = toolProperty;
}
+
+ /**
+ * Get the leftMenuProperty.
+ * @return the leftMenuProperty
+ */
+ public String getLeftMenuProperty() {
+ return _leftMenuProperty;
+ }
+
+ /**
+ * Set the leftMenuProperty.
+ * @param leftMenuProperty the leftMenuProperty to set
+ */
+ public void setLeftMenuProperty(final String leftMenuProperty) {
+ _leftMenuProperty = leftMenuProperty;
+ }
}
\ No newline at end of file
*/
private String _toolProperty;
+ /**
+ * Value of the left menu property.
+ * It can be: open, study, knowledge, scenario.
+ */
+ private String _leftMenuProperty;
+
/**
* Property that indicates whether the current open study is editable or not.
* On the screen it looks like pen on the status icon, pop-up menu also can be called.
} else {
setToolProperty("standard");
}
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
if (contype.isEmpty())
return "create";
} else {
setToolProperty("standard");
}
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
int typid = Integer.valueOf(selectype);
if (typid == 0)
} else {
setToolProperty("standard");
}
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
if (newtype.length() == 0 || value.length() == 0)
return INPUT;
} else {
setToolProperty("standard");
}
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
try {
mystudy = getOpenStudy();
} else {
setToolProperty("standard");
}
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
try {
mystudy = getOpenStudy();
_toolProperty = toolProperty;
}
+ /**
+ * Get the leftMenuProperty.
+ * @return the leftMenuProperty
+ */
+ public String getLeftMenuProperty() {
+ return _leftMenuProperty;
+ }
+
+ /**
+ * Set the leftMenuProperty.
+ * @param leftMenuProperty the leftMenuProperty to set
+ */
+ public void setLeftMenuProperty(final String leftMenuProperty) {
+ _leftMenuProperty = leftMenuProperty;
+ }
}
\ No newline at end of file
*/
private String _toolProperty;
+ /**
+ * Value of the left menu property.
+ * It can be: open, study, knowledge, scenario.
+ */
+ private String _leftMenuProperty;
+
/**
* Property that indicates whether the current open study is editable or not.
* On the screen it looks like pen on the status icon, pop-up menu also can be called.
} else {
setToolProperty("standard");
}
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return SUCCESS;
}
public void setToolProperty(final String toolProperty) {
_toolProperty = toolProperty;
}
+
+ /**
+ * Get the leftMenuProperty.
+ * @return the leftMenuProperty
+ */
+ public String getLeftMenuProperty() {
+ return _leftMenuProperty;
+ }
+
+ /**
+ * Set the leftMenuProperty.
+ * @param leftMenuProperty the leftMenuProperty to set
+ */
+ public void setLeftMenuProperty(final String leftMenuProperty) {
+ _leftMenuProperty = leftMenuProperty;
+ }
}
\ No newline at end of file
*/
private String _toolProperty;
+ /**
+ * Value of the left menu property.
+ * It can be: open, study, knowledge, scenario.
+ */
+ private String _leftMenuProperty;
+
/**
* Property that indicates whether the current open study is editable or not.
* On the screen it looks like pen on the status icon, pop-up menu also can be called.
} else {
setToolProperty("none");
}
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
User user = getConnectedUser();
File updir = getRepositoryService().getDownloadDirectory(user);
setErrorCode("reference.undefined");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return ERROR;
} else {
setErrorCode("reference.duplicate");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return ERROR;
}
setErrorCode("format.version");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return ERROR;
}
setErrorCode("format.date");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return ERROR;
}
setErrorCode("import.type");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return ERROR;
}
}
setToolProperty("none");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return ERROR;
}
public void setToolProperty(final String toolProperty) {
_toolProperty = toolProperty;
}
+
+ /**
+ * Get the leftMenuProperty.
+ * @return the leftMenuProperty
+ */
+ public String getLeftMenuProperty() {
+ return _leftMenuProperty;
+ }
+
+ /**
+ * Set the leftMenuProperty.
+ * @param leftMenuProperty the leftMenuProperty to set
+ */
+ public void setLeftMenuProperty(final String leftMenuProperty) {
+ _leftMenuProperty = leftMenuProperty;
+ }
}
\ No newline at end of file
--- /dev/null
+/*****************************************************************************
+ * Company EURIWARE
+ * Application SIMAN
+ * File $Id$
+ * Creation date 30.10.2012
+ * @author Author: Maria KRUCHININA
+ * @version Revision:
+ *****************************************************************************/
+
+package org.splat.simer;
+
+import org.splat.wapp.Menu;
+
+/**
+ * Settings for the left menu.
+ * @author Maria KRUCHININA
+ *
+ */
+public class LeftMenuSettings {
+
+ /**
+ * The name of the left menu.
+ */
+ private String menuName;
+
+ /**
+ * The name space of the left menu.
+ */
+ private String menuNamespace;
+
+ /**
+ * The left menu.
+ */
+ private Menu menu;
+
+ /**
+ * Get the menuName.
+ * @return the menuName
+ */
+ public String getMenuName() {
+ return menuName;
+ }
+
+ /**
+ * Set the menuName.
+ * @param menuName the menuName to set
+ */
+ public void setMenuName(final String menuName) {
+ this.menuName = menuName;
+ }
+
+ /**
+ * Get the menuNamespace.
+ * @return the menuNamespace
+ */
+ public String getMenuNamespace() {
+ return menuNamespace;
+ }
+
+ /**
+ * Set the menuNamespace.
+ * @param menuNamespace the menuNamespace to set
+ */
+ public void setMenuNamespace(final String menuNamespace) {
+ this.menuNamespace = menuNamespace;
+ }
+
+ /**
+ * Get the menu.
+ * @return the menu
+ */
+ public Menu getMenu() {
+ return menu;
+ }
+
+ /**
+ * Set the menu.
+ * @param menu the menu to set
+ */
+ public void setMenu(final Menu menu) {
+ this.menu = menu;
+ }
+
+
+}
*/
private String _toolProperty;
+ /**
+ * Value of the left menu property.
+ * It can be: open, study, knowledge, scenario.
+ */
+ private String _leftMenuProperty;
+
/**
* Property that indicates whether the current open study is editable or not.
* On the screen it looks like pen on the status icon, pop-up menu also can be called.
setTitleProperty("study");
setEditDisabledProperty("true");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("scenario");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return SUCCESS;
}
setTitleProperty("study");
setEditDisabledProperty("true");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("scenario");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return SUCCESS;
}
setMenuProperty("study");
setTitleProperty("study");
setToolProperty("standard");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return ERROR;
}
public void setToolProperty(final String toolProperty) {
_toolProperty = toolProperty;
}
+
+ /**
+ * Get the leftMenuProperty.
+ * @return the leftMenuProperty
+ */
+ public String getLeftMenuProperty() {
+ return _leftMenuProperty;
+ }
+
+ /**
+ * Set the leftMenuProperty.
+ * @param leftMenuProperty the leftMenuProperty to set
+ */
+ public void setLeftMenuProperty(final String leftMenuProperty) {
+ _leftMenuProperty = leftMenuProperty;
+ }
}
\ No newline at end of file
* It can be: none, standard, study, back.
*/
private String _toolProperty;
+
+ /**
+ * Value of the left menu property.
+ * It can be: open, study, knowledge, scenario.
+ */
+ private String _leftMenuProperty;
// ==============================================================================================================================
// Action methods
setMenuProperty("create");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _toolProperty);
+ setLeftMenuProperty("open");
+ initializationFullScreenContext(_menuProperty, _toolProperty, _leftMenuProperty);
return SUCCESS;
}
setMenuProperty("study");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _toolProperty);
+ setLeftMenuProperty("open");
+ initializationFullScreenContext(_menuProperty, _toolProperty, _leftMenuProperty);
return SUCCESS;
} catch (Exception error) {
public void setToolProperty(final String toolProperty) {
_toolProperty = toolProperty;
}
+
+ /**
+ * Get the leftMenuProperty.
+ * @return the leftMenuProperty
+ */
+ public String getLeftMenuProperty() {
+ return _leftMenuProperty;
+ }
+
+ /**
+ * Set the leftMenuProperty.
+ * @param leftMenuProperty the leftMenuProperty to set
+ */
+ public void setLeftMenuProperty(final String leftMenuProperty) {
+ _leftMenuProperty = leftMenuProperty;
+ }
}
\ No newline at end of file
* It can be: none, standard, study, back.
*/
private String _toolProperty;
+
+ /**
+ * Value of the left menu property.
+ * It can be: open, study, knowledge, scenario.
+ */
+ private String _leftMenuProperty;
// ==============================================================================================================================
// Action methods
setTitleProperty("study");
setEditDisabledProperty("true");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return SUCCESS;
}
public void setToolProperty(final String toolProperty) {
_toolProperty = toolProperty;
}
+
+ /**
+ * Get the leftMenuProperty.
+ * @return the leftMenuProperty
+ */
+ public String getLeftMenuProperty() {
+ return _leftMenuProperty;
+ }
+
+ /**
+ * Set the leftMenuProperty.
+ * @param leftMenuProperty the leftMenuProperty to set
+ */
+ public void setLeftMenuProperty(final String leftMenuProperty) {
+ _leftMenuProperty = leftMenuProperty;
+ }
}
\ No newline at end of file
* It can be: none, standard, study, back.
*/
private String _toolProperty;
+
+ /**
+ * Value of the left menu property.
+ * It can be: open, study, knowledge, scenario.
+ */
+ private String _leftMenuProperty;
// ==============================================================================================================================
// Action methods
setMenuProperty("open");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _toolProperty);
+ setLeftMenuProperty("open");
+ initializationFullScreenContext(_menuProperty, _toolProperty, _leftMenuProperty);
try {
loadFilter();
public void setToolProperty(final String toolProperty) {
_toolProperty = toolProperty;
}
+
+ /**
+ * Get the leftMenuProperty.
+ * @return the leftMenuProperty
+ */
+ public String getLeftMenuProperty() {
+ return _leftMenuProperty;
+ }
+
+ /**
+ * Set the leftMenuProperty.
+ * @param leftMenuProperty the leftMenuProperty to set
+ */
+ public void setLeftMenuProperty(final String leftMenuProperty) {
+ _leftMenuProperty = leftMenuProperty;
+ }
}
\ No newline at end of file
* It can be: none, standard, study, back.
*/
private String _toolProperty;
+
+ /**
+ * Value of the left menu property.
+ * It can be: open, study, knowledge, scenario.
+ */
+ private String _leftMenuProperty;
/**
* Serial version ID.
setMenuProperty("open");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _toolProperty);
+ setLeftMenuProperty("open");
+ initializationFullScreenContext(_menuProperty, _toolProperty, _leftMenuProperty);
return SUCCESS;
} catch (Exception error) {
public void setToolProperty(final String toolProperty) {
_toolProperty = toolProperty;
}
+
+ /**
+ * Get the leftMenuProperty.
+ * @return the leftMenuProperty
+ */
+ public String getLeftMenuProperty() {
+ return _leftMenuProperty;
+ }
+
+ /**
+ * Set the leftMenuProperty.
+ * @param leftMenuProperty the leftMenuProperty to set
+ */
+ public void setLeftMenuProperty(final String leftMenuProperty) {
+ _leftMenuProperty = leftMenuProperty;
+ }
}
\ No newline at end of file
* It can be: none, standard, study, back.
*/
private String _toolProperty;
+
+ /**
+ * Value of the left menu property.
+ * It can be: open, study, knowledge, scenario.
+ */
+ private String _leftMenuProperty;
/**
* Serial version ID.
setTitleProperty("study");
setEditDisabledProperty("true");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return ERROR;
}
public void setToolProperty(final String toolProperty) {
_toolProperty = toolProperty;
}
+
+ /**
+ * Get the leftMenuProperty.
+ * @return the leftMenuProperty
+ */
+ public String getLeftMenuProperty() {
+ return _leftMenuProperty;
+ }
+
+ /**
+ * Set the leftMenuProperty.
+ * @param leftMenuProperty the leftMenuProperty to set
+ */
+ public void setLeftMenuProperty(final String leftMenuProperty) {
+ _leftMenuProperty = leftMenuProperty;
+ }
}
\ No newline at end of file
*/
private String _toolProperty;
+ /**
+ * Value of the left menu property.
+ * It can be: open, study, knowledge, scenario.
+ */
+ private String _leftMenuProperty;
+
/**
* Property that indicates whether the current open study is editable or not.
* On the screen it looks like pen on the status icon, pop-up menu also can be called.
setTitleProperty("study");
setEditDisabledProperty("true");
setToolProperty("back");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("open");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
if (mystudy.isOpenForWriting() && user.canEditProperties()) {
return "edit";
setTitleProperty("study");
setEditDisabledProperty("true");
setToolProperty("back");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
-
+ setLeftMenuProperty("open");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
+
return SUCCESS;
}
setTitleProperty("study");
setEditDisabledProperty("true");
setToolProperty("back");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
-
+ setLeftMenuProperty("open");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
+
return SUCCESS;
}
setTitleProperty("study");
setEditDisabledProperty("true");
setToolProperty("back");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
-
+ setLeftMenuProperty("open");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
+
return SUCCESS;
}
setTitleProperty("study");
setEditDisabledProperty("true");
setToolProperty("back");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
-
+ setLeftMenuProperty("open");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
+
return SUCCESS;
}
public void setToolProperty(final String toolProperty) {
_toolProperty = toolProperty;
}
+
+ /**
+ * Get the leftMenuProperty.
+ * @return the leftMenuProperty
+ */
+ public String getLeftMenuProperty() {
+ return _leftMenuProperty;
+ }
+
+ /**
+ * Set the leftMenuProperty.
+ * @param leftMenuProperty the leftMenuProperty to set
+ */
+ public void setLeftMenuProperty(final String leftMenuProperty) {
+ _leftMenuProperty = leftMenuProperty;
+ }
}
\ No newline at end of file
* It can be: none, standard, study, back.
*/
private String _toolProperty;
+
+ /**
+ * Value of the left menu property.
+ * It can be: open, study, knowledge, scenario.
+ */
+ private String _leftMenuProperty;
+
/**
* Property that indicates whether the current open study is editable or not.
* On the screen it looks like pen on the status icon, pop-up menu also can be called.
// -----------------------------
setMenuProperty("study");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _toolProperty);
+ setLeftMenuProperty("open");
+ initializationFullScreenContext(_menuProperty, _toolProperty, _leftMenuProperty);
return SUCCESS;
}
next = "import";
}*/
- logger.info("MKA next = " + next);
return next;
}
catch (OutOfMemoryError error) {
setTitleProperty("study");
setEditDisabledProperty("true");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return "outofmemory";
}
public void setToolProperty(final String toolProperty) {
_toolProperty = toolProperty;
}
+
+ /**
+ * Get the leftMenuProperty.
+ * @return the leftMenuProperty
+ */
+ public String getLeftMenuProperty() {
+ return _leftMenuProperty;
+ }
+
+ /**
+ * Set the leftMenuProperty.
+ * @param leftMenuProperty the leftMenuProperty to set
+ */
+ public void setLeftMenuProperty(final String leftMenuProperty) {
+ _leftMenuProperty = leftMenuProperty;
+ }
}
\ No newline at end of file
* It can be: none, standard, study, back.
*/
private String _toolProperty;
+
+ /**
+ * Value of the left menu property.
+ * It can be: open, study, knowledge, scenario.
+ */
+ private String _leftMenuProperty;
/**
* Property that indicates whether the current open study is editable or not.
} else {
setToolProperty("none");
}
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
User user = getConnectedUser();
File updir = getRepositoryService().getDownloadDirectory(user);
if (!extractProperties(upfile, doc)) {
if (!("none".equals(_toolProperty))) {
setToolProperty("none");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
}
return ERROR;
}
}
setToolProperty("none");
- initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+
+ setLeftMenuProperty("study");
+ initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return ERROR;
}
public void setToolProperty(final String toolProperty) {
_toolProperty = toolProperty;
}
+
+ /**
+ * Get the leftMenuProperty.
+ * @return the leftMenuProperty
+ */
+ public String getLeftMenuProperty() {
+ return _leftMenuProperty;
+ }
+
+ /**
+ * Set the leftMenuProperty.
+ * @param leftMenuProperty the leftMenuProperty to set
+ */
+ public void setLeftMenuProperty(final String leftMenuProperty) {
+ _leftMenuProperty = leftMenuProperty;
+ }
}
\ No newline at end of file
* It can be: none, standard, study, back.
*/
private String _toolProperty;
+
+ /**
+ * Value of the left menu property.
+ * It can be: open, study, knowledge, scenario.
+ */
+ private String _leftMenuProperty;
// ==============================================================================================================================
// Action methods
setMenuProperty("sysadmin");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _toolProperty);
+ setLeftMenuProperty("open");
+ initializationFullScreenContext(_menuProperty, _toolProperty, _leftMenuProperty);
return SUCCESS;
}
public void setToolProperty(final String toolProperty) {
_toolProperty = toolProperty;
}
+
+ /**
+ * Get the leftMenuProperty.
+ * @return the leftMenuProperty
+ */
+ public String getLeftMenuProperty() {
+ return _leftMenuProperty;
+ }
+
+ /**
+ * Set the leftMenuProperty.
+ * @param leftMenuProperty the leftMenuProperty to set
+ */
+ public void setLeftMenuProperty(final String leftMenuProperty) {
+ _leftMenuProperty = leftMenuProperty;
+ }
}
\ No newline at end of file
* It can be: none, standard, study, back.
*/
private String _toolProperty;
+
+ /**
+ * Value of the left menu property.
+ * It can be: open, study, knowledge, scenario.
+ */
+ private String _leftMenuProperty;
// ==============================================================================================================================
// Action methods
setMenuProperty("sysadmin");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _toolProperty);
+ setLeftMenuProperty("open");
+ initializationFullScreenContext(_menuProperty, _toolProperty, _leftMenuProperty);
return SUCCESS;
}
public void setToolProperty(final String toolProperty) {
_toolProperty = toolProperty;
}
+
+ /**
+ * Get the leftMenuProperty.
+ * @return the leftMenuProperty
+ */
+ public String getLeftMenuProperty() {
+ return _leftMenuProperty;
+ }
+
+ /**
+ * Set the leftMenuProperty.
+ * @param leftMenuProperty the leftMenuProperty to set
+ */
+ public void setLeftMenuProperty(final String leftMenuProperty) {
+ _leftMenuProperty = leftMenuProperty;
+ }
}
\ No newline at end of file
* It can be: none, standard, study, back.
*/
private String _toolProperty;
+
+ /**
+ * Value of the left menu property.
+ * It can be: open, study, knowledge, scenario.
+ */
+ private String _leftMenuProperty;
/**
* Context name comparator.
setMenuProperty("study");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _toolProperty);
+ setLeftMenuProperty("open");
+ initializationFullScreenContext(_menuProperty, _toolProperty, _leftMenuProperty);
return SUCCESS;
} catch (Exception error) {
setMenuProperty("study");
setToolProperty("none");
- initializationScreenContext(_menuProperty, _toolProperty);
+ setLeftMenuProperty("open");
+ initializationFullScreenContext(_menuProperty, _toolProperty, _leftMenuProperty);
Session connex = Database.getCurSession();
Transaction transax = connex.beginTransaction();
public void setToolProperty(final String toolProperty) {
_toolProperty = toolProperty;
}
+
+ /**
+ * Get the leftMenuProperty.
+ * @return the leftMenuProperty
+ */
+ public String getLeftMenuProperty() {
+ return _leftMenuProperty;
+ }
+
+ /**
+ * Set the leftMenuProperty.
+ * @param leftMenuProperty the leftMenuProperty to set
+ */
+ public void setLeftMenuProperty(final String leftMenuProperty) {
+ _leftMenuProperty = leftMenuProperty;
+ }
}
\ No newline at end of file
<bean id="toolBarSettings"
class="org.splat.simer.ToolBarSettings" scope="session">
</bean>
+
+ <bean id="leftMenuSettings"
+ class="org.splat.simer.LeftMenuSettings" scope="session">
+ </bean>
<bean id="slidMenu" scope="session" abstract="true">
<property name="projectElementService"
<property name="menuBarSettings" ref="menuBarSettings" />
<property name="titleBarSettings" ref="titleBarSettings" />
<property name="toolBarSettings" ref="toolBarSettings" />
+ <property name="leftMenuSettings" ref="leftMenuSettings" />
</bean>
<!--========= Inherited from baseAction ========= -->