MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / setPosition

Method setPosition

CodenameOne/src/com/codename1/ui/Sheet.java:957–969  ·  view source on GitHub ↗
(String position)

Source from the content-addressed store, hash-verified

955 ///
956 /// - #setPosition(java.lang.String, java.lang.String)
957 public void setPosition(String position) {
958 if (CN.isTablet()) {
959 if (!position.equals(tabletPosition)) {
960 tabletPosition = position;
961 updateBorderForPosition();
962 }
963 } else {
964 if (!position.equals(this.position)) {
965 this.position = position;
966 updateBorderForPosition();
967 }
968 }
969 }
970
971 private void updateBorderForPosition() {
972 Border border = getStyle().getBorder();

Callers 15

runMethod · 0.95
runMethod · 0.95
runMethod · 0.95
invoke0Method · 0.45
invoke1Method · 0.45
invoke4Method · 0.45
invoke8Method · 0.45
invoke0Method · 0.45
onInitMethod · 0.45
onInitMethod · 0.45
onInitMethod · 0.45
onInitMethod · 0.45

Calls 3

isTabletMethod · 0.95
equalsMethod · 0.65

Tested by 14

onInitMethod · 0.36
onInitMethod · 0.36
onInitMethod · 0.36
onInitMethod · 0.36
recordGifMethod · 0.36
mainMethod · 0.36
mainMethod · 0.36
testSheetSampleMethod · 0.36
regionJsonRoundTripMethod · 0.36