/** * Returns the value of the property <code>{@link CmsPropertyDefinition#PROPERTY_LOCALE}</code> of this * navigation element, or <code>null</code> if this property is not set.<p> * * @return the value of the property or <code>null</code> if this property is not set */ public String getLocale() { return getProperties().get(CmsPropertyDefinition.PROPERTY_LOCALE); }
/** * Returns the value of the property <code>{@link CmsPropertyDefinition#PROPERTY_NAVINFO}</code> of this * navigation element, or <code>null</code> if this property is not set.<p> * * @return the value of the property or <code>null</code> if this property is not set */ public String getInfo() { return getProperties().get(CmsPropertyDefinition.PROPERTY_NAVINFO); }
/** * Returns the value of the property <code>{@link CmsPropertyDefinition#PROPERTY_NAVIMAGE}</code> of this * navigation element, or <code>null</code> if this property is not set.<p> * * @return the value of the property or <code>null</code> if this property is not set */ public String getNavImage() { return getProperties().get(CmsPropertyDefinition.PROPERTY_NAVIMAGE); }
/** * Returns the value of the property PROPERTY_DESCRIPTION of this navigation element, * or <code>null</code> if this property is not set.<p> * * @return the value of the property PROPERTY_DESCRIPTION of this navigation element * or <code>null</code> if this property is not set */ public String getDescription() { return getProperties().get(CmsPropertyDefinition.PROPERTY_DESCRIPTION); }
/** * Returns the value of the property PROPERTY_TITLE of this navigation element, * or <code>null</code> if this property is not set.<p> * * @return the value of the property PROPERTY_TITLE of this navigation element * or <code>null</code> if this property is not set */ public String getTitle() { return getProperties().get(CmsPropertyDefinition.PROPERTY_TITLE); }
/** * Returns the value of the selected property from this navigation element.<p> * * The navigation element contains a hash of all file properties of the resource that * the navigation element belongs to.<p> * * @param key the property name to look up * * @return the value of the selected property */ public String getProperty(String key) { return getProperties().get(key); }
/** * Returns if the navigation element represents a navigation level, linking to it's first sub-element.<p> * * @return <code>true</code> if the navigation element represents a navigation level */ public boolean isNavigationLevel() { return CmsJspNavBuilder.NAVIGATION_LEVEL_FOLDER.equals( getProperties().get(CmsPropertyDefinition.PROPERTY_DEFAULT_FILE)); }
/** * Returns if this is a hidden navigation entry.<p> * * @return <code>true</code> if this is a hidden navigation entry */ public boolean isHiddenNavigationEntry() { if (m_isHiddenNavigationEntry == null) { // use "lazy initializing" String navInfo = getProperties().get(CmsPropertyDefinition.PROPERTY_NAVINFO); m_isHiddenNavigationEntry = Boolean.valueOf(CmsClientSitemapEntry.HIDDEN_NAVIGATION_ENTRY.equals(navInfo)); } return m_isHiddenNavigationEntry.booleanValue(); }
/** * Returns <code>true</code> if this navigation element is in the navigation, * <code>false</code> otherwise.<p> * * A resource is considered to be in the navigation, if <ol> * <li>it has the property PROPERTY_NAVTEXT set * <li><em>or</em> it has the property PROPERTY_NAVPOS set * <li><em>and</em> it is not a temporary file as defined by {@link CmsResource#isTemporaryFileName(String)}.</ol> * * @return <code>true</code> if this navigation element is in the navigation, <code>false</code> otherwise */ public boolean isInNavigation() { if (m_hasNav == null) { // use "lazy initializing" Object o1 = getProperties().get(CmsPropertyDefinition.PROPERTY_NAVTEXT); Object o2 = getProperties().get(CmsPropertyDefinition.PROPERTY_NAVPOS); m_hasNav = Boolean.valueOf(((o1 != null) || (o2 != null)) && !CmsResource.isTemporaryFileName(m_sitePath)); } return m_hasNav.booleanValue(); }
m_position = Float.parseFloat(getProperties().get(CmsPropertyDefinition.PROPERTY_NAVPOS)); } catch (@SuppressWarnings("unused") Exception e) {
/** * Returns the value of the property PROPERTY_NAVTEXT of this navigation element, * or a warning message if this property is not set * (this method will never return <code>null</code>).<p> * * @return the value of the property PROPERTY_NAVTEXT of this navigation element, * or a warning message if this property is not set * (this method will never return <code>null</code>) */ public String getNavText() { if (m_text == null) { // use "lazy initializing" m_text = getProperties().get(CmsPropertyDefinition.PROPERTY_NAVTEXT); if (m_text == null) { m_text = CmsMessages.formatUnknownKey(CmsPropertyDefinition.PROPERTY_NAVTEXT); } } return m_text; }
if (nav.getProperties().containsKey(CmsPropertyDefinition.PROPERTY_NAVTEXT)) { navText = nav.getProperties().get(CmsPropertyDefinition.PROPERTY_NAVTEXT); } else if (nav.getProperties().containsKey(CmsPropertyDefinition.PROPERTY_TITLE)) { navText = nav.getProperties().get(CmsPropertyDefinition.PROPERTY_TITLE);