/** * Returns the list.<p> * * @return the list */ public CmsHtmlList getList() { if ((m_list != null) && (m_list.getMetadata() == null)) { m_list.setMetadata(getMetadata(getClass().getName(), m_list.getId())); } return m_list; }
/** * Returns the list.<p> * * @return the list */ public CmsHtmlList getList() { if ((m_list != null) && (m_list.getMetadata() == null)) { m_list.setMetadata(getMetadata(getClass().getName(), m_list.getId())); } return m_list; }
/** * Stores the given object as "list object" for the given list dialog in the current users session.<p> * * @param listDialog the list dialog class * @param listObject the list to store */ public void setListObject(Class<?> listDialog, CmsHtmlList listObject) { if (listObject == null) { // null object: remove the entry from the map getListObjectMap(getSettings()).remove(listDialog.getName()); } else { if ((listObject.getMetadata() != null) && listObject.getMetadata().isVolatile()) { listObject.setMetadata(null); } getListObjectMap(getSettings()).put(listDialog.getName(), listObject); } }
/** * Stores the given object as "list object" for the given list dialog in the current users session.<p> * * @param listDialog the list dialog class * @param listObject the list to store */ public void setListObject(Class listDialog, CmsHtmlList listObject) { if (listObject == null) { // null object: remove the entry from the map getListObjectMap(getSettings()).remove(listDialog.getName()); } else { if ((listObject.getMetadata() != null) && listObject.getMetadata().isVolatile()) { listObject.setMetadata(null); } getListObjectMap(getSettings()).put(listDialog.getName(), listObject); } }