|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JTextArea
edu.princeton.swing.PTextArea
public class PTextArea
PTextArea extends JTextArea to provide ClipboardTarget support.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JTextArea |
---|
JTextArea.AccessibleJTextArea |
Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
---|
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBinding |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.text.JTextComponent |
---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
PTextArea()
Constructs a new PTextArea. |
|
PTextArea(Document doc)
Constructs a new PTextArea. |
|
PTextArea(Document doc,
String text,
int rows,
int columns)
Constructs a new PTextArea. |
|
PTextArea(int rows,
int columns)
Constructs a new PTextArea. |
|
PTextArea(String text)
Constructs a new PTextArea. |
|
PTextArea(String text,
int rows,
int columns)
Constructs a new PTextArea. |
Method Summary | |
---|---|
boolean |
canCopy()
Returns wheter or not the copy operation can be performed on this ClipboardTarget. |
boolean |
canCut()
Returns wheter or not the cut operation can be performed on this ClipboardTarget. |
boolean |
canPaste()
Returns wheter or not the paste operation can be performed on this ClipboardTarget. |
boolean |
canSelectAll()
Returns wheter or not the selectAll operation can be performed on this ClipboardTarget. |
JPopupMenu |
getPopupMenu()
Gets the popup menu for this component. |
protected void |
processFocusEvent(FocusEvent e)
Intercept FocusEvents to notify the ClipboardTargetManager of the event. |
protected void |
processMouseEvent(MouseEvent e)
Intercept MouseEvents to activate the popupMenu at the right time. |
void |
setEditable(boolean editable)
Override the setEditable() method to intercept any changes concerning the editable status of the component. |
void |
setEnabled(boolean enabled)
Override the setEnabled() method to intercept any changes concerning the enabled status of the component. |
void |
setPopupMenu(JPopupMenu popupMenu)
Sets the popup menu for this component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.princeton.swing.ClipboardTarget |
---|
copy, cut, paste, selectAll |
Constructor Detail |
---|
public PTextArea()
public PTextArea(String text)
public PTextArea(int rows, int columns)
public PTextArea(String text, int rows, int columns)
public PTextArea(Document doc)
public PTextArea(Document doc, String text, int rows, int columns)
Method Detail |
---|
public boolean canCut()
canCut
in interface ClipboardTarget
public boolean canCopy()
canCopy
in interface ClipboardTarget
public boolean canPaste()
canPaste
in interface ClipboardTarget
public boolean canSelectAll()
canSelectAll
in interface ClipboardTarget
protected void processFocusEvent(FocusEvent e)
processFocusEvent
in class Component
protected void processMouseEvent(MouseEvent e)
processMouseEvent
in class JComponent
public void setEnabled(boolean enabled)
setEnabled
in class JComponent
public void setEditable(boolean editable)
setEditable
in class JTextComponent
public JPopupMenu getPopupMenu()
public void setPopupMenu(JPopupMenu popupMenu)
popupMenu
- The popup menu for the component. A null value indicates that this
component should not have a popup menu.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |