/** * Sets the show explorer flag.<p> * * @param showExplorer the show explorer flag */ private void setShowExplorer(boolean showExplorer) { Map dialogMap = (Map)getSettings().getDialogObject(); if (dialogMap == null) { dialogMap = new HashMap(); getSettings().setDialogObject(dialogMap); } dialogMap.put(getClass().getName(), Boolean.valueOf(showExplorer)); } }
/** * Sets the show explorer flag.<p> * * @param showExplorer the show explorer flag */ @SuppressWarnings({"rawtypes", "unchecked"}) private void setShowExplorer(boolean showExplorer) { Map dialogMap = (Map)getSettings().getDialogObject(); if (dialogMap == null) { dialogMap = new HashMap(); getSettings().setDialogObject(dialogMap); } dialogMap.put(getClass().getName(), Boolean.valueOf(showExplorer)); } }
/** * Returns the (internal use only) map of dialog objects.<p> * * @return the (internal use only) map of dialog objects */ private Map getDialogObjectMap() { Map objects = (Map)getSettings().getDialogObject(); if (objects == null) { // using hashtable as most efficient version of a synchronized map objects = new Hashtable(); getSettings().setDialogObject(objects); } return objects; }
/** * Returns the (internal use only) map of dialog objects.<p> * * @return the (internal use only) map of dialog objects */ private Map getDialogObjectMap() { Map objects = (Map)getSettings().getDialogObject(); if (objects == null) { // using hash table as most efficient version of a synchronized map objects = new Hashtable(); getSettings().setDialogObject(objects); } return objects; } }
/** * Returns the (internal use only) map of dialog objects.<p> * * @return the (internal use only) map of dialog objects */ private Map<String, Object> getDialogObjectMap() { @SuppressWarnings("unchecked") Map<String, Object> objects = (Map<String, Object>)getSettings().getDialogObject(); if (objects == null) { // using hash table as most efficient version of a synchronized map objects = new Hashtable<String, Object>(); getSettings().setDialogObject(objects); } return objects; } }
/** * Initializes the message info object to work with depending on the dialog state and request parameters.<p> */ protected void initExportObject() { try { if (CmsStringUtil.isEmpty(getParamAction()) || CmsDialog.DIALOG_INITIAL.equals(getParamAction())) { // create a new list m_reasons = new HashMap(); } else { Map objects = (Map)getSettings().getDialogObject(); if (objects == null) { // using hashtable as most efficient version of a synchronized map objects = new Hashtable(); getSettings().setDialogObject(objects); } m_reasons = (Map)objects.get(getClass().getName()); } } catch (Exception e) { // create a new list m_reasons = new HashMap(); } }
/** * @see org.opencms.workplace.list.A_CmsListDialog#initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings, javax.servlet.http.HttpServletRequest) */ @Override protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, HttpServletRequest request) { super.initWorkplaceRequestValues(settings, request); if (IMPORT_ACTION.equals(getParamAction())) { setAction(ACTION_IMPORT); } // save the current state of the message (may be changed because of the widget values) if (m_reasons == null) { // null object: remove the entry from the map Map objects = (Map)getSettings().getDialogObject(); if (objects == null) { // using hashtable as most efficient version of a synchronized map objects = new Hashtable(); getSettings().setDialogObject(objects); } objects.remove(getClass().getName()); } else { Map objects = (Map)getSettings().getDialogObject(); if (objects == null) { // using hashtable as most efficient version of a synchronized map objects = new Hashtable(); getSettings().setDialogObject(objects); } objects.put(getClass().getName(), m_reasons); } }