Package com.fwdekker.randomness.ui

Custom or specialized Swing components.

Types

ActivityTableModelEditor
Link copied to clipboard
abstract class ActivityTableModelEditor<T>(columns: Array<ColumnInfo<EditableDatum<T>, *>>, itemEditor: CollectionItemEditor<EditableDatum<T>>, emptyText: String, emptySubText: String, isCopyable: (T) -> Boolean, columnAdjuster: (List<TableColumn>) -> Unit) : TableModelEditor<EditableDatum<T>>
A table that associates a certain data type with a checkbox.
EditableDatum
Link copied to clipboard
data class EditableDatum<T>(active: Boolean, datum: T)
An entry in the table.
JDoubleSpinner
Link copied to clipboard
class JDoubleSpinner(value: Double, minValue: Double, maxValue: Double, stepSize: Double, description: String?) : JNumberSpinner<Double>
A JNumberSpinner for doubles.
JIntSpinner
Link copied to clipboard
class JIntSpinner(value: Int, minValue: Int, maxValue: Int, stepSize: Int, description: String?) : JNumberSpinner<Int>
A JNumberSpinner for integers.
JLongSpinner
Link copied to clipboard
class JLongSpinner(value: Long, minValue: Long, maxValue: Long, stepSize: Long, description: String?) : JNumberSpinner<Long>
A JNumberSpinner for longs.
JNumberSpinner
Link copied to clipboard
abstract class JNumberSpinner<T : Number, Comparable<T>>(value: T, minValue: T, maxValue: T, stepSize: T, description: String?) : JSpinner
An abstract JSpinner for numbers that contains common logic for its subclasses.
JSpinnerRange
Link copied to clipboard
class JSpinnerRange(min: JSpinner, max: JSpinner, maxRange: Double?, name: String?)
A container for two JSpinners that indicate a range of values.
PreviewPanel
Link copied to clipboard
class PreviewPanel(getGenerator: () -> DataInsertAction)
A panel that shows a preview of the values generated by a DataInsertAction.

Functions

buttons
Link copied to clipboard
fun ButtonGroup.buttons(): Array<AbstractButton>
Returns the buttons in this button group as a typed array.
forEach
Link copied to clipboard
fun ButtonGroup.forEach(consumer: (AbstractButton) -> Unit)
Executes a consumer for each button in a group.
getValue
Link copied to clipboard
fun ButtonGroup.getValue(): String?
Returns the action command of the currently selected button, or null if no button is selected.
registerModifierActions
Link copied to clipboard
fun ListPopupImpl.registerModifierActions(captionModifier: (ActionEvent?) -> String)
Registers actions such that actions can be selected while holding (combinations of) modifier keys.
setValue
Link copied to clipboard
fun ButtonGroup.setValue(value: Any?)
Sets the currently selected button to the button with the given action command.