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

Method tap

forge-gui-mobile/src/forge/toolbox/FSpinner.java:36–49  ·  view source on GitHub ↗
(float x, float y, int count)

Source from the content-addressed store, hash-verified

34 }
35
36 @Override
37 public boolean tap(float x, float y, int count) {
38 GuiChoose.getInteger(Forge.getLocalizer().getMessage("lblSelectANumber"), minValue, maxValue, result -> {
39 if (result != null && result != value) {
40 int oldValue = value;
41 setValue(result);
42 if (getChangedHandler() != null) {
43 //handle change event if value changed from input
44 getChangedHandler().handleEvent(new FEvent(FSpinner.this, FEventType.CHANGE, oldValue));
45 }
46 }
47 });
48 return true;
49 }
50
51 @Override
52 public boolean startEdit() {

Callers

nothing calls this directly

Calls 6

getIntegerMethod · 0.95
getLocalizerMethod · 0.95
setValueMethod · 0.95
handleEventMethod · 0.65
getMessageMethod · 0.45
getChangedHandlerMethod · 0.45

Tested by

no test coverage detected