Check-in [359a924923]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Initialization of some item types.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:359a92492357aafa1807aff7a07fc06b4bf19acf
User & Date: stephanie.gawroriski 2019-05-17 23:10:03
Context
2019-05-17
23:31
Initialization of enough objects to start the MicroEmu demo. check-in: ff7bfc2079 user: stephanie.gawroriski tags: trunk
23:10
Initialization of some item types. check-in: 359a924923 user: stephanie.gawroriski tags: trunk
19:44
Initialize some item types. check-in: 6fded67d37 user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to runt/apis/midp-lcdui/javax/microedition/lcdui/Form.java.

103
104
105
106
107
108
109


110
111
112
113
114
115
116
117






118
119
120
121
122
123
124
	}
	
	/**
	 * Appends the given item to the form.
	 *
	 * @param __i The item to append.
	 * @return The index of the item.


	 * @throws NullPointerException On null arguments.
	 * @since 2019/05/17
	 */
	public int append(Item __i)
		throws NullPointerException
	{
		if (__i == null)
			throw new NullPointerException("NARG");






		
		// Append item
		__VolatileList__<Item> items = this._items;
		int rv = items.append(__i);
		
		// Update display
		Display d = this._display;







>
>








>
>
>
>
>
>







103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
	}
	
	/**
	 * Appends the given item to the form.
	 *
	 * @param __i The item to append.
	 * @return The index of the item.
	 * @throws IllegalStateException If the item is already associated with
	 * a form.
	 * @throws NullPointerException On null arguments.
	 * @since 2019/05/17
	 */
	public int append(Item __i)
		throws NullPointerException
	{
		if (__i == null)
			throw new NullPointerException("NARG");
		
		// {@squirreljme.error EB3b Cannot append an item which has already
		// be associated with a form.}
		if (__i._displayable != null)
			throw new IllegalStateException("EB3b");
		__i._displayable = this;
		
		// Append item
		__VolatileList__<Item> items = this._items;
		int rv = items.append(__i);
		
		// Update display
		Display d = this._display;

Changes to runt/apis/midp-lcdui/javax/microedition/lcdui/Gauge.java.

103
104
105
106
107
108
109



















110
111
112
113
114
115
116
		throw new todo.TODO();
	}
	
	public void setIncrementValue(int __v)
	{
		throw new todo.TODO();
	}



















	
	public void setMaxValue(int __a)
	{
		throw new todo.TODO();
	}
	
	public void setMinValue(int __v)







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
		throw new todo.TODO();
	}
	
	public void setIncrementValue(int __v)
	{
		throw new todo.TODO();
	}
	
	/**
	 * {@inheritDoc}
	 * @throws IllegalArgumentException If this gauge is associated with an
	 * alert.
	 * @since 2019/05/17
	 */
	@Override
	public void setLabel(String __l)
		throws IllegalArgumentException
	{
		// {@squirreljme.error EB3c Cannot set the label of a gauge associated
		// with an alert.}
		if (this._displayable instanceof Alert)
			throw new IllegalArgumentException("EB3c");
		
		// Use super logic
		super.setLabel(__l);
	}
	
	public void setMaxValue(int __a)
	{
		throw new todo.TODO();
	}
	
	public void setMinValue(int __v)

Changes to runt/apis/midp-lcdui/javax/microedition/lcdui/ImageItem.java.

28
29
30
31
32
33
34



35
36
37
38













39

40
41
42

43
44











45

46
47
48












49
50
51
52
53
54
55
..
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
..
94
95
96
97
98
99
100




101
102

103
104

105
106
107
108
		512;
	
	public static final int LAYOUT_NEWLINE_BEFORE =
		256;
	
	public static final int LAYOUT_RIGHT =
		2;



	
	/** Cache of the used image. */
	private volatile Image _image;
	













	public ImageItem(String __a, Image __b, int __c, String __d)

	{
		super();
		throw new todo.TODO();

	}
	











	public ImageItem(String __a, Image __b, int __c, String __d, int __e)

	{
		super();
		throw new todo.TODO();












	}
	
	public String getAltText()
	{
		throw new todo.TODO();
	}
	
................................................................................
	public int getAppearanceMode()
	{
		throw new todo.TODO();
	}
	
	public Image getImage()
	{
		throw new todo.TODO();
	}
	
	@Override
	public int getLayout()
	{
		throw new todo.TODO();
	}
	
	public void setAltText(String __a)
	{
		throw new todo.TODO();
	}
................................................................................
		LcdServiceCall.voidCall(LcdFunction.SET_IMAGE, this._handle,
			(__i == null ? -1 : __i._handle),
			(clone == null ? -1 : clone._handle));
		this._image = __i;
		*/
	}
	




	@Override
	public void setLayout(int __a)

	{
		throw new todo.TODO();

	}
}









>
>
>




>
>
>
>
>
>
>
>
>
>
>
>
>
|
>

<
<
>


>
>
>
>
>
>
>
>
>
>
>
|
>

|
<
>
>
>
>
>
>
>
>
>
>
>
>







 







<
<
<
<
<
<







 







>
>
>
>

|
>

<
>




28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57


58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75

76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
..
95
96
97
98
99
100
101






102
103
104
105
106
107
108
...
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141

142
143
144
145
146
		512;
	
	public static final int LAYOUT_NEWLINE_BEFORE =
		256;
	
	public static final int LAYOUT_RIGHT =
		2;
	
	/** Apperance mode. */
	final int _amode;
	
	/** Cache of the used image. */
	private volatile Image _image;
	
	/** Alternative text. */
	private volatile String _alt;
	
	/**
	 * Initializes the image item.
	 *
	 * @param __l The label.
	 * @param __i The image.
	 * @param __lay The layout.
	 * @param __alt The alternative text.
	 * @throws IllegalArgumentException If the layout is not valid.
	 * @since 2019/05/17
	 */
	public ImageItem(String __l, Image __i, int __lay, String __alt)
		throws IllegalArgumentException
	{


		this(__l, __i, __lay, __alt, PLAIN);
	}
	
	/**
	 * Initializes the image item.
	 *
	 * @param __l The label.
	 * @param __i The image.
	 * @param __lay The layout.
	 * @param __alt The alternative text.
	 * @param __am The appearance mode.
	 * @throws IllegalArgumentException If the layout is not valid.
	 * @since 2019/05/17
	 */
	public ImageItem(String __l, Image __i, int __lay, String __alt, int __am)
		throws IllegalArgumentException
	{
		super(__l);

		
		// {@squirreljme.error EB3a The appearance mode is not valid.
		// (The appearance mode)}
		if (__am != PLAIN && __am != BUTTON && __am != HYPERLINK)
			throw new IllegalArgumentException("EB3a " + __am);
		
		this._image = __i;
		this._alt = __alt;
		this._amode = __am;
		
		// Set the layout
		this.setLayout(__lay);
	}
	
	public String getAltText()
	{
		throw new todo.TODO();
	}
	
................................................................................
	public int getAppearanceMode()
	{
		throw new todo.TODO();
	}
	
	public Image getImage()
	{






		throw new todo.TODO();
	}
	
	public void setAltText(String __a)
	{
		throw new todo.TODO();
	}
................................................................................
		LcdServiceCall.voidCall(LcdFunction.SET_IMAGE, this._handle,
			(__i == null ? -1 : __i._handle),
			(clone == null ? -1 : clone._handle));
		this._image = __i;
		*/
	}
	
	/**
	 * {@inheritDoc}
	 * @since 2019/05/17
	 */
	@Override
	public void setLayout(int __lay)
		throws IllegalArgumentException
	{

		super.setLayout(__lay);
	}
}


Changes to runt/apis/midp-lcdui/javax/microedition/lcdui/Item.java.

61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
...
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187

188
189
190
191
192
193



194
195
196



197
198
199
200






201
202
203

204
205
206
207
208
209
210
	
	public static final int LAYOUT_VSHRINK =
		4096;
	
	public static final int PLAIN =
		0;
	
	/** The owning form. */
	volatile Form _form;
	
	/** The current layout of the item. */
	private volatile int _layout =
		LAYOUT_DEFAULT;
	
	/** The label of this item. */
	volatile String _label;
	
	/**
	 * Initializes the base item.
................................................................................
	}
	
	/**
	 * Sets the label of the item.
	 *
	 * @param __l The label of the item to set, may be {@code null} to clear
	 * the label.
	 * @throws IllegalArgumentException If this item is contained within an
	 * alert.
	 * @since 2017/08/20
	 */
	public void setLabel(String __l)
		throws IllegalArgumentException
	{
		if (true)
			throw new todo.TODO();
		/*
		// {@squirreljme.error EB20 Cannot set the label of an item which is
		// contained within an Alert.}
		if (this._screen instanceof Alert)
			throw new IllegalArgumentException("EB20");
		*/

		
		throw new todo.TODO();
		/*
		// Set if it has changed
		String oldlabel = this._label;
		if (oldlabel != __l)



		{
			LcdServiceCall.voidCall(LcdFunction.SET_LABEL, this._handle, __l);
			this._label = __l;



		}
		*/
	}
	






	public void setLayout(int __a)
	{
		throw new todo.TODO();

	}
	
	public void setLayoutHint(ItemLayoutHint __h)
	{
		throw new todo.TODO();
	}
	







|
|


|







 







<
<



<

<
<
<
<
<
<
<
<
>

<
<
<
<
<
>
>
>

<
<
>
>
>

<


>
>
>
>
>
>
|

<
>







61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
...
166
167
168
169
170
171
172


173
174
175

176








177
178





179
180
181
182


183
184
185
186

187
188
189
190
191
192
193
194
195
196

197
198
199
200
201
202
203
204
	
	public static final int LAYOUT_VSHRINK =
		4096;
	
	public static final int PLAIN =
		0;
	
	/** The owning displayable. */
	volatile Displayable _displayable;
	
	/** The current layout of the item. */
	volatile int _layout =
		LAYOUT_DEFAULT;
	
	/** The label of this item. */
	volatile String _label;
	
	/**
	 * Initializes the base item.
................................................................................
	}
	
	/**
	 * Sets the label of the item.
	 *
	 * @param __l The label of the item to set, may be {@code null} to clear
	 * the label.


	 * @since 2017/08/20
	 */
	public void setLabel(String __l)

	{








		this._label = __l;
		





		// Repaint the display
		Displayable displayable = this._displayable;
		if (displayable != null)
		{


			Display display = displayable._display;
			if (display != null)
				display._phoneui.repaint();
		}

	}
	
	/**
	 * Sets the layout.
	 *
	 * @param __lay The layout.
	 * @since 2019/05/17
	 */
	public void setLayout(int __lay)
	{

		this._layout = __lay;
	}
	
	public void setLayoutHint(ItemLayoutHint __h)
	{
		throw new todo.TODO();
	}