pt.moredata.widgets
Class EditorPane

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bypt.moredata.widgets.EditorPane
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
Direct Known Subclasses:
EditorPaneObject

public class EditorPane
extends javax.swing.JPanel

Title:

Description:

Editor pane que implementa a possibilidade de scroll De futuro tambem permitira uma toolbar com botoes de formatacao ??? Deveria ser derivada de JComponent e nao de painel Copyright:

     Copyright (C) 2002 Moredata This program is free
  software; you can redistribute it and/or modify it under the terms of the
  GNU General Public License as published by the Free Software Foundation;
  either version 2 of the License, or (at your option) any later version. This
  program is distributed in the hope that it will be useful, but WITHOUT ANY
  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  details. You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software Foundation, Inc,
  59 Temple Place-Suite 330, Boston, MA 02111-1307, USA. 

Company : Moredata @author: Sergio Ferreira

Version:
1.0 XXX : Isto nao devia extender o JTextPane em vez do JPanel ?
Author:
aricardo
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static java.lang.String DEFAULT_KEYMAP
          Description of the Field
static java.lang.String FOCUS_ACCELERATOR_KEY
          Description of the Field
 
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
EditorPane()
          Constructor for the DataEditorPane object
 
Method Summary
 void addCaretListener(javax.swing.event.CaretListener listener)
          Adds a feature to the CaretListener attribute of the DataEditorPane object
 void addHyperlinkListener(javax.swing.event.HyperlinkListener listener)
          Adds a feature to the HyperlinkListener attribute of the DataEditorPane object
 void addInputMethodListener(java.awt.event.InputMethodListener l)
          Adds a feature to the InputMethodListener attribute of the DataEditorPane object
static javax.swing.text.Keymap addKeymap(java.lang.String nm, javax.swing.text.Keymap parent)
          Adds a feature to the Keymap attribute of the DataEditorPane class
 void autoScroll(java.awt.Rectangle aRect)
          Description of the Method
 void copy()
          Description of the Method
static javax.swing.text.EditorKit createEditorKitForContentType(java.lang.String type)
          Description of the Method
 void cut()
          Description of the Method
 void fireHyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
          Description of the Method
 javax.accessibility.AccessibleContext getAccessibleContext()
          Gets the accessibleContext attribute of the DataEditorPane object
 javax.swing.Action[] getActions()
          Gets the actions attribute of the DataEditorPane object
 javax.swing.text.Caret getCaret()
          Gets the caret attribute of the DataEditorPane object
 java.awt.Color getCaretColor()
          Gets the caretColor attribute of the DataEditorPane object
 int getCaretPosition()
          Gets the caretPosition attribute of the DataEditorPane object
 java.lang.String getContentType()
          Gets the contentType attribute of the DataEditorPane object
 java.awt.Color getDisabledTextColor()
          Gets the disabledTextColor attribute of the DataEditorPane object
 javax.swing.text.Document getDocument()
          Gets the document attribute of the DataEditorPane object
 javax.swing.text.EditorKit getEditorKit()
          Gets the editorKit attribute of the DataEditorPane object
 javax.swing.text.EditorKit getEditorKitForContentType(java.lang.String type)
          Gets the editorKitForContentType attribute of the DataEditorPane object
 char getFocusAccelerator()
          Gets the focusAccelerator attribute of the DataEditorPane object
 java.awt.Font getFont()
          Gets the font attribute of the DataEditorPane object
 javax.swing.text.Highlighter getHighlighter()
          Gets the highlighter attribute of the DataEditorPane object
 javax.swing.text.Keymap getKeymap()
          Gets the keymap attribute of the DataEditorPane object
static javax.swing.text.Keymap getKeymap(java.lang.String nm)
          Gets the keymap attribute of the DataEditorPane class
 java.awt.Insets getMargin()
          Gets the margin attribute of the DataEditorPane object
 int getMaxColumns()
          Gets the maxColumns attribute of the DataEditorPane object
 int getMaxLines()
          Gets the maxLines attribute of the DataEditorPane object
 java.lang.Object getObject()
          Devolve o valor correspondente ao campo de texto
 java.net.URL getPage()
          Gets the page attribute of the DataEditorPane object
 java.awt.Dimension getPreferredScrollableViewportSize()
          Gets the preferredScrollableViewportSize attribute of the DataEditorPane object
 int getScrollableBlockIncrement(java.awt.Rectangle visibleRect, int orientation, int direction)
          Gets the scrollableBlockIncrement attribute of the DataEditorPane object
 boolean getScrollableTracksViewportHeight()
          Gets the scrollableTracksViewportHeight attribute of the DataEditorPane object
 boolean getScrollableTracksViewportWidth()
          Gets the scrollableTracksViewportWidth attribute of the DataEditorPane object
 int getScrollableUnitIncrement(java.awt.Rectangle visibleRect, int orientation, int direction)
          Gets the scrollableUnitIncrement attribute of the DataEditorPane object
 java.lang.String getSelectedText()
          Gets the selectedText attribute of the DataEditorPane object
 java.awt.Color getSelectedTextColor()
          Gets the selectedTextColor attribute of the DataEditorPane object
 java.awt.Color getSelectionColor()
          Gets the selectionColor attribute of the DataEditorPane object
 int getSelectionEnd()
          Gets the selectionEnd attribute of the DataEditorPane object
 int getSelectionStart()
          Gets the selectionStart attribute of the DataEditorPane object
 java.lang.String getText()
          Gets the text attribute of the DataEditorPane object
 java.lang.String getText(int offs, int len)
          Gets the text attribute of the DataEditorPane object
 int getTextLines()
          Devolve o numero de linhas que o texto ocupa
 boolean isEditable()
          Gets the editable attribute of the DataEditorPane object
 boolean isEnabled()
          Gets the enabled attribute of the DataEditorPane object
 boolean isFocusable()
          Gets the focusable attribute of the DataEditorPane object
static void loadKeymap(javax.swing.text.Keymap map, javax.swing.text.JTextComponent.KeyBinding[] bindings, javax.swing.Action[] actions)
          Description of the Method
 java.awt.Rectangle modelToView(int pos)
          Description of the Method
 void moveCaretPosition(int pos)
          Description of the Method
 void paste()
          Description of the Method
 void printNLines()
          Metodo para debug do numero de linhas existente
 void read(java.io.InputStream in, java.lang.Object desc)
          Description of the Method
 void read(java.io.Reader in, java.lang.Object desc)
          Description of the Method
static void registerEditorKitForContentType(java.lang.String type, java.lang.String classname)
          Description of the Method
static void registerEditorKitForContentType(java.lang.String type, java.lang.String classname, java.lang.ClassLoader loader)
          Description of the Method
 void removeCaretListener(javax.swing.event.CaretListener listener)
          Description of the Method
 void removeHyperlinkListener(javax.swing.event.HyperlinkListener listener)
          Description of the Method
static javax.swing.text.Keymap removeKeymap(java.lang.String nm)
          Description of the Method
 void removeNotify()
          Description of the Method
 void select(int selectionStart, int selectionEnd)
          Description of the Method
 void selectAll()
          Description of the Method
 void setCaret(javax.swing.text.Caret c)
          Sets the caret attribute of the DataEditorPane object
 void setCaretColor(java.awt.Color c)
          Sets the caretColor attribute of the DataEditorPane object
 void setCaretPosition(int position)
          Sets the caretPosition attribute of the DataEditorPane object
 void setContentType(java.lang.String type)
          Sets the contentType attribute of the DataEditorPane object
 void setDisabledTextColor(java.awt.Color c)
          Sets the disabledTextColor attribute of the DataEditorPane object
 void setDocument(javax.swing.text.Document doc)
          Sets the document attribute of the DataEditorPane object
 void setEditable(boolean b)
          Sets the editable attribute of the DataEditorPane object
 void setEditorKit(javax.swing.text.EditorKit kit)
          Sets the editorKit attribute of the DataEditorPane object
 void setEditorKitForContentType(java.lang.String type, javax.swing.text.EditorKit k)
          Sets the editorKitForContentType attribute of the DataEditorPane object
 void setEnabled(boolean b)
          Sets the enabled attribute of the DataEditorPane object
 void setFocusAccelerator(char aKey)
          Sets the focusAccelerator attribute of the DataEditorPane object
 void setFont(java.awt.Font f)
          Sets the font attribute of the DataEditorPane object
 void setHighlighter(javax.swing.text.Highlighter h)
          Sets the highlighter attribute of the DataEditorPane object
 void setKeymap(javax.swing.text.Keymap map)
          Sets the keymap attribute of the DataEditorPane object
 void setMargin(java.awt.Insets m)
          Sets the margin attribute of the DataEditorPane object
 void setMaxColumns(int _maxColumns)
          Sets the maxColumns attribute of the DataEditorPane object
 void setMaxLines(int _maxLines)
          Sets the maxLines attribute of the DataEditorPane object
 void setObject(java.lang.Object object)
          Afecta o objecto com um valor
 void setPage(java.lang.String url)
          Sets the page attribute of the DataEditorPane object
 void setPage(java.net.URL page)
          Sets the page attribute of the DataEditorPane object
 void setSelectedTextColor(java.awt.Color c)
          Sets the selectedTextColor attribute of the DataEditorPane object
 void setSelectionColor(java.awt.Color c)
          Sets the selectionColor attribute of the DataEditorPane object
 void setSelectionEnd(int selectionEnd)
          Sets the selectionEnd attribute of the DataEditorPane object
 void setSelectionStart(int selectionStart)
          Sets the selectionStart attribute of the DataEditorPane object
 void setText(java.lang.String t)
          Sets the text attribute of the DataEditorPane object
 int viewToModel(java.awt.Point pt)
          Description of the Method
 void write(java.io.Writer out)
          Description of the Method
 
Methods inherited from class javax.swing.JPanel
getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FOCUS_ACCELERATOR_KEY

public static final java.lang.String FOCUS_ACCELERATOR_KEY
Description of the Field

See Also:
Constant Field Values

DEFAULT_KEYMAP

public static final java.lang.String DEFAULT_KEYMAP
Description of the Field

See Also:
Constant Field Values
Constructor Detail

EditorPane

public EditorPane()
Constructor for the DataEditorPane object

Method Detail

getMaxLines

public int getMaxLines()
Gets the maxLines attribute of the DataEditorPane object

Returns:
The maxLines value

setMaxLines

public void setMaxLines(int _maxLines)
Sets the maxLines attribute of the DataEditorPane object

Parameters:
_maxLines - The new maxLines value

getMaxColumns

public int getMaxColumns()
Gets the maxColumns attribute of the DataEditorPane object

Returns:
The maxColumns value

setMaxColumns

public void setMaxColumns(int _maxColumns)
Sets the maxColumns attribute of the DataEditorPane object

Parameters:
_maxColumns - The new maxColumns value

addHyperlinkListener

public void addHyperlinkListener(javax.swing.event.HyperlinkListener listener)
Adds a feature to the HyperlinkListener attribute of the DataEditorPane object

Parameters:
listener - The feature to be added to the HyperlinkListener attribute

createEditorKitForContentType

public static javax.swing.text.EditorKit createEditorKitForContentType(java.lang.String type)
Description of the Method

Parameters:
type - Description of the Parameter
Returns:
Description of the Return Value

fireHyperlinkUpdate

public void fireHyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
Description of the Method

Parameters:
e - Description of the Parameter

getContentType

public java.lang.String getContentType()
Gets the contentType attribute of the DataEditorPane object

Returns:
The contentType value

getEditorKit

public javax.swing.text.EditorKit getEditorKit()
Gets the editorKit attribute of the DataEditorPane object

Returns:
The editorKit value

getEditorKitForContentType

public javax.swing.text.EditorKit getEditorKitForContentType(java.lang.String type)
Gets the editorKitForContentType attribute of the DataEditorPane object

Parameters:
type - Description of the Parameter
Returns:
The editorKitForContentType value

getPage

public java.net.URL getPage()
Gets the page attribute of the DataEditorPane object

Returns:
The page value

getScrollableTracksViewportHeight

public boolean getScrollableTracksViewportHeight()
Gets the scrollableTracksViewportHeight attribute of the DataEditorPane object

Returns:
The scrollableTracksViewportHeight value

getScrollableTracksViewportWidth

public boolean getScrollableTracksViewportWidth()
Gets the scrollableTracksViewportWidth attribute of the DataEditorPane object

Returns:
The scrollableTracksViewportWidth value

getText

public java.lang.String getText()
Gets the text attribute of the DataEditorPane object

Returns:
The text value

read

public void read(java.io.InputStream in,
                 java.lang.Object desc)
          throws java.io.IOException
Description of the Method

Parameters:
in - Description of the Parameter
desc - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

registerEditorKitForContentType

public static void registerEditorKitForContentType(java.lang.String type,
                                                   java.lang.String classname)
Description of the Method

Parameters:
type - Description of the Parameter
classname - Description of the Parameter

registerEditorKitForContentType

public static void registerEditorKitForContentType(java.lang.String type,
                                                   java.lang.String classname,
                                                   java.lang.ClassLoader loader)
Description of the Method

Parameters:
type - Description of the Parameter
classname - Description of the Parameter
loader - Description of the Parameter

removeHyperlinkListener

public void removeHyperlinkListener(javax.swing.event.HyperlinkListener listener)
Description of the Method

Parameters:
listener - Description of the Parameter

setContentType

public void setContentType(java.lang.String type)
Sets the contentType attribute of the DataEditorPane object

Parameters:
type - The new contentType value

setEditorKit

public void setEditorKit(javax.swing.text.EditorKit kit)
Sets the editorKit attribute of the DataEditorPane object

Parameters:
kit - The new editorKit value

setEditorKitForContentType

public void setEditorKitForContentType(java.lang.String type,
                                       javax.swing.text.EditorKit k)
Sets the editorKitForContentType attribute of the DataEditorPane object

Parameters:
type - The new editorKitForContentType value
k - The new editorKitForContentType value

setPage

public void setPage(java.lang.String url)
             throws java.io.IOException
Sets the page attribute of the DataEditorPane object

Parameters:
url - The new page value
Throws:
java.io.IOException - Description of the Exception

setPage

public void setPage(java.net.URL page)
             throws java.io.IOException
Sets the page attribute of the DataEditorPane object

Parameters:
page - The new page value
Throws:
java.io.IOException - Description of the Exception

setText

public void setText(java.lang.String t)
Sets the text attribute of the DataEditorPane object

Parameters:
t - The new text value

getObject

public java.lang.Object getObject()
Devolve o valor correspondente ao campo de texto

Returns:
The object value

setObject

public void setObject(java.lang.Object object)
Afecta o objecto com um valor

Parameters:
object - The new object value

getTextLines

public int getTextLines()
Devolve o numero de linhas que o texto ocupa

Returns:
The textLines value

printNLines

public void printNLines()
Metodo para debug do numero de linhas existente


addCaretListener

public void addCaretListener(javax.swing.event.CaretListener listener)
Adds a feature to the CaretListener attribute of the DataEditorPane object

Parameters:
listener - The feature to be added to the CaretListener attribute

removeCaretListener

public void removeCaretListener(javax.swing.event.CaretListener listener)
Description of the Method

Parameters:
listener - Description of the Parameter

setDocument

public void setDocument(javax.swing.text.Document doc)
Sets the document attribute of the DataEditorPane object

Parameters:
doc - The new document value

getDocument

public javax.swing.text.Document getDocument()
Gets the document attribute of the DataEditorPane object

Returns:
The document value

getActions

public javax.swing.Action[] getActions()
Gets the actions attribute of the DataEditorPane object

Returns:
The actions value

setMargin

public void setMargin(java.awt.Insets m)
Sets the margin attribute of the DataEditorPane object

Parameters:
m - The new margin value

getMargin

public java.awt.Insets getMargin()
Gets the margin attribute of the DataEditorPane object

Returns:
The margin value

getCaret

public javax.swing.text.Caret getCaret()
Gets the caret attribute of the DataEditorPane object

Returns:
The caret value

setCaret

public void setCaret(javax.swing.text.Caret c)
Sets the caret attribute of the DataEditorPane object

Parameters:
c - The new caret value

getHighlighter

public javax.swing.text.Highlighter getHighlighter()
Gets the highlighter attribute of the DataEditorPane object

Returns:
The highlighter value

setHighlighter

public void setHighlighter(javax.swing.text.Highlighter h)
Sets the highlighter attribute of the DataEditorPane object

Parameters:
h - The new highlighter value

setKeymap

public void setKeymap(javax.swing.text.Keymap map)
Sets the keymap attribute of the DataEditorPane object

Parameters:
map - The new keymap value

getKeymap

public javax.swing.text.Keymap getKeymap()
Gets the keymap attribute of the DataEditorPane object

Returns:
The keymap value

addKeymap

public static javax.swing.text.Keymap addKeymap(java.lang.String nm,
                                                javax.swing.text.Keymap parent)
Adds a feature to the Keymap attribute of the DataEditorPane class

Parameters:
nm - The feature to be added to the Keymap attribute
parent - The feature to be added to the Keymap attribute
Returns:
Description of the Return Value

removeKeymap

public static javax.swing.text.Keymap removeKeymap(java.lang.String nm)
Description of the Method

Parameters:
nm - Description of the Parameter
Returns:
Description of the Return Value

getKeymap

public static javax.swing.text.Keymap getKeymap(java.lang.String nm)
Gets the keymap attribute of the DataEditorPane class

Parameters:
nm - Description of the Parameter
Returns:
The keymap value

loadKeymap

public static void loadKeymap(javax.swing.text.Keymap map,
                              javax.swing.text.JTextComponent.KeyBinding[] bindings,
                              javax.swing.Action[] actions)
Description of the Method

Parameters:
map - Description of the Parameter
bindings - Description of the Parameter
actions - Description of the Parameter

getCaretColor

public java.awt.Color getCaretColor()
Gets the caretColor attribute of the DataEditorPane object

Returns:
The caretColor value

setCaretColor

public void setCaretColor(java.awt.Color c)
Sets the caretColor attribute of the DataEditorPane object

Parameters:
c - The new caretColor value

getSelectionColor

public java.awt.Color getSelectionColor()
Gets the selectionColor attribute of the DataEditorPane object

Returns:
The selectionColor value

setSelectionColor

public void setSelectionColor(java.awt.Color c)
Sets the selectionColor attribute of the DataEditorPane object

Parameters:
c - The new selectionColor value

getSelectedTextColor

public java.awt.Color getSelectedTextColor()
Gets the selectedTextColor attribute of the DataEditorPane object

Returns:
The selectedTextColor value

setSelectedTextColor

public void setSelectedTextColor(java.awt.Color c)
Sets the selectedTextColor attribute of the DataEditorPane object

Parameters:
c - The new selectedTextColor value

getDisabledTextColor

public java.awt.Color getDisabledTextColor()
Gets the disabledTextColor attribute of the DataEditorPane object

Returns:
The disabledTextColor value

setDisabledTextColor

public void setDisabledTextColor(java.awt.Color c)
Sets the disabledTextColor attribute of the DataEditorPane object

Parameters:
c - The new disabledTextColor value

getText

public java.lang.String getText(int offs,
                                int len)
                         throws javax.swing.text.BadLocationException
Gets the text attribute of the DataEditorPane object

Parameters:
offs - Description of the Parameter
len - Description of the Parameter
Returns:
The text value
Throws:
javax.swing.text.BadLocationException - Description of the Exception

modelToView

public java.awt.Rectangle modelToView(int pos)
                               throws javax.swing.text.BadLocationException
Description of the Method

Parameters:
pos - Description of the Parameter
Returns:
Description of the Return Value
Throws:
javax.swing.text.BadLocationException - Description of the Exception

viewToModel

public int viewToModel(java.awt.Point pt)
Description of the Method

Parameters:
pt - Description of the Parameter
Returns:
Description of the Return Value

cut

public void cut()
Description of the Method


copy

public void copy()
Description of the Method


paste

public void paste()
Description of the Method


moveCaretPosition

public void moveCaretPosition(int pos)
Description of the Method

Parameters:
pos - Description of the Parameter

setFocusAccelerator

public void setFocusAccelerator(char aKey)
Sets the focusAccelerator attribute of the DataEditorPane object

Parameters:
aKey - The new focusAccelerator value

getFocusAccelerator

public char getFocusAccelerator()
Gets the focusAccelerator attribute of the DataEditorPane object

Returns:
The focusAccelerator value

read

public void read(java.io.Reader in,
                 java.lang.Object desc)
          throws java.io.IOException
Description of the Method

Parameters:
in - Description of the Parameter
desc - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

write

public void write(java.io.Writer out)
           throws java.io.IOException
Description of the Method

Parameters:
out - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

removeNotify

public void removeNotify()
Description of the Method


setEnabled

public void setEnabled(boolean b)
Sets the enabled attribute of the DataEditorPane object

Parameters:
b - The new enabled value

isFocusable

public boolean isFocusable()
Gets the focusable attribute of the DataEditorPane object

Returns:
The focusable value

setCaretPosition

public void setCaretPosition(int position)
Sets the caretPosition attribute of the DataEditorPane object

Parameters:
position - The new caretPosition value

getCaretPosition

public int getCaretPosition()
Gets the caretPosition attribute of the DataEditorPane object

Returns:
The caretPosition value

getSelectedText

public java.lang.String getSelectedText()
Gets the selectedText attribute of the DataEditorPane object

Returns:
The selectedText value

isEditable

public boolean isEditable()
Gets the editable attribute of the DataEditorPane object

Returns:
The editable value

isEnabled

public boolean isEnabled()
Gets the enabled attribute of the DataEditorPane object

Returns:
The enabled value

setEditable

public void setEditable(boolean b)
Sets the editable attribute of the DataEditorPane object

Parameters:
b - The new editable value

getSelectionStart

public int getSelectionStart()
Gets the selectionStart attribute of the DataEditorPane object

Returns:
The selectionStart value

setSelectionStart

public void setSelectionStart(int selectionStart)
Sets the selectionStart attribute of the DataEditorPane object

Parameters:
selectionStart - The new selectionStart value

getSelectionEnd

public int getSelectionEnd()
Gets the selectionEnd attribute of the DataEditorPane object

Returns:
The selectionEnd value

setSelectionEnd

public void setSelectionEnd(int selectionEnd)
Sets the selectionEnd attribute of the DataEditorPane object

Parameters:
selectionEnd - The new selectionEnd value

select

public void select(int selectionStart,
                   int selectionEnd)
Description of the Method

Parameters:
selectionStart - Description of the Parameter
selectionEnd - Description of the Parameter

selectAll

public void selectAll()
Description of the Method


getPreferredScrollableViewportSize

public java.awt.Dimension getPreferredScrollableViewportSize()
Gets the preferredScrollableViewportSize attribute of the DataEditorPane object

Returns:
The preferredScrollableViewportSize value

getScrollableUnitIncrement

public int getScrollableUnitIncrement(java.awt.Rectangle visibleRect,
                                      int orientation,
                                      int direction)
Gets the scrollableUnitIncrement attribute of the DataEditorPane object

Parameters:
visibleRect - Description of the Parameter
orientation - Description of the Parameter
direction - Description of the Parameter
Returns:
The scrollableUnitIncrement value

getScrollableBlockIncrement

public int getScrollableBlockIncrement(java.awt.Rectangle visibleRect,
                                       int orientation,
                                       int direction)
Gets the scrollableBlockIncrement attribute of the DataEditorPane object

Parameters:
visibleRect - Description of the Parameter
orientation - Description of the Parameter
direction - Description of the Parameter
Returns:
The scrollableBlockIncrement value

getAccessibleContext

public javax.accessibility.AccessibleContext getAccessibleContext()
Gets the accessibleContext attribute of the DataEditorPane object

Returns:
The accessibleContext value

addInputMethodListener

public void addInputMethodListener(java.awt.event.InputMethodListener l)
Adds a feature to the InputMethodListener attribute of the DataEditorPane object

Parameters:
l - The feature to be added to the InputMethodListener attribute

setFont

public void setFont(java.awt.Font f)
Sets the font attribute of the DataEditorPane object

Parameters:
f - The new font value

getFont

public java.awt.Font getFont()
Gets the font attribute of the DataEditorPane object

Returns:
The font value

autoScroll

public void autoScroll(java.awt.Rectangle aRect)
Description of the Method

Parameters:
aRect - Description of the Parameter