|
|||||||||
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
yu.ac.bg.etf.javaqx.qswing.JQTextPane
Text Pane Component.
NOTE: This class is not compatible with javax.swing.JTextPane 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.JQTextPaneProperties |
PROPERTY_WRAP_TEXT |
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 |
Constructor Summary | |
JQTextPane()
Constructs new JQTextPane object. |
|
JQTextPane(java.lang.String text)
Constructs new JQTextPane object. |
|
JQTextPane(StyledDocument document)
Constructs new JQTextPane object. |
Method Summary | |
StyledDocument |
getDocument()
Returns document. |
boolean |
isWrapText()
Returns true if the text area is wrapping text. |
protected void |
paintComponentView(Graphics g,
int x,
int y,
int width,
int height)
Paints view. |
void |
setDocument(StyledDocument document)
Sets document. |
void |
setWrapText(boolean wrapText)
Sets wrap text status. |
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.JQTextComponent |
addEditListener, addUndoRedoListener, appendText, clear, clearText, copy, cut, fireClearAvailable, fireCopyAvailable, fireCutAvailable, firePasteAvailable, fireRedoAvailable, fireSelectAllAvailable, fireUndoAvailable, getEditListeners, getText, getUndoRedoListeners, insertText, isClearAvailable, isCopyAvailable, isCutAvailable, isEditable, isModified, isPasteAvailable, isRedoAvailable, isSelectAllAvailable, isUndoAvailable, paste, print, read, redo, removeEditListener, removeUndoRedoListener, selectAll, setEditable, setModified, setText, undo, write |
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 |
Constructor Detail |
public JQTextPane()
public JQTextPane(java.lang.String text)
text
- the textpublic JQTextPane(StyledDocument document)
document
- the documentMethod Detail |
public StyledDocument getDocument()
public void setDocument(StyledDocument document)
document
- the documentpublic boolean isWrapText()
public void setWrapText(boolean wrapText)
wrapText
- if true the text area will wrap textprotected void paintComponentView(Graphics g, int x, int y, int width, int height)
g
- the graphics objectx
- the x-coordinate of the viewy
- the y-coordinate of the viewwidth
- the width of the viewheight
- the height of the view
java.lang.IllegalStateException
- if method is called outside paint event
handling
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |