|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.core.AbstractDisposable
yu.ac.bg.etf.javaqx.qswing.JQComponent
yu.ac.bg.etf.javaqx.qswing.JQTextComponent
Constructs new JQTextComponent object.
NOTE: This class is not compatible with javax.swing.text.JTextComponent class!
Field Summary |
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.JQComponent |
listenerList |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQTextComponentProperties |
PROPERTY_DOCUMENT, PROPERTY_EDITABLE |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQComponentProperties |
PROPERTY_BACKGROUND, PROPERTY_COMPONENT_ORIENTATION, PROPERTY_CONTEXT_MENU, PROPERTY_ENABLED, PROPERTY_FIXED_SIZE, PROPERTY_FOCUSABLE, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_INSETS, PROPERTY_LOCALE, PROPERTY_MAXIMUM_SIZE, PROPERTY_MINIMUM_SIZE, PROPERTY_NAME, PROPERTY_OPAQUE, PROPERTY_PREFERRED_SIZE, PROPERTY_RESOURCE_BUNDLE_NAME, PROPERTY_STATUS_TIP_TEXT, PROPERTY_STYLE_SHEET, PROPERTY_TOOL_TIP_TEXT, PROPERTY_VISIBLE, PROPERTY_WHATS_THIS_TEXT |
Method Summary | |
void |
addEditListener(EditListener listener)
Adds edit listener. |
void |
addUndoRedoListener(UndoRedoListener listener)
Adds undo/redo listener. |
void |
appendText(java.lang.String text)
Appends text. |
void |
clear()
Clears selected text. |
void |
clearText()
Clears text. |
void |
copy()
Copies selected text. |
void |
cut()
Cuts selected text. |
protected void |
fireClearAvailable(boolean available)
Notifies listeners that clear operation is available. |
protected void |
fireCopyAvailable(boolean available)
Notifies listeners that copy operation is available. |
protected void |
fireCutAvailable(boolean available)
Notifies listeners that cut operation is available. |
protected void |
firePasteAvailable(boolean available)
Notifies listeners that paste operation is available. |
protected void |
fireRedoAvailable(boolean available)
Notifies listeners that redo operation is available. |
protected void |
fireSelectAllAvailable(boolean available)
Notifies listeners that clear operation is available. |
protected void |
fireUndoAvailable(boolean available)
Notifies listeners that undo operation is available. |
EditListener[] |
getEditListeners()
Returns all edit listeners. |
java.lang.String |
getText()
Returns text. |
UndoRedoListener[] |
getUndoRedoListeners()
Returns all undo/redo listeners. |
void |
insertText(java.lang.String text)
Inserts text at current cursor position. |
boolean |
isClearAvailable()
Returns true if the clear operation is available. |
boolean |
isCopyAvailable()
Returns true if the copy operation is available. |
boolean |
isCutAvailable()
Returns true if the cut operation is available. |
boolean |
isEditable()
Returns true if the text component is editable. |
boolean |
isModified()
Returns true if the content of the text area is modified. |
boolean |
isPasteAvailable()
Returns true if the paste operation is available. |
boolean |
isRedoAvailable()
Returns true if the redo operation is available. |
boolean |
isSelectAllAvailable()
Returns true if the select all operation is available. |
boolean |
isUndoAvailable()
Returns true if the undo operation is available. |
void |
paste()
Pastes text from the clipboard. |
void |
print(Printer printer)
Prints content of the text area. |
void |
read(java.io.Reader reader)
Reads text from reader. |
void |
redo()
Redos last action. |
void |
removeEditListener(EditListener listener)
Remove edit listener. |
void |
removeUndoRedoListener(UndoRedoListener listener)
Remove undo/redo listener. |
void |
selectAll()
Selects all text. |
void |
setEditable(boolean editable)
Sets whether or not the text component is editable. |
void |
setModified(boolean modified)
Sets whether or not content of the text area is modified. |
void |
setText(java.lang.String text)
Sets text. |
void |
undo()
Undos last action. |
void |
write(java.io.Writer writer)
Writes text to writer. |
Methods inherited from class yu.ac.bg.etf.javaqx.core.AbstractDisposable |
addDisposeListener, dispose, disposedCheck, disposedErrorString, finalize, isDisposed, removeDisposeListener |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public void clearText()
public java.lang.String getText()
public void setText(java.lang.String text)
text
- the textpublic void appendText(java.lang.String text)
text
- the textpublic void insertText(java.lang.String text)
text
- the text to be insertedpublic boolean isEditable()
public void setEditable(boolean editable)
editable
- true if editablepublic boolean isUndoAvailable()
public boolean isRedoAvailable()
public boolean isCutAvailable()
public boolean isCopyAvailable()
public boolean isPasteAvailable()
public boolean isClearAvailable()
public boolean isSelectAllAvailable()
public void undo()
public void redo()
public void cut()
public void copy()
public void paste()
public void clear()
public void selectAll()
public boolean isModified()
public void setModified(boolean modified)
modified
- true if modified.public void read(java.io.Reader reader) throws java.io.IOException
reader
- the reader
java.io.IOException
- on an I/O errorpublic void write(java.io.Writer writer) throws java.io.IOException
writer
- the writer
java.io.IOException
- on an I/O errorpublic void print(Printer printer)
printer
- the printerpublic void addUndoRedoListener(UndoRedoListener listener)
listener
- the undo/redo listenerpublic void removeUndoRedoListener(UndoRedoListener listener)
listener
- the undo/redo listenerpublic UndoRedoListener[] getUndoRedoListeners()
public void addEditListener(EditListener listener)
listener
- the edit listenerpublic void removeEditListener(EditListener listener)
listener
- the edit listenerpublic EditListener[] getEditListeners()
protected void fireUndoAvailable(boolean available)
available
- true if availableprotected void fireRedoAvailable(boolean available)
available
- true if availableprotected void fireCutAvailable(boolean available)
available
- true if availableprotected void fireCopyAvailable(boolean available)
available
- true if availableprotected void firePasteAvailable(boolean available)
available
- true if availableprotected void fireClearAvailable(boolean available)
available
- true if availableprotected void fireSelectAllAvailable(boolean available)
available
- true if available
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |