|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpalmed.edit.ModificationIndicator
public final class ModificationIndicator
This class implements a modification indicator watching a given text.
Constructor Summary | |
---|---|
ModificationIndicator()
Create a modification indicator. |
Method Summary | |
---|---|
boolean |
click(int x,
int y)
Handle a click event. |
void |
drag(int x,
int y)
Handle a drag event. |
int |
getHeight()
Retrieve the current height. |
int |
getLayout()
Retrieve the layout. |
int |
getWidth()
Retrieve the current width. |
void |
modified(boolean status)
Notify the modification flag has changed. |
void |
paint(javax.microedition.lcdui.Graphics g)
Paint the component. |
void |
resize(int width,
int height)
Request a component resize. |
void |
unclick(int x,
int y)
Handle an unclick event. |
void |
update(int columns,
int lines)
Notify the text bounding box has changed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModificationIndicator()
Method Detail |
---|
public void resize(int width, int height)
resize
in interface IComponent
width
- the new widthheight
- the new heightpublic void paint(javax.microedition.lcdui.Graphics g)
paint
in interface IComponent
g
- the graphicspublic void update(int columns, int lines)
update
in interface ITextView
columns
- the number of columnslines
- the number of linespublic void modified(boolean status)
modified
in interface ITextView
status
- the new modification statuspublic int getLayout()
Supported layouts are :
getLayout
in interface IComponent
public int getWidth()
getWidth
in interface IComponent
public int getHeight()
getHeight
in interface IComponent
public boolean click(int x, int y)
click
in interface IComponent
x
- the pointer abscissay
- the pointer ordinate
public void drag(int x, int y)
The component must have claimed focus upon click in order to receive this event.
drag
in interface IComponent
x
- the pointer abscissay
- the pointer ordinatepublic void unclick(int x, int y)
The component must have claimed focus upon click ini order to receive this event.
unclick
in interface IComponent
x
- the pointer abscissay
- the pointer ordinate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |