S40 Touch API – Text Editor API
メソッド下記:
boolean register( x, y, maxFps, maxPps, FrameAnimatorListenerlistener) void unregister() boolean isRegistered() static int getNumRegisteredFrameAnimators(); void drag(x, y) void kineticScroll( int startSpeed, int direction, int friction, float angle ) void stop() 使い方:
TextEditor editor=TextEditor.createTextEditor("abc", 20, TextField.ANY, getWidth()-20, 100); editor.setMultiline(true); editor.setVisible(true); editor.setFocus(true); editor.setPosition(10, 10); editor.setParent(this); // this point to a Canvas