本文整理了Java中javax.swing.JSpinner.getClientProperty()
方法的一些代码示例,展示了JSpinner.getClientProperty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JSpinner.getClientProperty()
方法的具体详情如下:
包路径:javax.swing.JSpinner
类名称:JSpinner
方法名:getClientProperty
暂无
代码示例来源:origin: com.jidesoft/jide-oss
public static void uninstallMouseWheelSupport(final JSpinner spinner) {
MouseWheelListener l = (MouseWheelListener) spinner.getClientProperty(CLIENT_PROPERTY_MOUSE_WHEEL_LISTENER);
if (l != null) {
spinner.removeMouseWheelListener(l);
}
}
}
代码示例来源:origin: stackoverflow.com
final short val = Short.parseShort( String.valueOf(evt.getNewValue()) );
if (Math.abs(swing)<2D)
System.out.printf("This is a DIRECTION CHANGE\nOld Direction=%s;\nNew Direction=%s;\nProp Value: %s", swing, val, spinnerRef.getClientProperty(pName) ).println();
else //arrows
System.out.printf("This is the CURRENT DIRECTION\nArrow=%s;\nDirection=%s;\nProp Value: %s", swing, val, spinnerRef.getClientProperty(pName) ).println();
代码示例来源:origin: khuxtable/seaglass
private void updateEditorAlignment(JComponent editor) {
if (editor instanceof JSpinner.DefaultEditor) {
SeaGlassContext context = getContext(spinner);
Integer alignment = (Integer)context.getStyle().get(
context, "Spinner.editorAlignment");
JTextField text = ((JSpinner.DefaultEditor)editor).getTextField();
if (alignment != null) {
text.setHorizontalAlignment(alignment);
}
// copy across the sizeVariant property to the editor
text.putClientProperty("JComponent.sizeVariant",
spinner.getClientProperty("JComponent.sizeVariant"));
}
}
内容来源于网络,如有侵权,请联系作者删除!