restore old method newRow

This commit is contained in:
Vladimir Krivosheev
2018-04-16 10:10:25 +02:00
parent 644ae31525
commit 579c8eb058
2 changed files with 5 additions and 2 deletions
@@ -62,7 +62,7 @@ abstract class Row : Cell() {
@PublishedApi
internal abstract fun setCellMode(value: Boolean)
// override here for backward compatibility
// backward compatibility
@Deprecated(level = DeprecationLevel.HIDDEN, message = "deprecated")
operator fun JComponent.invoke(vararg constraints: CCFlags, gapLeft: Int = 0, growPolicy: GrowPolicy? = null) {
invoke(constraints = *constraints, gapLeft = gapLeft, growPolicy = growPolicy, comment = null)
@@ -6,7 +6,6 @@ import java.awt.Container
import javax.swing.ButtonGroup
import javax.swing.JLabel
// https://jetbrains.github.io/ui/controls/input_field/#spacing
@PublishedApi
internal fun createLayoutBuilder(): LayoutBuilder {
return LayoutBuilder(MigLayoutBuilder(createIntelliJSpacingConfiguration()))
@@ -15,6 +14,10 @@ internal fun createLayoutBuilder(): LayoutBuilder {
interface LayoutBuilderImpl {
fun newRow(label: JLabel? = null, buttonGroup: ButtonGroup? = null, separated: Boolean = false): Row
// backward compatibility
@Deprecated(level = DeprecationLevel.HIDDEN, message = "deprecated")
fun newRow(label: JLabel? = null, buttonGroup: ButtonGroup? = null, separated: Boolean = false, indented: Boolean = false) = newRow(label, buttonGroup, separated)
fun build(container: Container, layoutConstraints: Array<out LCFlags>)
fun noteRow(text: String, linkHandler: ((url: String) -> Unit)? = null)