Author: tchemit Date: 2009-07-27 22:26:02 +0200 (Mon, 27 Jul 2009) New Revision: 1510 Modified: trunk/jaxx-runtime-swing-widget/ trunk/jaxx-runtime-swing-widget/pom.xml trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/AboutPanel.jaxx trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/ClockWidget.jaxx trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/EntityComboBox.jaxx trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/EntityComboBoxHandler.java trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/ErrorDialogUI.jaxx trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/MemoryStatusWidget.jaxx trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/StatusMessagePanel.jaxx trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/StatusMessagePanelHandler.java trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/I18nEditor.jaxx trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/NumberEditor.jaxx trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/NumberEditorHandler.java trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/NumberEditorPopup.css trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/TimeEditor.css trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/TimeEditor.jaxx trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/TimeEditorHandler.java trunk/jaxx-runtime-swing-widget/src/main/resources/i18n/jaxx-runtime-swing-widget-en_GB.properties trunk/jaxx-runtime-swing-widget/src/main/resources/i18n/jaxx-runtime-swing-widget-fr_FR.properties trunk/jaxx-runtime-swing/src/main/java/jaxx/runtime/SwingUtil.java trunk/jaxx-runtime-swing/src/main/java/jaxx/runtime/swing/I18nTableCellRenderer.java trunk/pom.xml Log: normalize i18n keys in widgets, add ApplicationConfig ui to change preferences, degin of a ColumnSelector (should have a look in swingx...) Modified: trunk/jaxx-runtime-swing/src/main/java/jaxx/runtime/SwingUtil.java =================================================================== --- trunk/jaxx-runtime-swing/src/main/java/jaxx/runtime/SwingUtil.java 2009-07-24 08:00:05 UTC (rev 1509) +++ trunk/jaxx-runtime-swing/src/main/java/jaxx/runtime/SwingUtil.java 2009-07-27 20:26:02 UTC (rev 1510) @@ -5,6 +5,8 @@ import java.awt.Container; import java.awt.Desktop; import java.awt.Dimension; +import java.awt.Font; +import java.awt.FontMetrics; import java.awt.Rectangle; import java.beans.BeanInfo; import java.beans.IntrospectionException; @@ -184,6 +186,26 @@ combo.setItems(items); } + public static int computeTableColumnWidth(JTable table, Font font, int columnIndex, String suffix) { + int width = 0; + if (font == null) { + font = table.getFont(); + } +// if (font == null) { +// TableColumn column = table.getColumnModel().getColumn(columnIndex); +// font = ((JComponent) column.getCellRenderer()).getFont(); +// } + FontMetrics fontMetrics = table.getFontMetrics(font); + for (int i = 0, rowCount = table.getRowCount(); i < rowCount; i++) { + String key = (String) table.getModel().getValueAt(i, 0); + int w = fontMetrics.stringWidth(key + suffix); + if (w > width) { + width = w; + } + } + return width; + } + public static void fixTableColumnWidth(JTable table, int columnIndex, int width) { TableColumn column = table.getColumnModel().getColumn(columnIndex); column.setMaxWidth(width); Modified: trunk/jaxx-runtime-swing/src/main/java/jaxx/runtime/swing/I18nTableCellRenderer.java =================================================================== --- trunk/jaxx-runtime-swing/src/main/java/jaxx/runtime/swing/I18nTableCellRenderer.java 2009-07-24 08:00:05 UTC (rev 1509) +++ trunk/jaxx-runtime-swing/src/main/java/jaxx/runtime/swing/I18nTableCellRenderer.java 2009-07-27 20:26:02 UTC (rev 1510) @@ -42,6 +42,7 @@ } } + @Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasfocus, int row, int column) { if (column > keys.length) { throw new IndexOutOfBoundsException("colum can not be greater than " + keys.length); @@ -53,4 +54,13 @@ rendererComponent.setToolTipText(_(tips[index])); return rendererComponent; } + + public String[] getKeys() { + return keys; + } + + public String[] getTips() { + return tips; + } + } Property changes on: trunk/jaxx-runtime-swing-widget ___________________________________________________________________ Modified: svn:ignore - velocity.log target nbactions.xml + velocity.log target nbactions.xml nbproject Modified: trunk/jaxx-runtime-swing-widget/pom.xml =================================================================== --- trunk/jaxx-runtime-swing-widget/pom.xml 2009-07-24 08:00:05 UTC (rev 1509) +++ trunk/jaxx-runtime-swing-widget/pom.xml 2009-07-27 20:26:02 UTC (rev 1510) @@ -58,6 +58,7 @@ <properties> <jaxx.addSourcesToClassPath>true</jaxx.addSourcesToClassPath> + <!--jaxx.useUIManagerForIcon>true</jaxx.useUIManagerForIcon--> </properties> <build> @@ -96,6 +97,7 @@ <groupId>org.nuiton.i18n</groupId> <artifactId>maven-i18n-plugin</artifactId> <configuration> + <silent>true</silent> <entries> <entry> <basedir>${maven.gen.dir}/java/</basedir> Modified: trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/AboutPanel.jaxx =================================================================== --- trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/AboutPanel.jaxx 2009-07-24 08:00:05 UTC (rev 1509) +++ trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/AboutPanel.jaxx 2009-07-27 20:26:02 UTC (rev 1510) @@ -1,3 +1,25 @@ +<!-- + +/** + * *##% jaxx-runtime-swing-widget + * Copyright (C) 2008 - 2009 CodeLutin + * + * 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 + * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + */ + +--> <Table insets='1' background='{getBackgroundColor()}' border='{BorderFactory.createLineBorder(Color.BLACK, 1)}'> @@ -133,7 +155,7 @@ void $afterCompleteSetup() { buildTopPanel(); - close.setText(_("lutinwidget.aboutframe.ok")); + close.setText(_("aboutframe.ok")); } ]]> @@ -156,7 +178,7 @@ <row> <cell weighty='1' fill='both'> <JTabbedPane id='tabs'> - <tab title="lutinwidget.aboutframe.about"> + <tab title="aboutframe.about"> <JScrollPane id='aboutContent' border='{null}'> <JEditorPane contentType='text/html' editable='false' @@ -165,7 +187,7 @@ onHyperlinkUpdate='SwingUtil.openLink(event)'/> </JScrollPane> </tab> - <tab title="lutinwidget.aboutframe.license"> + <tab title="aboutframe.license"> <JScrollPane id='licenseContent' border='{null}'> <JTextArea id='licenseTextArea' editable='false' @@ -174,7 +196,7 @@ text='{SwingUtil.getStringValue(getLicenseText())}'/> </JScrollPane> </tab> - <tab title="lutinwidget.aboutframe.thirdparty"> + <tab title="aboutframe.thirdparty"> <JScrollPane id='thirdpartyContent' border='{null}'> <JTextArea id='thirdpartyTextArea' editable='false' @@ -199,4 +221,4 @@ </cell> </row> -</Table> \ No newline at end of file +</Table> Modified: trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/ClockWidget.jaxx =================================================================== --- trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/ClockWidget.jaxx 2009-07-24 08:00:05 UTC (rev 1509) +++ trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/ClockWidget.jaxx 2009-07-27 20:26:02 UTC (rev 1510) @@ -1,3 +1,25 @@ +<!-- + +/** + * *##% jaxx-runtime-swing-widget + * Copyright (C) 2008 - 2009 CodeLutin + * + * 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 + * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + */ + +--> <JLabel implements='ActionListener' foreground='{Color.BLACK}' background='{Color.WHITE}'> @@ -30,4 +52,4 @@ } ]]> </script> -</JLabel> \ No newline at end of file +</JLabel> Modified: trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/EntityComboBox.jaxx =================================================================== --- trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/EntityComboBox.jaxx 2009-07-24 08:00:05 UTC (rev 1509) +++ trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/EntityComboBox.jaxx 2009-07-27 20:26:02 UTC (rev 1510) @@ -1,3 +1,25 @@ +<!-- + +/** + * *##% jaxx-runtime-swing-widget + * Copyright (C) 2008 - 2009 CodeLutin + * + * 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 + * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + */ + +--> <Table fill='both' insets='0' onFocusGained='combobox.requestFocus()' onFocusLost='hidePopup()'> @@ -2,3 +24,2 @@ -<!--fill='both' insets='0'--> <!-- auto complete property --> @@ -42,7 +63,7 @@ <String id='popupTitleText' javaBean='null'/> - <String id='i18nPrefix' javaBean='"observe.common."'/> + <String id='i18nPrefix' javaBean='"entitycombobox.common."'/> <!-- popup to change sorted property--> <JPopupMenu id='popup' Modified: trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/EntityComboBoxHandler.java =================================================================== --- trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/EntityComboBoxHandler.java 2009-07-24 08:00:05 UTC (rev 1509) +++ trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/EntityComboBoxHandler.java 2009-07-27 20:26:02 UTC (rev 1510) @@ -1,3 +1,21 @@ +/** + * *##% jaxx-runtime-swing-widget + * Copyright (C) 2008 - 2009 CodeLutin + * + * 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 + * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + */ package jaxx.runtime.swing; import java.awt.Component; @@ -306,7 +324,6 @@ //Container container = ui.getIndexesContainer(); for (int i = 0, max = decorator.getNbContext(); i < max; i++) { String property = ui.getI18nPrefix() + decorator.getProperty(i); -// String property = "observe.common." + decorator.getProperty(i); String propertyI18n = _(property); JRadioButtonMenuItem button = new JRadioButtonMenuItem(propertyI18n); button.putClientProperty(JAXXButtonGroup.BUTTON8GROUP_CLIENT_PROPERTY, ui.getIndexes()); @@ -332,7 +349,6 @@ beanI18nKey = n_("entitycombobox.unknown.type"); } else { beanI18nKey = ui.getI18nPrefix() + Introspector.decapitalize(internalClass.getSimpleName()); - //beanI18nKey = "observe.common." + Introspector.decapitalize(internalClass.getSimpleName()); } String beanI18n = _(beanI18nKey); title = _(title, beanI18n); Modified: trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/ErrorDialogUI.jaxx =================================================================== --- trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/ErrorDialogUI.jaxx 2009-07-24 08:00:05 UTC (rev 1509) +++ trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/ErrorDialogUI.jaxx 2009-07-27 20:26:02 UTC (rev 1510) @@ -1,3 +1,25 @@ +<!-- + +/** + * *##% jaxx-runtime-swing-widget + * Copyright (C) 2008 - 2009 CodeLutin + * + * 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 + * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + */ + +--> <JDialog title='errorUI.title' modal='true'> <script><![CDATA[ protected static ErrorDialogUI instance; Modified: trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/MemoryStatusWidget.jaxx =================================================================== --- trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/MemoryStatusWidget.jaxx 2009-07-24 08:00:05 UTC (rev 1509) +++ trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/MemoryStatusWidget.jaxx 2009-07-27 20:26:02 UTC (rev 1510) @@ -1,4 +1,26 @@ +<!-- +/** + * *##% jaxx-runtime-swing-widget + * Copyright (C) 2008 - 2009 CodeLutin + * + * 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 + * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + */ + +--> + <JComponent implements='ActionListener' foreground='{Color.BLACK}' background='{Color.WHITE}' @@ -56,7 +78,7 @@ g.fillRect(insets.left, insets.top, (int) ((float) width * fraction), height); // No i18n string was : // String str = usedMemory / 1024 + "/" + totalMemory / 1024 + "Mb"; - String str = _("lutinwidget.message.statusbar.memory", usedMemory / 1024, totalMemory / 1024); + String str = _("memorywidget.memory", usedMemory / 1024, totalMemory / 1024); //FontRenderContext frc = new FontRenderContext(null, false, false); Rectangle2D bounds = g.getFont().getStringBounds(str, frc); Graphics g2 = g.create(); @@ -88,4 +110,4 @@ } ]]> </script> -</JComponent> \ No newline at end of file +</JComponent> Modified: trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/StatusMessagePanel.jaxx =================================================================== --- trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/StatusMessagePanel.jaxx 2009-07-24 08:00:05 UTC (rev 1509) +++ trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/StatusMessagePanel.jaxx 2009-07-27 20:26:02 UTC (rev 1510) @@ -1,4 +1,26 @@ +<!-- +/** + * *##% jaxx-runtime-swing-widget + * Copyright (C) 2008 - 2009 CodeLutin + * + * 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 + * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + */ + +--> + <Table border='{BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED)}' insets='0' implements='ActionListener'> Modified: trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/StatusMessagePanelHandler.java =================================================================== --- trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/StatusMessagePanelHandler.java 2009-07-24 08:00:05 UTC (rev 1509) +++ trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/StatusMessagePanelHandler.java 2009-07-27 20:26:02 UTC (rev 1510) @@ -1,3 +1,21 @@ +/** + * *##% jaxx-runtime-swing-widget + * Copyright (C) 2008 - 2009 CodeLutin + * + * 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 + * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + */ package jaxx.runtime.swing; import java.awt.Color; Modified: trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/I18nEditor.jaxx =================================================================== --- trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/I18nEditor.jaxx 2009-07-24 08:00:05 UTC (rev 1509) +++ trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/I18nEditor.jaxx 2009-07-27 20:26:02 UTC (rev 1510) @@ -1,4 +1,26 @@ +<!-- +/** + * *##% jaxx-runtime-swing-widget + * Copyright (C) 2008 - 2009 CodeLutin + * + * 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 + * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + */ + +--> + <JPanel implements='PropertyChangeListener, ActionListener' id='content' layout='{new BorderLayout()}' @@ -186,4 +208,4 @@ ]]> </script> -</JPanel> \ No newline at end of file +</JPanel> Modified: trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/NumberEditor.jaxx =================================================================== --- trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/NumberEditor.jaxx 2009-07-24 08:00:05 UTC (rev 1509) +++ trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/NumberEditor.jaxx 2009-07-27 20:26:02 UTC (rev 1510) @@ -1,4 +1,26 @@ +<!-- +/** + * *##% jaxx-runtime-swing-widget + * Copyright (C) 2008 - 2009 CodeLutin + * + * 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 + * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + */ + +--> + <JPanel layout='{new BorderLayout()}' onFocusGained='textField.requestFocus()' onFocusLost='setPopupVisible(false);popup.setVisible(false);' @@ -48,33 +70,33 @@ <JPanel layout='{new GridLayout(4,4)}' border='{BorderFactory.createEmptyBorder(4, 4, 4, 4)}' background='{Color.WHITE}'> - <JButton text='7' onActionPerformed='addChar(event)' styleClass='digit'/> - <JButton text='8' onActionPerformed='addChar(event)' styleClass='digit'/> - <JButton text='9' onActionPerformed='addChar(event)' styleClass='digit'/> + <JButton text='numbereditor.7' onActionPerformed='addChar(event)' styleClass='digit'/> + <JButton text='numbereditor.8' onActionPerformed='addChar(event)' styleClass='digit'/> + <JButton text='numbereditor.9' onActionPerformed='addChar(event)' styleClass='digit'/> <JButton text='numbereditor.clearAll' onActionPerformed='setModel(null)' styleClass='clear' enabled='{!getModelText().isEmpty()}'/> - <JButton text='4' onActionPerformed='addChar(event)' styleClass='digit'/> - <JButton text='5' onActionPerformed='addChar(event)' styleClass='digit'/> - <JButton text='6' onActionPerformed='addChar(event)' styleClass='digit'/> + <JButton text='numbereditor.4' onActionPerformed='addChar(event)' styleClass='digit'/> + <JButton text='numbereditor.5' onActionPerformed='addChar(event)' styleClass='digit'/> + <JButton text='numbereditor.6' onActionPerformed='addChar(event)' styleClass='digit'/> <JButton text='numbereditor.clearOne' onActionPerformed='getHandler().removeChar()' styleClass='clear' enabled='{!(getModelText().isEmpty() || textField.getCaretPosition() ==0 )}'/> - <JButton text='1' onActionPerformed='addChar(event)' styleClass='digit'/> - <JButton text='2' onActionPerformed='addChar(event)' styleClass='digit'/> - <JButton text='3' onActionPerformed='addChar(event)' styleClass='digit'/> + <JButton text='numbereditor.1' onActionPerformed='addChar(event)' styleClass='digit'/> + <JButton text='numbereditor.2' onActionPerformed='addChar(event)' styleClass='digit'/> + <JButton text='numbereditor.3' onActionPerformed='addChar(event)' styleClass='digit'/> <JButton enabled="false"/> - <JButton text='0' onActionPerformed='addChar(event)' styleClass='digit' + <JButton text='numbereditor.0' onActionPerformed='addChar(event)' styleClass='digit' enabled='{!getEditor().getModelText().equals("0")}'/> <JButton id='toggleSign' text='numbereditor.toggleSign' styleClass='operator' onActionPerformed='getHandler().toggleSign()' enabled='{isUseSign() && !getEditor().getModelText().isEmpty()}'/> - <JButton id='dot' text='.' styleClass='operator' + <JButton id='dot' text='numbereditor..' styleClass='operator' onActionPerformed='addChar(event)' enabled='{isUseFloat() && getEditor().getModelText().indexOf(".") == -1 }'/> @@ -127,13 +149,6 @@ onKeyReleased='getHandler().setModel(textField.getText())' onFocusGained='showPopup()'/> - <!--JFormattedTextField id='textField' constraints='BorderLayout.CENTER' - text='{getModelText()}' - enabled='{isEnabled()}' - onKeyReleased='getHandler().setModel(textField.getText())' - focusLostBehavior='0' - onFocusGained='showPopup()'/--> - <JToolBar constraints='BorderLayout.EAST' floatable='false' opaque='false' @@ -149,4 +164,4 @@ onActionPerformed='getHandler().setPopupVisible(!popup.isVisible())'/> </JToolBar> -</JPanel> \ No newline at end of file +</JPanel> Modified: trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/NumberEditorHandler.java =================================================================== --- trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/NumberEditorHandler.java 2009-07-24 08:00:05 UTC (rev 1509) +++ trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/NumberEditorHandler.java 2009-07-27 20:26:02 UTC (rev 1510) @@ -1,3 +1,21 @@ +/** + * *##% jaxx-runtime-swing-widget + * Copyright (C) 2008 - 2009 CodeLutin + * + * 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 + * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + */ package jaxx.runtime.swing.editor; import java.awt.Dimension; Modified: trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/NumberEditorPopup.css =================================================================== --- trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/NumberEditorPopup.css 2009-07-24 08:00:05 UTC (rev 1509) +++ trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/NumberEditorPopup.css 2009-07-27 20:26:02 UTC (rev 1510) @@ -1,3 +1,21 @@ +/** + * *##% jaxx-runtime-swing-widget + * Copyright (C) 2008 - 2009 CodeLutin + * + * 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 + * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + */ JButton { font-size: 14; focusPainted: false; Modified: trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/TimeEditor.css =================================================================== --- trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/TimeEditor.css 2009-07-24 08:00:05 UTC (rev 1509) +++ trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/TimeEditor.css 2009-07-27 20:26:02 UTC (rev 1510) @@ -1,3 +1,21 @@ +/** + * *##% jaxx-runtime-swing-widget + * Copyright (C) 2008 - 2009 CodeLutin + * + * 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 + * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + */ #title{ text:{getLabel()}; horizontalAlignment:center; @@ -10,7 +28,7 @@ } #labelH { - text:"H"; + text:"timeeditor.H"; horizontalAlignment:center; } #minute{ Modified: trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/TimeEditor.jaxx =================================================================== --- trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/TimeEditor.jaxx 2009-07-24 08:00:05 UTC (rev 1509) +++ trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/TimeEditor.jaxx 2009-07-27 20:26:02 UTC (rev 1510) @@ -1,4 +1,26 @@ +<!-- +/** + * *##% jaxx-runtime-swing-widget + * Copyright (C) 2008 - 2009 CodeLutin + * + * 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 + * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + */ + +--> + <JPanel layout='{new BorderLayout()}'> <style source='TimeEditor.css'/> Modified: trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/TimeEditorHandler.java =================================================================== --- trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/TimeEditorHandler.java 2009-07-24 08:00:05 UTC (rev 1509) +++ trunk/jaxx-runtime-swing-widget/src/main/java/jaxx/runtime/swing/editor/TimeEditorHandler.java 2009-07-27 20:26:02 UTC (rev 1510) @@ -1,3 +1,21 @@ +/** + * *##% jaxx-runtime-swing-widget + * Copyright (C) 2008 - 2009 CodeLutin + * + * 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 + * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + */ package jaxx.runtime.swing.editor; import java.awt.event.MouseAdapter; Modified: trunk/jaxx-runtime-swing-widget/src/main/resources/i18n/jaxx-runtime-swing-widget-en_GB.properties =================================================================== --- trunk/jaxx-runtime-swing-widget/src/main/resources/i18n/jaxx-runtime-swing-widget-en_GB.properties 2009-07-24 08:00:05 UTC (rev 1509) +++ trunk/jaxx-runtime-swing-widget/src/main/resources/i18n/jaxx-runtime-swing-widget-en_GB.properties 2009-07-27 20:26:02 UTC (rev 1510) @@ -1,15 +1,39 @@ -.=. -0=0 -1=1 -2=2 -3=3 -4=4 -5=5 -6=6 -7=7 -8=8 -9=9 -H=H +aboutframe.about=About +aboutframe.license=License +aboutframe.ok=OK +aboutframe.thirdparty=Third party +columnselection.action.tip= +columnselector.action.tip= +config.action.quit=Quit +config.action.quit.tip=Quit the configuration editor +config.action.reset=Cancel +config.action.reset.tip=Cancel the modifications for the category +config.action.save=Save +config.action.save.tip=Save the modifications for the category +config.choice.cancel=Cancel +config.choice.continue=Continue +config.choice.doNotSave=Do not save +config.choice.save=Save +config.defaultValue=Default value +config.defaultValue.tip=Default value of the option +config.descrition=Description +config.error.category.already.exists=category with name '%1$s' does already exist\! +config.error.category.not.found=category with name '%1$s' does not exist\! +config.key=Key +config.key.tip=Key of the option +config.message.quit.invalid.category=The category '%1$s' is not valid\! +config.message.quit.valid.and.modified.category=The category '%1$s' has some modified options \: +config.modified=Option was modified (previous value \: %1$s) +config.no.option.selected=< No selected option > +config.option.final=This option can not be modified +config.option.label=Option '%1$s' (%2$s) +config.option.modified=Value is modified < original value \: '%1$s' - new value \: '%2$s' > +config.title=Preferences +config.title.need.confirm=A confirmation is required +config.unmodifiable=Can not be modified +config.unvalid=Option is not valid \! (previous value \: %1$s, required type \: %2$s) +config.value=Value +config.value.tip=Value of the option entitycombobox.action.reset.tip=Reset the selected value entitycombobox.action.sort.tip=Change the sorted property entitycombobox.popup.label=Object '%1$s' @@ -24,13 +48,21 @@ i18neditor.popup.title=Change language i18neditor.selected=Selected language \: %1$s i18neditor.unselected=Select this langage \: %1$s -lutinwidget.aboutframe.about=About -lutinwidget.aboutframe.license=License -lutinwidget.aboutframe.ok=OK -lutinwidget.aboutframe.thirdparty=Third party -lutinwidget.message.statusbar.memory=%d/%dMb +memorywidget.memory=%d/%dMb +numbereditor..=. +numbereditor.0=0 +numbereditor.1=1 +numbereditor.2=2 +numbereditor.3=3 +numbereditor.4=4 +numbereditor.5=5 +numbereditor.6=6 +numbereditor.7=7 +numbereditor.8=8 +numbereditor.9=9 numbereditor.action.reset.tip=Reset numbereditor.action.show.tip=Show numeric panel numbereditor.clearAll=C numbereditor.clearOne=CE numbereditor.toggleSign=+/- +timeeditor.H=H Modified: trunk/jaxx-runtime-swing-widget/src/main/resources/i18n/jaxx-runtime-swing-widget-fr_FR.properties =================================================================== --- trunk/jaxx-runtime-swing-widget/src/main/resources/i18n/jaxx-runtime-swing-widget-fr_FR.properties 2009-07-24 08:00:05 UTC (rev 1509) +++ trunk/jaxx-runtime-swing-widget/src/main/resources/i18n/jaxx-runtime-swing-widget-fr_FR.properties 2009-07-27 20:26:02 UTC (rev 1510) @@ -1,15 +1,40 @@ -.=. -0=0 -1=1 -2=2 -3=3 -4=4 -5=5 -6=6 -7=7 -8=8 -9=9 -H=H +aboutframe.about=\u00C0 propos +aboutframe.license=Licence +aboutframe.ok=OK +aboutframe.thirdparty=Tierce partie +columnselection.action.tip= +columnselector.action.tip= +config.action.quit=Quitter +config.action.quit.tip=Quitter l'\u00E9diteur de configuration +config.action.reset=Annuler +config.action.reset.tip=Annuler les modifications de cette cat\u00E9gorie +config.action.save=Enregistrer +config.action.save.tip=Sauver les modifications de cette cat\u00E9gorie +config.choice.cancel=Annuler +config.choice.continue=Continuer +config.choice.doNotSave=Ne pas enregistrer +config.choice.save=Enregistrer +config.defaultValue=Valeur par d\u00E9faut +config.defaultValue.tip=Valeur par d\u00E9faut de l'option +config.descrition=Description +config.error.category.already.exists=La cat\u00E9gorie de nom '%1$s' existe d\u00E9j\u00E0\! +config.error.category.not.found=La cat\u00E9gorie de nom '%1$s' n'existe pas\! +config.key=Clef +config.key.tip=Clef de l'option +config.message.quit.invalid.category=La cat\u00E9gorie '%1$s' n'est pas valide\! +config.message.quit.valid.and.modified.category=La cat\u00E9gorie '%1$s' poss\u00E8dent des options modifi\u00E9es \: +config.modified=Option modifi\u00E9e (valeur originale \: %1$s) +config.no.option.selected=< Pas d'option s\u00E9lectionn\u00E9e > +config.option.final=Option non modifiable +config.option.label=Option '%1$s' (%2$s) +config.option.modified=Valeur modifi\u00E9e < nouvelle valeur \: '%1$s' - ancienne valeur \: '%2$s' > +config.option.valid=Valeur non valide +config.title=Pr\u00E9f\u00E9rences +config.title.need.confirm=Une confirmation de votre part est requise... +config.unmodifiable=Ne peut pas \u00EAtre modifi\u00E9 +config.unvalid=Option non valide (valeur originale \: %1$s, type requis \: %2$s) +config.value=Valeur +config.value.tip=Valeur de l'option entitycombobox.action.reset.tip=R\u00E9initialiser la valeur de la liste d\u00E9roulante entitycombobox.action.sort.tip=Modifier le tri de la liste d\u00E9roulante entitycombobox.popup.label=Objet '%1$s' @@ -24,13 +49,21 @@ i18neditor.popup.title=Changer de langue i18neditor.selected=Langue actuellement utilis\u00E9e \: %1$s i18neditor.unselected=Pour utiliser cette langue \: %1$s -lutinwidget.aboutframe.about=\u00C0 propos -lutinwidget.aboutframe.license=Licence -lutinwidget.aboutframe.ok=OK -lutinwidget.aboutframe.thirdparty=Tierce partie -lutinwidget.message.statusbar.memory=%d/%dMo +memorywidget.memory=%d/%dMo +numbereditor..=. +numbereditor.0=0 +numbereditor.1=1 +numbereditor.2=2 +numbereditor.3=3 +numbereditor.4=4 +numbereditor.5=5 +numbereditor.6=6 +numbereditor.7=7 +numbereditor.8=8 +numbereditor.9=9 numbereditor.action.reset.tip=R\u00E9initialiser numbereditor.action.show.tip=Afficher le pav\u00E9 num\u00E9rique numbereditor.clearAll=C numbereditor.clearOne=CE numbereditor.toggleSign=+/- +timeeditor.H=H Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2009-07-24 08:00:05 UTC (rev 1509) +++ trunk/pom.xml 2009-07-27 20:26:02 UTC (rev 1510) @@ -10,7 +10,7 @@ <parent> <groupId>org.nuiton</groupId> <artifactId>mavenpom</artifactId> - <version>1.0.0-rc-4</version> + <version>1.0.0-rc-5-SNAPSHOT</version> </parent> <artifactId>jaxx</artifactId> @@ -172,8 +172,8 @@ <!-- pour un muli module on doit fixer le projectId --> <projectId>jaxx</projectId> - <lutinutil.version>1.1.0-rc-8</lutinutil.version> - <i18n.version>1.0.0-rc-4</i18n.version> + <lutinutil.version>1.1.0-rc-9-SNAPSHOT</lutinutil.version> + <i18n.version>1.0.0-rc-5-SNAPSHOT</i18n.version> </properties>