[intentions] OptPane: fix javadoc for tables

GitOrigin-RevId: cdfb4d5fc8ada147a7342b9dc79aa6a2e58aa3f0
This commit is contained in:
Tagir Valeev
2023-02-14 16:06:43 +01:00
committed by intellij-monorepo-bot
parent 496ee5b760
commit 41eaa04b21

View File

@@ -327,6 +327,8 @@ public record OptPane(@NotNull List<@NotNull OptRegularComponent> components) {
* @param label label above the control
* @param columns lists for every column
* @return new table
* @see #column(String, String)
* @see #column(String, String, StringValidator)
*/
public static @NotNull OptTable table(@NotNull @NlsContexts.Label String label, @NotNull OptTableColumn @NotNull ... columns) {
return new OptTable(new PlainMessage(label), List.of(columns), null);
@@ -334,27 +336,29 @@ public record OptPane(@NotNull List<@NotNull OptRegularComponent> components) {
/**
* @param bindId identifier of binding variable used by inspection; the corresponding variable is expected to be a mutable {@code List<String>}.
* @param label label above the control
* @return editable sorted list of unique strings
* @param name name of the table column
* @return editable table column
* @see #table(String, OptTableColumn...)
*/
@Contract(pure = true)
public static @NotNull OptTableColumn column(@Language("jvm-field-name") @NotNull String bindId,
@NotNull @NlsContexts.ColumnName String label) {
return new OptTableColumn(bindId, new PlainMessage(label), null);
@NotNull @NlsContexts.ColumnName String name) {
return new OptTableColumn(bindId, new PlainMessage(name), null);
}
/**
* @param bindId identifier of binding variable used by inspection; the corresponding variable is expected to be a mutable {@code List<String>}.
* @param label label above the control
* @param name name of the table column
* @param validator optional validator for content; can validate max-length or be something more complicated
* (e.g., validate that a string is a class-name which is a subclass of specific class)
* @return editable sorted list of unique strings
* @return editable table column
* @see #table(String, OptTableColumn...)
*/
@Contract(pure = true)
public static @NotNull OptTableColumn column(@Language("jvm-field-name") @NotNull String bindId,
@NotNull @NlsContexts.ColumnName String label,
@NotNull @NlsContexts.ColumnName String name,
@NotNull StringValidator validator) {
return new OptTableColumn(bindId, new PlainMessage(label), validator);
return new OptTableColumn(bindId, new PlainMessage(name), validator);
}
/* Layout elements */