yu.ac.bg.etf.javaqx.qswing
Class JQTextArea

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.core.AbstractDisposable
      extended byyu.ac.bg.etf.javaqx.qswing.JQComponent
          extended byyu.ac.bg.etf.javaqx.qswing.JQTextComponent
              extended byyu.ac.bg.etf.javaqx.qswing.JQTextArea
All Implemented Interfaces:
Disposable, JQComponentProperties, JQTextAreaProperties, JQTextComponentProperties
Direct Known Subclasses:
CodeViewer

public class JQTextArea
extends JQTextComponent
implements JQTextAreaProperties

Text Area Component.

NOTE: This class is not compatible with javax.swing.JTextPane class!

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

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.JQTextAreaProperties
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
JQTextArea()
          Constructs new JQTextArea object.
JQTextArea(PlainDocument document)
          Constructs new JQTextArea object.
JQTextArea(java.lang.String text)
          Constructs new JQTextArea object.
 
Method Summary
 PlainDocument 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(PlainDocument 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.qswing.JQComponent
addComponentListener, addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, disableEvents, disposeComponent, disposeObject, enableEvents, eventEnabled, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getClientProperty, getComponentListeners, getComponentOrientation, getContextMenu, getCursor, getEventMask, getFocusListener, getFont, getFontMetrics, getForeground, getHeight, getInsets, getKeyListeners, getLocale, getLocation, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getOwnedComponents, getOwner, getParent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getResourceBundleName, getSize, getStatusTipText, getStyleSheet, getToolTipText, getToolTipText, getWhatsThisText, getWidth, getX, getY, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLeftToRight, isLocaleSet, isOpaque, isOwnerOf, isPainting, isResizable, isResourceBundleNameSet, isUpdatesEnabled, isValid, isVisible, localizeObject, localizeString, localizeString, localizeStrings, paintComponent, paramString, processComponentEvent, processContextMenuEvent, processFocusEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, processStyleChange, putClientProperty, removeComponentListener, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, removeStyleSheet, repaint, repaint, repaint, requestFocus, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setContextMenu, setCursor, setDefaultResourceBundleName, setDisplayable, setEnabled, setFixedSize, setFixedSize, setFocusable, setFont, setForeground, setInsets, setInsets, setLeftToRightComponentOrientation, setLocale, setLocation, setLocation, setMaximumSize, setMaximumSize, setMinimumSize, setMinimumSize, setName, setOpaque, setPreferredSize, setPreferredSize, setResizable, setResourceBundleName, setRightToLeftComponentOrientation, setSize, setSize, setStatusTipText, setStyleSheet, setStyleSheet, setToolTipText, setUpdatesEnabled, setVisible, setWhatsThisText, toString, unsetComponentOrientation, update, update, update, updateComponentOrientation, updateLocalization, validate
 
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

JQTextArea

public JQTextArea()
Constructs new JQTextArea object.


JQTextArea

public JQTextArea(java.lang.String text)
Constructs new JQTextArea object.

Parameters:
text - the text

JQTextArea

public JQTextArea(PlainDocument document)
Constructs new JQTextArea object.

Parameters:
document - the document
Method Detail

getDocument

public PlainDocument getDocument()
Returns document.

Returns:
document

setDocument

public void setDocument(PlainDocument document)
Sets document.

Parameters:
document - the document

isWrapText

public boolean isWrapText()
Returns true if the text area is wrapping text.

Returns:
true if the text area is wrapping text

setWrapText

public void setWrapText(boolean wrapText)
Sets wrap text status.

Parameters:
wrapText - if true the text area will wrap text

paintComponentView

protected void paintComponentView(Graphics g,
                                  int x,
                                  int y,
                                  int width,
                                  int height)
Paints view.

Parameters:
g - the graphics object
x - the x-coordinate of the view
y - the y-coordinate of the view
width - the width of the view
height - the height of the view
Throws:
java.lang.IllegalStateException - if method is called outside paint event handling


Copyright © 2007 ETF and contributors. All Rights Reserved.