branch feature/1206 created (now fded943)
This is an automated email from the git hooks/post-receive script. New change to branch feature/1206 in repository lima. See http://git.chorem.org/lima.git at fded943 fixes #1206 Reduire la taille minimale de l'application This branch includes the following new commits: new d77d66d prefer use inner class than anonymous class new eda4da1 fixes #1202: Optimisation du temps de réponses de l'UI new fded943 fixes #1206 Reduire la taille minimale de l'application The 3 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit fded943114440b76c1f7c463fccbf71f44be1851 Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Mar 20 16:40:38 2015 +0100 fixes #1206 Reduire la taille minimale de l'application commit eda4da148507cb539918947081b32fcaf10378b5 Merge: b9b6b57 d77d66d Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Mar 20 16:35:05 2015 +0100 fixes #1202: Optimisation du temps de réponses de l'UI commit d77d66d27b592989e4030442eae4cc9fbda95f04 Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Mar 20 16:34:57 2015 +0100 prefer use inner class than anonymous class -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/1206 in repository lima. See http://git.chorem.org/lima.git commit d77d66d27b592989e4030442eae4cc9fbda95f04 Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Mar 20 16:34:57 2015 +0100 prefer use inner class than anonymous class --- .../java/org/chorem/lima/ui/MainViewHandler.java | 41 ++++++++++++++++------ 1 file changed, 30 insertions(+), 11 deletions(-) diff --git a/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java b/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java index 7c23447..5642ced 100644 --- a/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java +++ b/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java @@ -49,12 +49,19 @@ import org.chorem.lima.ui.vatchart.VatChartView; import org.nuiton.util.DesktopUtil; import org.nuiton.widget.SwingSession; -import javax.swing.*; +import javax.swing.DefaultCellEditor; +import javax.swing.ImageIcon; +import javax.swing.JButton; +import javax.swing.JComboBox; +import javax.swing.JEditorPane; +import javax.swing.JScrollPane; +import javax.swing.JTabbedPane; +import javax.swing.UIManager; import javax.swing.border.LineBorder; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import javax.swing.plaf.BorderUIResource; -import java.awt.*; +import java.awt.Component; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; @@ -360,15 +367,8 @@ public class MainViewHandler { MainView mainView = getUI(rootContext); final HomeView homeView = new HomeView(mainView); showTab(mainView, t("lima.home"), homeView, false); - final JTabbedPane contentTabbedPane = mainView.getContentTabbedPane(); - contentTabbedPane.addChangeListener(new ChangeListener() { - @Override - public void stateChanged(ChangeEvent e) { - if (contentTabbedPane.getSelectedComponent().equals(homeView)) { - homeView.refresh(); - } - } - }); + JTabbedPane contentTabbedPane = mainView.getContentTabbedPane(); + contentTabbedPane.addChangeListener(new OnTabChangeListener(homeView)); } @@ -572,4 +572,23 @@ public class MainViewHandler { protected void showTab(MainView ui, String name, Component container) { showTab(ui, name, container, true); } + + protected static class OnTabChangeListener implements ChangeListener { + + protected final HomeView homeView; + + public OnTabChangeListener(HomeView homeView) { + this.homeView = homeView; + } + + @Override + public void stateChanged(ChangeEvent e) { + JTabbedPane source = (JTabbedPane) e.getSource(); + if (source.getSelectedIndex()==0) { + homeView.refresh(); + } + } + + } + } -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/1206 in repository lima. See http://git.chorem.org/lima.git commit eda4da148507cb539918947081b32fcaf10378b5 Merge: b9b6b57 d77d66d Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Mar 20 16:35:05 2015 +0100 fixes #1202: Optimisation du temps de réponses de l'UI .../java/org/chorem/lima/ui/MainViewHandler.java | 37 +++++++++++++-- .../FinancialTransactionViewHandler.java | 53 +++++++++++++--------- .../lima/ui/home/FinancialTransactionsPane.java | 4 +- .../java/org/chorem/lima/ui/home/HomeView.jaxx | 23 ++++++++-- 4 files changed, 85 insertions(+), 32 deletions(-) -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/1206 in repository lima. See http://git.chorem.org/lima.git commit fded943114440b76c1f7c463fccbf71f44be1851 Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Mar 20 16:40:38 2015 +0100 fixes #1206 Reduire la taille minimale de l'application --- lima-swing/src/main/java/org/chorem/lima/ui/MainView.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lima-swing/src/main/java/org/chorem/lima/ui/MainView.css b/lima-swing/src/main/java/org/chorem/lima/ui/MainView.css index 0bb7df4..06b2b89 100644 --- a/lima-swing/src/main/java/org/chorem/lima/ui/MainView.css +++ b/lima-swing/src/main/java/org/chorem/lima/ui/MainView.css @@ -24,7 +24,7 @@ title : "lima.title"; width : 1024; height : 768; - minimumSize : {new Dimension(1024,768)}; + minimumSize : {new Dimension(320,240)}; resizable : true; extendedState : "{this.MAXIMIZED_BOTH}" ; iconImage : "puzzle_icon.png"; -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
participants (1)
-
chorem.org scm