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 fr.ird.observe.client.util.comment;
/*-
* #%L
* ObServe Toolkit :: Common Client
* %%
* Copyright (C) 2008 - 2017 IRD, Ultreia.io
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU 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 Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* .
* #L%
*/
import fr.ird.observe.dto.WithComment;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.LayoutManager;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
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.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
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.binding.DefaultJAXXBinding;
import org.nuiton.jaxx.runtime.binding.SimpleJAXXObjectBinding;
import org.nuiton.jaxx.runtime.context.DefaultJAXXContext;
import org.nuiton.jaxx.runtime.swing.SwingUtil;
import static org.nuiton.i18n.I18n.t;
import static org.nuiton.jaxx.runtime.swing.SwingUtil.getStringValue;
public class JComment extends JPanel implements JAXXObject {
/*-----------------------------------------------------------------------*/
/*---------------- Constants for all javaBean properties ----------------*/
/*-----------------------------------------------------------------------*/
public static final String PROPERTY_MODEL = "model";
public static final String PROPERTY_TITLE = "title";
/*-----------------------------------------------------------------------*/
/*------------------ Constants for all public bindings ------------------*/
/*-----------------------------------------------------------------------*/
public static final String BINDING_COMMENT2_TEXT = "comment2.text";
public static final String BINDING_TITLE_LABEL_TEXT = "titleLabel.text";
/*-----------------------------------------------------------------------*/
/*------------------------- Other static fields -------------------------*/
/*-----------------------------------------------------------------------*/
private static final String $jaxxObjectDescriptor = "H4sIAAAAAAAAANVYW28TRxQem9jBjgnXUqAVhJBCIsoaBwoVIEoSJ2DXuYiYi8hDOt4dOwPjnWV2Fjuy4KEPfesf6ENf+1LxH1CfKvWlr/yHSvyEntm1d+1kbW9apLSWvLJnz3znO2fOZWZ+/QslbIG+5KKmmQ6V3NSe42ZTE44paZ1oxbmnT1crz4ku88TWBbUkF8j7xOIovoHGDH/clkjbKAFS1kPKKqRsGym7wOsWN4nZBXS7hNK23GbE3iJESjTdd7Ju29l1X/J203JEW1co6zBdf/yQex8j+Z/iCDUtoD8GZl/eA0Bg9UgJxakh0bHSc/wKZxk2a0BOULMGBh1SYwsM2/YKrpOX6A0aLaGkhQWASXTlH7nHhXOhmpZEB6eKa9gk7KpEl6tCo8LQeMUm4hXRdEYBQXMkZZrO63X1p7jg/bAsFyIpUaLODcIkOrtjtiG59oTKrd0TJJWMSHRE2aYpezXP3kBktK1Ook+VUFOzG/BeK67rgjOm+CrBlC9/sC0/K9EnPRPKpCnnBMFK7pgvntE5c+rmA4INIsDzPVNcbwRUOv7Jqf9n1OOU/y7tWlLCFWV/L4o7qMQ+86VT1Kxyf/xc78v0VLHMOZvHAhbiRK8N3niv6owgNpELHTcd75kx70iICCU5KdGYK+kNQZBe7BekkBRakBRBfMY2UEI4MCzRhf75qFLqIUh5yXShfzIpNa7g92/fiF8aH953Mug8kJsYNqurWEA4W4JbsIBUcTvspY8K1uwytm5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MEbwBu5HYV2Gq/cuBYbpVC5dwXilTq+xSONe5y/Aaq9Z95tZk2IZhx8E8gsa2tZlW4MFQB3bdNUTwYc9WYExdPKj9NnX/9Zh4ZoeJ+mDrgjuMCKYlYffOYRuBxu8YcLSdqFATtue1u7uAY+qZjoC4KwpBMjYVjnd8KJ6afGEAwul/jfB5lACguntX0w/jfCQWNwYgXASEvwGEBnsBmhUAAA==";
private static final Log log = LogFactory.getLog(JComment.class);
private static final long serialVersionUID = 1L;
/*-----------------------------------------------------------------------*/
/*--------------------------- Internal states ---------------------------*/
/*-----------------------------------------------------------------------*/
protected List