palmed.edit.view
Interface IContent

All Superinterfaces:
ISerializable
All Known Implementing Classes:
Content, Viewport

public interface IContent
extends ISerializable

This interface defines the text box content operations.

Version:
$Revision$ $Date$
Author:
Mathieu Champlon

Method Summary
 void accept(ILineVisitor visitor, int y)
          Visit a line of text.
 void backspace()
          Handle a backspace event.
 void clear()
          Reset the content.
 void click(int x, int y)
          Handle a click event at a given location.
 void copy(java.io.OutputStream stream)
          Copy the current selected text.
 void cut(java.io.OutputStream stream)
          Cut the current selected text.
 void drag(int x, int y)
          Handle a drag event to a given location.
 void enter()
          Handle an enter event.
 void paste(java.io.InputStream stream)
          Paste the given text.
 void redo()
          Redo the last undo.
 void register(IView view)
          Register a view for events notification.
 void type(int keyCode)
          Handle a character typing.
 void undo()
          Undo the last action.
 
Methods inherited from interface palmed.io.ISerializable
marshall, unmarshall
 

Method Detail

type

void type(int keyCode)
Handle a character typing.

Parameters:
keyCode - the value of the key entered

enter

void enter()
Handle an enter event.


backspace

void backspace()
Handle a backspace event.


drag

void drag(int x,
          int y)
Handle a drag event to a given location.

Parameters:
x - destination column
y - destination line

click

void click(int x,
           int y)
Handle a click event at a given location.

Parameters:
x - location column
y - location line

accept

void accept(ILineVisitor visitor,
            int y)
Visit a line of text.

Parameters:
visitor - the visitor
y - the line number

register

void register(IView view)
Register a view for events notification.

Parameters:
view - the view to register

clear

void clear()
Reset the content.


copy

void copy(java.io.OutputStream stream)
          throws java.io.IOException
Copy the current selected text.

Parameters:
stream - the stream to write to
Throws:
java.io.IOException - an io exception occurs

cut

void cut(java.io.OutputStream stream)
         throws java.io.IOException
Cut the current selected text.

Parameters:
stream - the stream to write to
Throws:
java.io.IOException - an io exception occurs

paste

void paste(java.io.InputStream stream)
           throws java.io.IOException
Paste the given text.

Parameters:
stream - the stream to read from
Throws:
java.io.IOException - an io exception occurs

undo

void undo()
Undo the last action.


redo

void redo()
Redo the last undo.



Copyright © 2004-2006 PalmEd. All Rights Reserved.