This commit is contained in:
Felix Homa 2022-03-28 02:15:37 +02:00
parent ae3cd5a578
commit 43aa49e419
Signed by: felix.homa
GPG Key ID: 43610F311720D3DA
8 changed files with 31 additions and 13 deletions

View File

@ -16,6 +16,8 @@ import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import de.tuDortmund.cs.rvs.pingger.korrekturHelper.nodes.*;
/**
* @author Pingger
*/
@ -116,12 +118,12 @@ public class KorrekturHelper
if (lines[li + 1].trim().startsWith("[]"))
{
li = i - 1;
yield new CheckboxMultiSelect(sb.toString());
yield new CheckboxMultiSelectNode(sb.toString());
}
else
{
li = i - 1;
yield new RadioMultiSelect(sb.toString());
yield new RadioMultiSelectNode(sb.toString());
}
case "":

View File

@ -1,4 +1,4 @@
package de.tuDortmund.cs.rvs.pingger.korrekturHelper;
package de.tuDortmund.cs.rvs.pingger.korrekturHelper.nodes;
import java.awt.BorderLayout;
import java.awt.Color;

View File

@ -1,4 +1,4 @@
package de.tuDortmund.cs.rvs.pingger.korrekturHelper;
package de.tuDortmund.cs.rvs.pingger.korrekturHelper.nodes;
import java.awt.event.ActionListener;
import java.math.BigDecimal;
@ -8,10 +8,13 @@ import javax.swing.BoxLayout;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
import de.tuDortmund.cs.rvs.pingger.korrekturHelper.HtmlContext;
import de.tuDortmund.cs.rvs.pingger.korrekturHelper.Utils;
/**
* @author Pingger
*/
public class CheckboxMultiSelect extends AbstractNode
public class CheckboxMultiSelectNode extends AbstractNode
{
private final String baseMsg;
private final BigDecimal maxPoints;
@ -23,7 +26,7 @@ public class CheckboxMultiSelect extends AbstractNode
/**
* @param config the config string to parse
*/
public CheckboxMultiSelect(String config)
public CheckboxMultiSelectNode(String config)
{
var lines = config.split("\n");
if (lines.length <= 1)

View File

@ -1,10 +1,13 @@
package de.tuDortmund.cs.rvs.pingger.korrekturHelper;
package de.tuDortmund.cs.rvs.pingger.korrekturHelper.nodes;
import java.math.BigDecimal;
import java.math.MathContext;
import javax.swing.JCheckBox;
import de.tuDortmund.cs.rvs.pingger.korrekturHelper.HtmlContext;
import de.tuDortmund.cs.rvs.pingger.korrekturHelper.Utils;
/**
* @author Pingger
*/

View File

@ -1,4 +1,4 @@
package de.tuDortmund.cs.rvs.pingger.korrekturHelper;
package de.tuDortmund.cs.rvs.pingger.korrekturHelper.nodes;
import java.math.BigDecimal;
import java.math.MathContext;
@ -7,6 +7,9 @@ import javax.swing.BoxLayout;
import javax.swing.ButtonGroup;
import javax.swing.JRadioButton;
import de.tuDortmund.cs.rvs.pingger.korrekturHelper.HtmlContext;
import de.tuDortmund.cs.rvs.pingger.korrekturHelper.Utils;
/**
* @author Pingger
*/

View File

@ -1,4 +1,4 @@
package de.tuDortmund.cs.rvs.pingger.korrekturHelper;
package de.tuDortmund.cs.rvs.pingger.korrekturHelper.nodes;
import java.awt.BorderLayout;
import java.awt.Font;
@ -7,6 +7,8 @@ import java.math.MathContext;
import javax.swing.JLabel;
import de.tuDortmund.cs.rvs.pingger.korrekturHelper.HtmlContext;
/**
* @author Pingger
*/

View File

@ -1,4 +1,4 @@
package de.tuDortmund.cs.rvs.pingger.korrekturHelper;
package de.tuDortmund.cs.rvs.pingger.korrekturHelper.nodes;
import java.awt.Component;
import java.math.BigDecimal;
@ -6,6 +6,8 @@ import java.math.MathContext;
import java.util.LinkedHashSet;
import java.util.function.Consumer;
import de.tuDortmund.cs.rvs.pingger.korrekturHelper.HtmlContext;
/**
* @author Pingger
*/

View File

@ -1,4 +1,4 @@
package de.tuDortmund.cs.rvs.pingger.korrekturHelper;
package de.tuDortmund.cs.rvs.pingger.korrekturHelper.nodes;
import java.awt.event.ActionListener;
import java.math.BigDecimal;
@ -9,10 +9,13 @@ import javax.swing.ButtonGroup;
import javax.swing.JLabel;
import javax.swing.JRadioButton;
import de.tuDortmund.cs.rvs.pingger.korrekturHelper.HtmlContext;
import de.tuDortmund.cs.rvs.pingger.korrekturHelper.Utils;
/**
* @author Pingger
*/
public class RadioMultiSelect extends AbstractNode
public class RadioMultiSelectNode extends AbstractNode
{
private final String baseMsg;
private final ButtonGroup bg;
@ -25,7 +28,7 @@ public class RadioMultiSelect extends AbstractNode
/**
* @param config the config string to parse
*/
public RadioMultiSelect(String config)
public RadioMultiSelectNode(String config)
{
var lines = config.split("\n");
if (lines.length <= 1)