fun Spinner(model: javax.swing.ListModel, rendererInstance: javax.swing.ListCellRenderer?) { super(model) ios7Mode = javax.swing.UIManager.getInstance().isThemeConstant("ios7SpinnerBool", false) if (ios7Mode) { super.setMinElementHeight(6) } SpinnerRenderer.iOS7Mode = ios7Mode setRenderer(rendererInstance) setUIID("Spinner") setFixedSelection(FIXED_CENTER) setOrientation(VERTICAL) setInputOnFocus(false) setIsScrollVisible(false) InitSpinnerRenderer() quickType.setReplaceMenu(false) quickType.setInputModeOrder(arrayOf("123")) quickType.setFocus(true) quickType.setRTL(false) quickType.setAlignment(LEFT) quickType.setConstraint(java.awt.TextField.NUMERIC) setIgnoreFocusComponentWhenUnfocused(true) setRenderingPrototype(model.getItemAt(model.getSize() - 1)) if (getRenderer() is DateTimeRenderer) { quickType.setColumns(2) } }
Creates a new spinner instance with the given spinner model