Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package org.nuiton.jaxx.widgets.text;
/*-
* #%L
* JAXX :: Widgets
* %%
* Copyright (C) 2008 - 2024 Code Lutin, Ultreia.io
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* .
* #L%
*/
import io.ultreia.java4all.bean.JavaBean;
import io.ultreia.java4all.i18n.I18n;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.LayoutManager;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.TreeMap;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JToolBar;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.nuiton.jaxx.runtime.JAXXBinding;
import org.nuiton.jaxx.runtime.JAXXContext;
import org.nuiton.jaxx.runtime.JAXXObject;
import org.nuiton.jaxx.runtime.JAXXObjectDescriptor;
import org.nuiton.jaxx.runtime.JAXXUtil;
import org.nuiton.jaxx.runtime.bean.BeanScopeAware;
import org.nuiton.jaxx.runtime.binding.SimpleJAXXObjectBinding;
import org.nuiton.jaxx.runtime.context.DefaultJAXXContext;
import org.nuiton.jaxx.runtime.spi.UIHandler;
import org.nuiton.jaxx.runtime.swing.SwingUtil;
import org.nuiton.jaxx.widgets.text.actions.BigTextEditorReset;
public class BigTextEditor extends JPanel implements BeanScopeAware, JAXXObject {
/*-----------------------------------------------------------------------*/
/*---------------- Constants for all javaBean properties ----------------*/
/*-----------------------------------------------------------------------*/
public static final String PROPERTY_LABEL = "label";
public static final String PROPERTY_PROPERTY = "property";
public static final String PROPERTY_RESET_TIP = "resetTip";
public static final String PROPERTY_TITLE = "title";
/*-----------------------------------------------------------------------*/
/*------------------ Constants for all public bindings ------------------*/
/*-----------------------------------------------------------------------*/
public static final String BINDING_INFO_LABEL_TOOL_TIP_TEXT = "infoLabel.toolTipText";
public static final String BINDING_RESET_ENABLED = "reset.enabled";
public static final String BINDING_TEXT_EDITOR_ENABLED = "textEditor.enabled";
public static final String BINDING_TITLE_LABEL_TEXT = "titleLabel.text";
/*-----------------------------------------------------------------------*/
/*------------------------- Other static fields -------------------------*/
/*-----------------------------------------------------------------------*/
private static final String $jaxxObjectDescriptor = "H4sIAAAAAAAAAKVVyW4bRxAtUiQlUpa8ZPXFUeJFVJZhFgQ5yIgteYEXOjYixTCiS5ozTaqFVve4u8YcQYgPPuSWH8jBV18C/4ORU4BcctU/BPAnpHqGnCElUqQTAmyJNVWvXlVXvfn9HyhbA59q0/FUJFArb4fFsWcihWKXe3fWHj2639rhPl7n1jciRG0g/RSKUNyC+SCzWwRvq0lIjRSp4ZAaPaTGNb0basXVANBqE2oW9yS325wjQn1ssG9tYyPzXI3DyPRyjWQ9Ktdfv3xxUODXfysCxCHRX6SyP3kDgLzqUhOKIkA409xhT1hDMtUhckaoDhW04GzXJLP2O7bLH8NTmG1CJWSGwBA++0/tSeASqDhEmEFN58eHqXdF0OFoPeQxeuuis0l/bwT03IRhElxBKLU4UwinHEfP8fbSu8095kKjQ25wb8grrS73KqNAmRR3esAoWYvLQ8Y5wy3HTREesi86mhu+0VI+YIojvOeyxZ7tUiLvTv7E+VezsBpmVSG8MxTi6l0znDnP97OAE76W0a66xVlAVcGZoRCHLwe4Xkgtn7vfS+44N5DYVdx0FR5GafbL/jDzrgrV1pn94vDDeeaj0Mo2eZsm4u3hIrSW68wM5y4nPUR4a8h1PUK6e+dSD2mUL40bZVodL1+dfIoLWwQckRnh/PitdYv3PXmlK3d+/Mq5NInjs5dPzYvu64P+ns0TuaVJUQOSQkPfm0HhuJ1MlyxCIRv3WLi6BVXLJc1sojfLxzPf6HkSe2JxOhloh+TdYnab0MqzB6/+ePenv2egeBNqUrPgJnP+t6GK29T1bS2DOLxyNSF3ojtH5yn6ziAstLShiXrAhEJOWlBuM0mXBBUdsscRzw3VNsEia8nMFlMjl49vZMb75f3Xfz7/9eKrfjMLVMaFaSLzhpZ/hIpQUiieyFZPkUbK1HxoeRToXG5GCRCQ+Mz1B7W3PF8l5zdHGlUgFRlcwIeCdxG+3Fe8u5TuTX3DTfMP7k5IvVKdechkxOsdJxu0c/WVlZWf48gluJJ0wP23BkckJJzApUjyZ3SXhqbwNcIsV+5O6OYW9oW9kf6oj040IDqTkpQQzra1H9lNw55wY5m8y/f68MdOiQsanJI3o5hKxCR2dB0lVwvCpf1p+j6mG5kSTtHyWip2t31N752Sk0USQKThoVfC5hRU0iEZQyWX2Skqr0i2p0kzYfFyQAu51BIqoEzfHgEuuLM2BeKR0XaeOBrv7EQ8Z7bHIHzwvxE+mmY+hJ++VMZgLBPGv9LpQMY0CgAA";
private static final Logger log = LogManager.getLogger(BigTextEditor.class);
private static final long serialVersionUID = 1L;
/*-----------------------------------------------------------------------*/
/*--------------------------- Internal states ---------------------------*/
/*-----------------------------------------------------------------------*/
protected List