All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.awt.text.TextController

java.lang.Object
   |
   +----jp.kyasu.awt.text.TextController

public abstract class TextController
extends Object
implements MouseListener, MouseMotionListener, KeyListener, FocusListener, ClipboardOwner, Serializable
The TextController class is an abstract base class that controlls the TextView object.

Version:
18 Dec 1998
Author:
Kazuki YASUMATSU
See Also:
TextView

Variable Index

 o A_COPY
The action name for the copy operation.
 o A_CUT
The action name for the cut operation.
 o A_FIND
The action name for the find operation.
 o A_PASTE
The action name for the paste operation.
 o A_PRINT
The action name for the print operation.
 o A_UNDO
The action name for the undo operation.
 o L_COPY
The label name for the copy operation.
 o L_CUT
The label name for the cut operation.
 o L_EDIT
The label name for the edit menu.
 o L_FIND
The label name for the find operation.
 o L_PASTE
The label name for the paste operation.
 o L_PRINT
The label name for the print operation.
 o L_UNDO
The label name for the undo operation.

Constructor Index

 o TextController()
Constructs a text controller.

Method Index

 o focusGained(FocusEvent)
Invoked when a component gains the keyboard focus.
 o focusLost(FocusEvent)
Invoked when a component loses the keyboard focus.
 o getClipboardString()
Returns the string in the clipboard.
 o getClipboardText()
Returns the text in the clipboard.
 o getClipboardText(TextStyle)
Returns the text in the clipboard with the specified text style.
 o getCutBufferText()
Returns the text in the cut buffer.
 o getResourceString(String, String)
Returns the resource string indicated by the specified key.
 o getView()
Returns the view of this controller.
 o isClickToFocus()
Tests if the controller requests the focus when the mouse is clicked.
 o isMouseFocus()
Tests if the controller requests the focus when the mouse enters the view.
 o isSelectionVisibleAtFocus()
Tests if the selection becomes visible when the view is focused.
 o keyPressed(KeyEvent)
Invoked when a key has been pressed.
 o keyReleased(KeyEvent)
Invoked when a key has been released.
 o keyTyped(KeyEvent)
Invoked when a key has been typed.
 o lostOwnership(Clipboard, Transferable)
Notifies this object that it is no longer the owner of the contents of the clipboard.
 o mouseClicked(MouseEvent)
Invoked when the mouse has been clicked on a component.
 o mouseDragged(MouseEvent)
Invoked when the mouse button is pressed on a component and then dragged.
 o mouseEntered(MouseEvent)
Invoked when the mouse enters a component.
 o mouseExited(MouseEvent)
Invoked when the mouse exits a component.
 o mouseMoved(MouseEvent)
Invoked when the mouse button has been moved on a component.
 o mousePressed(MouseEvent)
Invoked when the mouse has been pressed on a component.
 o mouseReleased(MouseEvent)
Invoked when the mouse has been released on a component.
 o setClickToFocus()
Makes the controller request the focus when the mouse is clicked.
 o setClipboardString(String)
Sets the string to the clipboard.
 o setClipboardText(Text)
Sets the text to the clipboard.
 o setCutBuffer(Text)
Sets the text to the cut buffer.
 o setMouseFocus()
Makes the controller request the focus when the mouse enters the view.
 o setSelectionVisibleAtFocus(boolean)
Makes the selection become visible when the view is focused.

Variables

 o L_EDIT
 public static final String L_EDIT
The label name for the edit menu.

 o L_COPY
 public static final String L_COPY
The label name for the copy operation.

 o L_CUT
 public static final String L_CUT
The label name for the cut operation.

 o L_PASTE
 public static final String L_PASTE
The label name for the paste operation.

 o L_FIND
 public static final String L_FIND
The label name for the find operation.

 o L_UNDO
 public static final String L_UNDO
The label name for the undo operation.

 o L_PRINT
 public static final String L_PRINT
The label name for the print operation.

 o A_COPY
 public static final String A_COPY
The action name for the copy operation.

 o A_CUT
 public static final String A_CUT
The action name for the cut operation.

 o A_PASTE
 public static final String A_PASTE
The action name for the paste operation.

 o A_FIND
 public static final String A_FIND
The action name for the find operation.

 o A_UNDO
 public static final String A_UNDO
The action name for the undo operation.

 o A_PRINT
 public static final String A_PRINT
The action name for the print operation.

Constructors

 o TextController
 public TextController()
Constructs a text controller.

Methods

 o getResourceString
 public static String getResourceString(String s,
                                        String def)
Returns the resource string indicated by the specified key.

See Also:
getResourceString
 o getView
 public abstract TextView getView()
Returns the view of this controller.

 o isClickToFocus
 public boolean isClickToFocus()
Tests if the controller requests the focus when the mouse is clicked.

Returns:
true if the controller requests the focus when the mouse is clicked, false if the controller requests the focus when the mouse enters the view.
See Also:
isMouseFocus
 o isMouseFocus
 public boolean isMouseFocus()
Tests if the controller requests the focus when the mouse enters the view.

See Also:
isClickToFocus
 o setClickToFocus
 public void setClickToFocus()
Makes the controller request the focus when the mouse is clicked.

See Also:
isClickToFocus, setMouseFocus
 o setMouseFocus
 public void setMouseFocus()
Makes the controller request the focus when the mouse enters the view.

See Also:
isMouseFocus, setClickToFocus
 o isSelectionVisibleAtFocus
 public boolean isSelectionVisibleAtFocus()
Tests if the selection becomes visible when the view is focused.

See Also:
setSelectionVisibleAtFocus
 o setSelectionVisibleAtFocus
 public void setSelectionVisibleAtFocus(boolean b)
Makes the selection become visible when the view is focused.

See Also:
isSelectionVisibleAtFocus
 o mouseClicked
 public void mouseClicked(MouseEvent e)
Invoked when the mouse has been clicked on a component.

See Also:
MouseListener
 o mousePressed
 public void mousePressed(MouseEvent e)
Invoked when the mouse has been pressed on a component.

See Also:
MouseListener
 o mouseReleased
 public void mouseReleased(MouseEvent e)
Invoked when the mouse has been released on a component.

See Also:
MouseListener
 o mouseEntered
 public void mouseEntered(MouseEvent e)
Invoked when the mouse enters a component.

See Also:
MouseListener
 o mouseExited
 public void mouseExited(MouseEvent e)
Invoked when the mouse exits a component.

See Also:
MouseListener
 o mouseDragged
 public void mouseDragged(MouseEvent e)
Invoked when the mouse button is pressed on a component and then dragged.

See Also:
MouseMotionListener
 o mouseMoved
 public void mouseMoved(MouseEvent e)
Invoked when the mouse button has been moved on a component.

See Also:
MouseMotionListener
 o keyTyped
 public void keyTyped(KeyEvent e)
Invoked when a key has been typed.

See Also:
KeyListener
 o keyPressed
 public void keyPressed(KeyEvent e)
Invoked when a key has been pressed.

See Also:
KeyListener
 o keyReleased
 public void keyReleased(KeyEvent e)
Invoked when a key has been released.

See Also:
KeyListener
 o focusGained
 public void focusGained(FocusEvent e)
Invoked when a component gains the keyboard focus.

See Also:
FocusListener
 o focusLost
 public void focusLost(FocusEvent e)
Invoked when a component loses the keyboard focus.

See Also:
FocusListener
 o lostOwnership
 public synchronized void lostOwnership(Clipboard clipboard,
                                        Transferable contents)
Notifies this object that it is no longer the owner of the contents of the clipboard.

See Also:
ClipboardOwner
 o getCutBufferText
 public static synchronized Text getCutBufferText()
Returns the text in the cut buffer.

 o setCutBuffer
 public static synchronized void setCutBuffer(Text text)
Sets the text to the cut buffer.

 o getClipboardText
 public Text getClipboardText()
Returns the text in the clipboard.

 o getClipboardText
 public Text getClipboardText(TextStyle style)
Returns the text in the clipboard with the specified text style.

 o setClipboardText
 public void setClipboardText(Text text)
Sets the text to the clipboard.

 o getClipboardString
 public synchronized String getClipboardString()
Returns the string in the clipboard.

 o setClipboardString
 public synchronized void setClipboardString(String str)
Sets the string to the clipboard.


All Packages  Class Hierarchy  This Package  Previous  Next  Index