MCPcopy Create free account
hub / github.com/PCGen/pcgen / MockUIDelegate

Class MockUIDelegate

code/src/testcommon/pcgen/gui2/facade/MockUIDelegate.java:30–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28import pcgen.util.Logging;
29
30public class MockUIDelegate implements UIDelegate
31{
32
33 /**
34 * @see pcgen.facade.core.UIDelegate#maybeShowWarningConfirm(java.lang.String,
35 * java.lang.String, java.lang.String, pcgen.system.PropertyContext,
36 * java.lang.String)
37 */
38 @Override
39 public Boolean maybeShowWarningConfirm(String title, String message,
40 String checkBoxText, PropertyContext context, String contextProp)
41 {
42 Logging.log(Logging.WARNING, title + " - " + message);
43 return false;
44 }
45
46 /**
47 * @see pcgen.facade.core.UIDelegate#showErrorMessage(java.lang.String, java.lang.String)
48 */
49 @Override
50 public void showErrorMessage(String title, String message)
51 {
52 Logging.log(Logging.ERROR, title + " - " + message);
53 }
54
55 /**
56 * @see pcgen.facade.core.UIDelegate#showInfoMessage(java.lang.String, java.lang.String)
57 */
58 @Override
59 public void showInfoMessage(String title, String message)
60 {
61 Logging.log(Logging.INFO, title + " - " + message);
62 }
63
64 /**
65 * @see pcgen.facade.core.UIDelegate#showLevelUpInfo(CharacterFacade, int)
66 */
67 @Override
68 public void showLevelUpInfo(CharacterFacade character, int oldLevel)
69 {
70 // No action
71 }
72
73 /**
74 * @see pcgen.facade.core.UIDelegate#showWarningConfirm(java.lang.String, java.lang.String)
75 */
76 @Override
77 public boolean showWarningConfirm(String title, String message)
78 {
79 // No action
80 return false;
81 }
82
83 @Override
84 public void showWarningMessage(String title, String message)
85 {
86
87 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected