[jaxx] branch develop updated (cd87466 -> 05086db)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository jaxx. See http://git.nuiton.org/jaxx.git from cd87466 move focus to component logic to a method new 7577c0a remove deprecated code on getComponentToFocus since we add a method to customize how to do this new 05086db fixes #3455: Add more useful method on org.nuiton.jaxx.application.swing.table.AbstractApplicationTableModel The 2 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 05086db30659ec5d26951b3c600a2154401d7053 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Aug 21 15:20:11 2014 +0200 fixes #3455: Add more useful method on org.nuiton.jaxx.application.swing.table.AbstractApplicationTableModel commit 7577c0a9c065c9c5571aeb01c5e1a88d5bbf62ad Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Aug 21 08:05:59 2014 +0200 remove deprecated code on getComponentToFocus since we add a method to customize how to do this Summary of changes: .../swing/AbstractApplicationUIHandler.java | 4 --- .../swing/table/AbstractApplicationTableModel.java | 42 +++++++++++++++++++++- 2 files changed, 41 insertions(+), 5 deletions(-) -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository jaxx. See http://git.nuiton.org/jaxx.git commit 7577c0a9c065c9c5571aeb01c5e1a88d5bbf62ad Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Aug 21 08:05:59 2014 +0200 remove deprecated code on getComponentToFocus since we add a method to customize how to do this --- .../nuiton/jaxx/application/swing/AbstractApplicationUIHandler.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/jaxx-application-swing/src/main/java/org/nuiton/jaxx/application/swing/AbstractApplicationUIHandler.java b/jaxx-application-swing/src/main/java/org/nuiton/jaxx/application/swing/AbstractApplicationUIHandler.java index 5402c8d..beacb19 100644 --- a/jaxx-application-swing/src/main/java/org/nuiton/jaxx/application/swing/AbstractApplicationUIHandler.java +++ b/jaxx-application-swing/src/main/java/org/nuiton/jaxx/application/swing/AbstractApplicationUIHandler.java @@ -597,10 +597,6 @@ public abstract class AbstractApplicationUIHandler<M, UI extends ApplicationUI<M }); } - /** - * @deprecated since 2.10, should find a more suitable way of doing this (by a contract for example) - */ - @Deprecated protected abstract JComponent getComponentToFocus(); protected void initTextField(JTextField jTextField) { -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository jaxx. See http://git.nuiton.org/jaxx.git commit 05086db30659ec5d26951b3c600a2154401d7053 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Aug 21 15:20:11 2014 +0200 fixes #3455: Add more useful method on org.nuiton.jaxx.application.swing.table.AbstractApplicationTableModel --- .../swing/table/AbstractApplicationTableModel.java | 42 +++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/jaxx-application-swing/src/main/java/org/nuiton/jaxx/application/swing/table/AbstractApplicationTableModel.java b/jaxx-application-swing/src/main/java/org/nuiton/jaxx/application/swing/table/AbstractApplicationTableModel.java index 569fad4..e1e82b4 100644 --- a/jaxx-application-swing/src/main/java/org/nuiton/jaxx/application/swing/table/AbstractApplicationTableModel.java +++ b/jaxx-application-swing/src/main/java/org/nuiton/jaxx/application/swing/table/AbstractApplicationTableModel.java @@ -312,7 +312,7 @@ public abstract class AbstractApplicationTableModel<R extends Serializable> exte return Iterables.indexOf(identifiers, new Predicate<ColumnIdentifier<R>>() { @Override public boolean apply(ColumnIdentifier<R> input) { - return ObjectUtils.equals(propertyName,input.getPropertyName()); + return ObjectUtils.equals(propertyName, input.getPropertyName()); } }); } @@ -326,4 +326,44 @@ public abstract class AbstractApplicationTableModel<R extends Serializable> exte return cell; } + + public void moveUp(R row) { + + int rowIndex = getRowIndex(row); + + if (log.isInfoEnabled()) { + log.info("Will move up row of index: " + rowIndex); + } + rows.remove(rowIndex); + rows.add(rowIndex - 1, row); + fireTableRowsUpdated(rowIndex - 1, rowIndex); + + } + + public void moveDown(R row) { + + int rowIndex = getRowIndex(row); + + if (log.isInfoEnabled()) { + log.info("Will move down row of index: " + rowIndex); + } + rows.remove(rowIndex); + rows.add(rowIndex + 1, row); + fireTableRowsUpdated(rowIndex, rowIndex + 1); + + } + + public boolean isFirstRow(R row) { + + int rowIndex = getRowIndex(row); + return rowIndex == 0; + + } + + public boolean isLastRow(R row) { + + int rowIndex = getRowIndex(row); + return rowIndex == getRowCount() - 1; + + } } -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.
participants (1)
-
nuiton.org scm