Methods Summary |
---|
void | createNativeResource(int ownerId)Create native resource for current Gauge .
Override function in ItemLFImpl .
nativeId = createNativeResource0(ownerId,
gauge.label, gauge.layout,
gauge.interactive,
gauge.maxValue, gauge.value);
|
private native int | createNativeResource0(int ownerId, java.lang.String label, int layout, boolean interactive, int maxValue, int initialValue)KNI function that creates native resource for current
Gauge .
|
boolean | equateNLA()Determine if this Item should have a newline after it.
if (super.equateNLA()) {
return true;
}
return ((gauge.layout & Item.LAYOUT_2) != Item.LAYOUT_2);
|
boolean | equateNLB()Determine if this Item should have a newline before it.
if (super.equateNLB()) {
return true;
}
return ((gauge.layout & Item.LAYOUT_2) != Item.LAYOUT_2);
|
public int | lGetValue()Gets the current value.
return gauge.value;
|
public void | lSetMaxValue(int oldMaxValue, int newMaxValue)Notifies L&F of a maximum value change in the corresponding
Gauge .
if (nativeId != DisplayableLFImpl.INVALID_NATIVE_ID) {
// Only update native resource if it exists.
setValue0(nativeId, gauge.value, newMaxValue);
lRequestInvalidate(true, true);
}
|
public void | lSetValue(int oldValue, int newValue)Notifies L&F of a value change in the corresponding
Gauge .
// little optimization to avoid calling into native
// in cases where unnecessary
if (nativeId != DisplayableLFImpl.INVALID_NATIVE_ID) {
// Only update native resource if it exists.
setValue0(nativeId, newValue, gauge.maxValue);
lRequestInvalidate(true, true);
}
|
private native void | setValue0(int nativeId, int newValue, int newMaxValue)KNI function that sets the current and maximum values on the native
resource corresponding to the current Gauge .
|
boolean | uCallPeerStateChanged(int hint)Notification of a change in its peer state.
Update Java peer with user input.
synchronized (Display.LCDUILock) {
// Update Java peer with the new value
gauge.value = hint;
}
// Indicate to Form to notify ItemStateListener
return true;
|