mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
restore old method newRow
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user