<commit_before>/*
 * $Id$ $Revision$
 * $Date$
 * 
 * ==================================================================== Licensed
 * under the Apache License, Version 2.0 (the "License"); you may not use this
 * file except in compliance with the License. You may obtain a copy of the
 * License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package wicket.examples.frames;

import wicket.markup.html.WebPage;
import wicket.markup.html.link.Link;

/**
 * The left frame. This page is not bookmarkable, but it's instance is created
 * by {@link wicket.examples.frames.BodyFrame} and hold in the same page map as
 * index. It uses the frameTarget object as a shared model; this page updates
 * that model, and as the Index uses that to set the frame tag, any changes to
 * it should be reflected with the next render.
 * 
 * @author <NAME>
 */
public class LeftFrame extends WebPage
{
	/**
	 * Link that, when clicked, changes the frame target's frame class (and as
	 * that is a shared model which is also being used by the 'master page'
	 * {@link BodyFrame}, changes are immediately reflected) and set the
	 * response page to the top level page {@link BodyFrame}. Tags that use
	 * this link should have a <code>target="_parent"</code> attribute, so
	 * that the top frame will be refreshed.
	 */
	private static final class ChangeFramePageLink extends Link
	{
		/** parent frame class. */
		private final BodyFrame bodyFrame;

		/** this link's target. */
		private final Class pageClass;

		/**
		 * Construct.
		 * 
		 * @param id
		 * @param bodyFrame
		 * @param pageClass
		 */
		public ChangeFramePageLink(String id, BodyFrame bodyFrame, Class pageClass)
		{
			super(id);
			this.bodyFrame = bodyFrame;
			this.pageClass = pageClass;
		}

		/**
		 * @see wicket.markup.html.link.Link#onClick()
		 */
		public void onClick()
		{
			// change frame class<commit_msg>serializeable<commit_after>/*
 * $Id$ $Revision$
 * $Date$
 * 
 * ==================================================================== Licensed
 * under the Apache License, Version 2.0 (the "License"); you may not use this
 * file except in compliance with the License. You may obtain a copy of the
 * License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package wicket.examples.frames;

import wicket.markup.html.WebPage;
import wicket.markup.html.link.Link;

/**
 * The left frame. This page is not bookmarkable, but it's instance is created
 * by {@link wicket.examples.frames.BodyFrame} and hold in the same page map as
 * index. It uses the frameTarget object as a shared model; this page updates
 * that model, and as the Index uses that to set the frame tag, any changes to
 * it should be reflected with the next render.
 * 
 * @author <NAME>
 */
public class LeftFrame extends WebPage
{
	private static final long serialVersionUID = 1L;
	
	/**
	 * Link that, when clicked, changes the frame target's frame class (and as
	 * that is a shared model which is also being used by the 'master page'
	 * {@link BodyFrame}, changes are immediately reflected) and set the
	 * response page to the top level page {@link BodyFrame}. Tags that use
	 * this link should have a <code>target="_parent"</code> attribute, so
	 * that the top frame will be refreshed.
	 */
	private static final class ChangeFramePageLink extends Link
	{
		private static final long serialVersionUID = 1L;
		
		/** parent frame class. */
		private final BodyFrame bodyFrame;

		/** this link's target. */
		private final Class pageClass;

		/**
		 * Construct.
		 * 
		 * @param id
		 * @param bodyFrame
		 * @param pageClass
		 */
		public ChangeFramePageLink(String id, BodyFrame bodyFrame, Class pageClass)
		{
			super(id);
			this.bodyFrame = bodyFrame;
			this.pageClass = pageClass;
		}

		/**
		 * @see wicket.markup.html.link.Link#onClick()
		 */
		public void onClick()
		{
			// change frame class
{'fraction_non_alphanumeric': 0.11655629139072848, 'fraction_numerical': 0.002207505518763797, 'mean_word_length': 3.5629405840886204, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1692685', 'n_tokens_mistral': 1326, 'n_tokens_neox': 1195, 'n_words': 543}