summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/ui/ButtonList.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-15 14:14:28 +0200
committerNoel Grandin <noel@peralex.com>2014-10-16 08:15:43 +0200
commitecc90694175190cd6e2b9d1bed8f32850d41ce88 (patch)
treed5c9fb3cc3cc52be2e7729ca0e96675c7493fdfd /wizards/com/sun/star/wizards/ui/ButtonList.java
parent95a2f7390753c4edcec70626b6d91c63a7c200ff (diff)
java: use 'Short.valueOf' instead of 'new Short'
Change-Id: I2f0156899b75dd8a3a5600be887b6ac9b6fbdec0
Diffstat (limited to 'wizards/com/sun/star/wizards/ui/ButtonList.java')
-rw-r--r--wizards/com/sun/star/wizards/ui/ButtonList.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/wizards/com/sun/star/wizards/ui/ButtonList.java b/wizards/com/sun/star/wizards/ui/ButtonList.java
index 9d9504a2e055..90e0dee622cb 100644
--- a/wizards/com/sun/star/wizards/ui/ButtonList.java
+++ b/wizards/com/sun/star/wizards/ui/ButtonList.java
@@ -32,8 +32,10 @@ import com.sun.star.wizards.common.Helper;
import com.sun.star.wizards.common.IRenderer;
import com.sun.star.wizards.common.PropertySetHelper;
import com.sun.star.wizards.common.PropertyNames;
+
import javax.swing.ListModel;
import javax.swing.event.ListDataEvent;
+
import com.sun.star.wizards.common.HelpIds;
public class ButtonList implements XItemEventBroadcaster, XActionListener
@@ -166,7 +168,7 @@ public class ButtonList implements XItemEventBroadcaster, XActionListener
Integer.valueOf(pos.Width + (m_aButtonSize.Width + gap.Width) * cols + gap.Width - btnSize.intValue() + 1),
Integer.valueOf(pos.Height + (m_aButtonSize.Height + gap.Height) * rows + gap.Height + imageTextHeight + 1),
step,
- new Short((short) (tabIndex + 2)),
+ Short.valueOf((short) (tabIndex + 2)),
Boolean.TRUE,
btnSize
});
@@ -183,14 +185,14 @@ public class ButtonList implements XItemEventBroadcaster, XActionListener
Integer.valueOf(cols * (m_aButtonSize.Width + gap.Width) + gap.Width - 2 * btnSize.intValue() - 1)
});
- Helper.setUnoPropertyValue(getModel(lblCounter), PropertyNames.PROPERTY_ALIGN, new Short((short) 1));
+ Helper.setUnoPropertyValue(getModel(lblCounter), PropertyNames.PROPERTY_ALIGN, Short.valueOf((short) 1));
Helper.setUnoPropertyValue(getModel(btnBack), PropertyNames.PROPERTY_LABEL, "<");
Helper.setUnoPropertyValue(getModel(btnNext), PropertyNames.PROPERTY_LABEL, ">");
}
- m_tabIndex = new Short((short) tabIndex);
+ m_tabIndex = Short.valueOf((short) tabIndex);
m_aButtons = new XControl[rows * cols];