/** * @see org.apache.wicket.jmx.MarkupSettingsMBean#getStripComments() */ @Override public boolean getStripComments() { return application.getMarkupSettings().getStripComments(); }
/** * * @param rawMarkup * @return The modified raw markup */ protected CharSequence handleRawText(String rawMarkup) { // Get relevant settings from the Application final boolean stripComments = markupSettings.getStripComments(); final boolean compressWhitespace = markupSettings.getCompressWhitespace(); if (stripComments) { rawMarkup = removeComment(rawMarkup); } if (compressWhitespace) { rawMarkup = compressWhitespace(rawMarkup); } return rawMarkup; }
/** * * @param rawMarkup * @return The modified raw markup */ protected CharSequence handleRawText(String rawMarkup) { // Get relevant settings from the Application final boolean stripComments = markupSettings.getStripComments(); final boolean compressWhitespace = markupSettings.getCompressWhitespace(); if (stripComments) { rawMarkup = removeComment(rawMarkup); } if (compressWhitespace) { rawMarkup = compressWhitespace(rawMarkup); } return rawMarkup; }
/** * Constructor. * * @param id * Component id * @param application * The application to view */ public ApplicationView(final String id, final Application application) { super(id); // Basic attributes add(new Label("name", application.getName())); add(new Label("componentUseCheck", "" + application.getDebugSettings().getComponentUseCheck())); add(new Label("compressWhitespace", "" + application.getMarkupSettings().getCompressWhitespace())); add(new Label("stripComments", "" + application.getMarkupSettings().getStripComments())); add(new Label("stripWicketTags", "" + application.getMarkupSettings().getStripWicketTags())); add(new Label("bufferResponse", "" + application.getRequestCycleSettings().getBufferResponse())); add(new Label("resourcePollFrequency", "" + application.getResourceSettings().getResourcePollFrequency())); add(new Label("versionPages", "" + application.getPageSettings().getVersionPagesByDefault())); } }
/** * Constructor. * * @param id * Component id * @param application * The application to view */ public ApplicationView(final String id, final Application application) { super(id); // Basic attributes add(new Label("name", application.getName())); add(new Label("componentUseCheck", "" + application.getDebugSettings().getComponentUseCheck())); add(new Label("compressWhitespace", "" + application.getMarkupSettings().getCompressWhitespace())); add(new Label("stripComments", "" + application.getMarkupSettings().getStripComments())); add(new Label("stripWicketTags", "" + application.getMarkupSettings().getStripWicketTags())); add(new Label("bufferResponse", "" + application.getRequestCycleSettings().getBufferResponse())); add(new Label("resourcePollFrequency", "" + application.getResourceSettings().getResourcePollFrequency())); add(new Label("versionPages", "" + application.getPageSettings().getVersionPagesByDefault())); } }