<commit_before>package org.springframework.richclient.form.binding.swing;

import java.awt.Component;
import java.awt.event.ActionListener;

import javax.swing.ComboBoxEditor;
import javax.swing.JComponent;

import org.springframework.binding.form.FormModel;
import org.springframework.context.support.MessageSourceAccessor;
import org.springframework.richclient.list.TextValueListRenderer;
import org.springframework.util.Assert;

/**
 * Binds a Tiger enum in a combobox and supports i18n.<br/> The i18n key of an enum is the full classname + "." +
 * enumfield.<br/> For example:<br/> x.y.Season.WINTER = Winter<br/>
 * <p>
 * configuration happens like this:
 * </p>
 * 
 * <pre>
 *   &lt;bean id=&quot;binderSelectionStrategy&quot;
 *           class=&quot;org.springframework.richclient.form.binding.swing.SwingBinderSelectionStrategy&quot;&gt;
 *       &lt;property name=&quot;bindersForPropertyTypes&quot;&gt;
 *           &lt;map&gt;
 *               &lt;entry&gt;
 *                   &lt;key&gt;
 *                       &lt;value type=&quot;java.lang.Class&quot;&gt;java.lang.Enum&lt;/value&gt;
 *                   &lt;/key&gt;
 *                   &lt;bean class=&quot;be.kahosl.thot.swingui.util.TigerEnumComboBoxBinder&quot; /&gt;
 *               &lt;/entry&gt;
 *           &lt;/map&gt;
 *       &lt;/property&gt;
 *   &lt;/bean&gt;
 * </pre>
 * 
 * @author <NAME>
 */
public class TigerEnumComboBoxBinder extends ComboBoxBinder {

    protected TigerEnumComboBoxBinder() {
        super();
    }

    protected AbstractListBinding createListBinding(JComponent control, FormModel formModel, String formPropertyPath) {<commit_msg>cleanup: fixed package in javadoc<commit_after>package org.springframework.richclient.form.binding.swing;

import java.awt.Component;
import java.awt.event.ActionListener;

import javax.swing.ComboBoxEditor;
import javax.swing.JComponent;

import org.springframework.binding.form.FormModel;
import org.springframework.context.support.MessageSourceAccessor;
import org.springframework.richclient.list.TextValueListRenderer;
import org.springframework.util.Assert;

/**
 * Binds a Tiger enum in a combobox and supports i18n.<br/> The i18n key of an enum is the full classname + "." +
 * enumfield.<br/> For example:<br/> x.y.Season.WINTER = Winter<br/>
 * <p>
 * configuration happens like this:
 * </p>
 * 
 * <pre>
 *   &lt;bean id=&quot;binderSelectionStrategy&quot;
 *           class=&quot;org.springframework.richclient.form.binding.swing.SwingBinderSelectionStrategy&quot;&gt;
 *       &lt;property name=&quot;bindersForPropertyTypes&quot;&gt;
 *           &lt;map&gt;
 *               &lt;entry&gt;
 *                   &lt;key&gt;
 *                       &lt;value type=&quot;java.lang.Class&quot;&gt;java.lang.Enum&lt;/value&gt;
 *                   &lt;/key&gt;
 *                   &lt;bean class=&quot;org.springframework.richclient.form.binding.swing.TigerEnumComboBoxBinder&quot; /&gt;
 *               &lt;/entry&gt;
 *           &lt;/map&gt;
 *       &lt;/property&gt;
 *   &lt;/bean&gt;
 * </pre>
 * 
 * @author <NAME>
 */
public class TigerEnumComboBoxBinder extends ComboBoxBinder {

    protected TigerEnumComboBoxBinder() {
        super();
    }

    protected AbstractListBinding createListBinding(JComponent control, FormModel formModel, String formPropertyPath) {
{'fraction_non_alphanumeric': 0.13197360527894422, 'fraction_numerical': 0.0023995200959808036, 'mean_word_length': 3.2866323907455013, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1571367', 'n_tokens_mistral': 1055, 'n_tokens_neox': 1008, 'n_words': 178}