Skip to content

Commit 44b9fe9

Browse files
javadoc syncStateWithConfig override
1 parent 6cca386 commit 44b9fe9

File tree

1 file changed

+8
-1
lines changed
  • enigma-swing/src/main/java/org/quiltmc/enigma/gui/util

1 file changed

+8
-1
lines changed

enigma-swing/src/main/java/org/quiltmc/enigma/gui/util/GuiUtil.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ public static JCheckBox createSyncedCheckBox(TrackedValue<Boolean> config) {
429429

430430
/**
431431
* Adds listeners to the passed {@code box} and {@code config} that keep the
432-
* {@link JCheckBoxMenuItem#getState() state} of the {@code box} and the
432+
* {@link JCheckBoxMenuItem#getState() state} of the {@code box} and the
433433
* {@link TrackedValue#value() value} of the {@code config} in sync.
434434
*
435435
* @see #createSyncedMenuCheckBox(TrackedValue)
@@ -438,6 +438,13 @@ public static void syncStateWithConfig(JCheckBoxMenuItem box, TrackedValue<Boole
438438
syncStateWithConfigImpl(box, box::setState, box::getState, config);
439439
}
440440

441+
/**
442+
* Adds listeners to the passed {@code box} and {@code config} that keep the
443+
* {@linkplain JCheckBox#isSelected() selected state} of the {@code box} and the
444+
* {@link TrackedValue#value() value} of the {@code config} in sync.
445+
*
446+
* @see #createSyncedCheckBox(TrackedValue)
447+
*/
441448
public static void syncStateWithConfig(JCheckBox box, TrackedValue<Boolean> config) {
442449
syncStateWithConfigImpl(box, box::setSelected, box::isSelected, config);
443450
}

0 commit comments

Comments
 (0)