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

Class Display

CodenameOne/src/com/codename1/ui/Display.java:111–6957  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109///
110/// @author Chen Fishbein, Shai Almog
111public final class Display extends CN1Constants {
112 /// A common sound type that can be used with playBuiltinSound
113 public static final String SOUND_TYPE_ALARM = "alarm";
114 /// A common sound type that can be used with playBuiltinSound
115 public static final String SOUND_TYPE_CONFIRMATION = "confirmation";
116 /// A common sound type that can be used with playBuiltinSound
117 public static final String SOUND_TYPE_ERROR = "error";
118 /// A common sound type that can be used with playBuiltinSound
119 public static final String SOUND_TYPE_INFO = "info";
120 /// A common sound type that can be used with playBuiltinSound
121 public static final String SOUND_TYPE_WARNING = "warning";
122 /// A common sound type that can be used with playBuiltinSound
123 public static final String SOUND_TYPE_BUTTON_PRESS = "press";
124 /// Unknown keyboard type is the default indicating the software should try
125 /// to detect the keyboard type if necessary
126 public static final int KEYBOARD_TYPE_UNKNOWN = 0;
127 /// Numeric keypad keyboard type
128 public static final int KEYBOARD_TYPE_NUMERIC = 1;
129 /// Full QWERTY keypad keyboard type, even if a numeric keyboard also exists
130 public static final int KEYBOARD_TYPE_QWERTY = 2;
131 /// A touch based device that doesn't have a physical keyboard. Such a device pops up a virtual keyboad.
132 public static final int KEYBOARD_TYPE_VIRTUAL = 3;
133 /// Half-QWERTY which needs software assistance for completion
134 public static final int KEYBOARD_TYPE_HALF_QWERTY = 4;
135 /// Game action for fire
136 public static final int GAME_FIRE = 8;
137 /// Game action for the left key
138 public static final int GAME_LEFT = 2;
139 /// Game action for right key
140 public static final int GAME_RIGHT = 5;
141 /// Game action for UP key
142 public static final int GAME_UP = 1;
143 /// Game action for down key
144 public static final int GAME_DOWN = 6;
145 /// Special case game key used for media playback events
146 public static final int MEDIA_KEY_SKIP_FORWARD = 20;
147 /// Special case game key used for media playback events
148 public static final int MEDIA_KEY_SKIP_BACK = 21;
149 /// Special case game key used for media playback events
150 public static final int MEDIA_KEY_PLAY = 22;
151 /// Special case game key used for media playback events
152 public static final int MEDIA_KEY_STOP = 23;
153 /// Special case game key used for media playback events
154 public static final int MEDIA_KEY_PLAY_STOP = 24;
155 /// Special case game key used for media playback events
156 public static final int MEDIA_KEY_PLAY_PAUSE = 25;
157 /// Special case game key used for media playback events
158 public static final int MEDIA_KEY_FAST_FORWARD = 26;
159 /// Special case game key used for media playback events
160 public static final int MEDIA_KEY_FAST_BACKWARD = 27;
161 /// An attribute that encapsulates '#' int value.
162 public static final int KEY_POUND = '#';
163 /// Ignore all calls to show occurring during edit, they are discarded immediately
164 public static final int SHOW_DURING_EDIT_IGNORE = 1;
165 /// If show is called while editing text in the native text box an exception is thrown
166 public static final int SHOW_DURING_EDIT_EXCEPTION = 2;
167 /// Allow show to occur during edit and discard all user input at this moment
168 public static final int SHOW_DURING_EDIT_ALLOW_DISCARD = 3;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected