/** * Sets the localized title of this layout in the language, and sets the default locale. * * @param title the localized title of this layout * @param locale the locale of the language * @param defaultLocale the default locale */ @Override public void setTitle(String title, java.util.Locale locale, java.util.Locale defaultLocale) { _layout.setTitle(title, locale, defaultLocale); }
/** * Sets the title of this layout. * * @param title the title of this layout */ @Override public void setTitle(String title) { _layout.setTitle(title); }
/** * Sets the localized title of this layout in the language. * * @param title the localized title of this layout * @param locale the locale of the language */ @Override public void setTitle(String title, java.util.Locale locale) { _layout.setTitle(title, locale); }
@Override public void onBeforeCreate(Layout model) throws ModelListenerException { System.out.println( "About to create layout: " + model.getNameCurrentValue()); model.setTitle("Title generated by model listener!"); }
@Override public Layout mergeLayoutRevisionIntoLayout(Layout layout) { LayoutStagingHandler layoutStagingHandler = getLayoutStagingHandler( layout); if (layoutStagingHandler == null) { return (Layout)layout.clone(); } layout = layoutStagingHandler.getLayout(); layout = (Layout)layout.clone(); LayoutRevision layoutRevision = layoutStagingHandler.getLayoutRevision(); layout.setName(layoutRevision.getName()); layout.setTitle(layoutRevision.getTitle()); layout.setDescription(layoutRevision.getDescription()); layout.setKeywords(layoutRevision.getKeywords()); layout.setRobots(layoutRevision.getRobots()); layout.setTypeSettings(layoutRevision.getTypeSettings()); layout.setIconImageId(layoutRevision.getIconImageId()); layout.setThemeId(layoutRevision.getThemeId()); layout.setColorSchemeId(layoutRevision.getColorSchemeId()); layout.setCss(layoutRevision.getCss()); return layout; }