DataStream is a wrapper you can place around any Stream such as a
SerialPort, Catalog, or BufferStream which lets you read and write
standard Waba data types like ints, floats, and Strings in a simple
manner.
draws a text in the window, erasing all the line; increments y automatically and starts over when reach the bottom of screen. use only to debug.
ps: you can delimit the area where this function draws using the method setTrace(false,0,minY,lines).
DECEMBER -
Static variable in class waba.util.Date
Inspects a record. use this method with careful, none of the params are checked for validity.
the cursor is not advanced, neither the current record position. this method must be used
only for a fast way of viewing the contents of a record,
like searching for a specific header or filling a grid of data.
used to let this int vector act like a bit vector. returns true if the bit specified is set.
you must guarantee that the index exists in the vector. guich@102
constructs a message box with the text and the specified button captions.
the text may be separated by '|' as the line delimiters.
if buttonCaptions is null, no buttons are displayed and you must dismiss the dialog by calling unpop or
by setting the delay using setUnpopDelay method
this class is used to create an resizable record. you can use it with DataStream. example:
Catalog cat = new Catalog(type+"."+creator+"."+type,Catalog.READ_WRITE);
ResizeStream rs = new ResizeStream(cat,512);
DataStream ds = new DataStream(rs);
rs.startRecord();
ds.writeStringArray(aStringArray);
rs.endRecord();
ds.close();
ps: if you dont call startRecord, writeBytes will simply call catalog.writeBytes and will not resize the record.
used to let this int vector act like a bit vector. returns true if the bit specified is set.
you must guarantee that the index exists in the vector. guich@102
Sets true if we have to use an double buffer to paint the screen. only works in palm os 3.0 or greater.
it automatically sets to off if palm os 2.0 is running.
used to set the position where the status chars will be displayed.
the chars are 8x11 pixels. this method must be called so the status can be displayed.
these positions must be relative to this window, because they are converted to absolute coordinates.
use setStatePosition(Window.HIDE_STATE,Window.HIDE_STATE) to remove the display of the state.
shows or "hides" this control. the "hide" works setting the control's size to zero. it remains attached to its container. unhidding restores the original size. you can change the controls size when hided if you want. calls repaint.