MCPcopy Create free account
hub / github.com/Card-Forge/forge / setValue

Method setValue

forge-gui-mobile/src/forge/toolbox/FSpinner.java:24–34  ·  view source on GitHub ↗
(int value0)

Source from the content-addressed store, hash-verified

22 return value;
23 }
24 public void setValue(int value0) {
25 if (value0 < minValue) {
26 value0 = minValue;
27 }
28 else if (value0 > maxValue) {
29 value0 = maxValue;
30 }
31 if (value == value0) { return; }
32 value = value0;
33 setText(String.valueOf(value));
34 }
35
36 @Override
37 public boolean tap(float x, float y, int count) {

Callers 3

FSpinnerMethod · 0.95
tapMethod · 0.95
DialogChooseSetsMethod · 0.95

Calls 2

setTextMethod · 0.65
valueOfMethod · 0.45

Tested by

no test coverage detected