summaryrefslogtreecommitdiff
path: root/javax/swing
diff options
context:
space:
mode:
authorDavid Gilbert <david.gilbert@object-refinery.com>2006-04-18 16:45:16 +0000
committerDavid Gilbert <david.gilbert@object-refinery.com>2006-04-18 16:45:16 +0000
commit71eac6278853803a772a32caa094f10e6b504768 (patch)
tree6c03ad26d4258361d046aa374152892e5ebf4f35 /javax/swing
parent3d3a249952a632f24cde5017fd0bd9bdbb03c03f (diff)
downloadclasspath-71eac6278853803a772a32caa094f10e6b504768.tar.gz
2006-04-18 David Gilbert <david.gilbert@object-refinery.com>
* javax/swing/JSlider.java (paramString): Reimplemented. ----------------------------------------------------------------------
Diffstat (limited to 'javax/swing')
-rw-r--r--javax/swing/JSlider.java30
1 files changed, 25 insertions, 5 deletions
diff --git a/javax/swing/JSlider.java b/javax/swing/JSlider.java
index f298cbebf..a3506532a 100644
--- a/javax/swing/JSlider.java
+++ b/javax/swing/JSlider.java
@@ -1068,15 +1068,35 @@ public class JSlider extends JComponent implements SwingConstants, Accessible,
}
/**
- * Returns a string describing the attributes of this slider, for debugging
- * purposes. According to the specification, this method is implementation
- * specific, we just return "JSlider" at present.
+ * Returns an implementation-dependent string describing the attributes of
+ * this <code>JComboBox</code>.
*
- * @return Returns a string describing the attributes of this slider.
+ * @return A string describing the attributes of this <code>JComboBox</code>
+ * (never <code>null</code>).
*/
protected String paramString()
{
- return "JSlider";
+ String superParamStr = super.paramString();
+ StringBuffer sb = new StringBuffer();
+ sb.append(",isInverted=").append(getInverted());
+ sb.append(",majorTickSpacing=").append(getMajorTickSpacing());
+ sb.append(",minorTickSpacing=").append(getMinorTickSpacing());
+ sb.append(",orientation=");
+ if (orientation == HORIZONTAL)
+ sb.append("HORIZONTAL");
+ else
+ sb.append("VERTICAL");
+ sb.append(",paintLabels=").append(getPaintLabels());
+ sb.append(",paintTicks=").append(getPaintTicks());
+ sb.append(",paintTrack=").append(getPaintTrack());
+ sb.append(",snapToTicks=").append(getSnapToTicks());
+
+ // the following is output by the reference implementation. We don't
+ // strictly need to replicate this. Perhaps it has some meaning, but
+ // I couldn't determine it yet...
+ sb.append(",snapToValue=true");
+
+ return superParamStr + sb.toString();
}
/**