|
|||||||||||
| 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.JPanel
pt.moredata.widgets.EditorPane
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
| 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 |
public static final java.lang.String FOCUS_ACCELERATOR_KEY
public static final java.lang.String DEFAULT_KEYMAP
| Constructor Detail |
public EditorPane()
| Method Detail |
public int getMaxLines()
public void setMaxLines(int _maxLines)
_maxLines - The new maxLines valuepublic int getMaxColumns()
public void setMaxColumns(int _maxColumns)
_maxColumns - The new maxColumns valuepublic void addHyperlinkListener(javax.swing.event.HyperlinkListener listener)
listener - The feature to be added to the HyperlinkListener
attributepublic static javax.swing.text.EditorKit createEditorKitForContentType(java.lang.String type)
type - Description of the Parameter
public void fireHyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
e - Description of the Parameterpublic java.lang.String getContentType()
public javax.swing.text.EditorKit getEditorKit()
public javax.swing.text.EditorKit getEditorKitForContentType(java.lang.String type)
type - Description of the Parameter
public java.net.URL getPage()
public boolean getScrollableTracksViewportHeight()
public boolean getScrollableTracksViewportWidth()
public java.lang.String getText()
public void read(java.io.InputStream in,
java.lang.Object desc)
throws java.io.IOException
in - Description of the Parameterdesc - Description of the Parameter
java.io.IOException - Description of the Exception
public static void registerEditorKitForContentType(java.lang.String type,
java.lang.String classname)
type - Description of the Parameterclassname - Description of the Parameter
public static void registerEditorKitForContentType(java.lang.String type,
java.lang.String classname,
java.lang.ClassLoader loader)
type - Description of the Parameterclassname - Description of the Parameterloader - Description of the Parameterpublic void removeHyperlinkListener(javax.swing.event.HyperlinkListener listener)
listener - Description of the Parameterpublic void setContentType(java.lang.String type)
type - The new contentType valuepublic void setEditorKit(javax.swing.text.EditorKit kit)
kit - The new editorKit value
public void setEditorKitForContentType(java.lang.String type,
javax.swing.text.EditorKit k)
type - The new editorKitForContentType valuek - The new editorKitForContentType value
public void setPage(java.lang.String url)
throws java.io.IOException
url - The new page value
java.io.IOException - Description of the Exception
public void setPage(java.net.URL page)
throws java.io.IOException
page - The new page value
java.io.IOException - Description of the Exceptionpublic void setText(java.lang.String t)
t - The new text valuepublic java.lang.Object getObject()
public void setObject(java.lang.Object object)
object - The new object valuepublic int getTextLines()
public void printNLines()
public void addCaretListener(javax.swing.event.CaretListener listener)
listener - The feature to be added to the CaretListener attributepublic void removeCaretListener(javax.swing.event.CaretListener listener)
listener - Description of the Parameterpublic void setDocument(javax.swing.text.Document doc)
doc - The new document valuepublic javax.swing.text.Document getDocument()
public javax.swing.Action[] getActions()
public void setMargin(java.awt.Insets m)
m - The new margin valuepublic java.awt.Insets getMargin()
public javax.swing.text.Caret getCaret()
public void setCaret(javax.swing.text.Caret c)
c - The new caret valuepublic javax.swing.text.Highlighter getHighlighter()
public void setHighlighter(javax.swing.text.Highlighter h)
h - The new highlighter valuepublic void setKeymap(javax.swing.text.Keymap map)
map - The new keymap valuepublic javax.swing.text.Keymap getKeymap()
public static javax.swing.text.Keymap addKeymap(java.lang.String nm,
javax.swing.text.Keymap parent)
nm - The feature to be added to the Keymap attributeparent - The feature to be added to the Keymap attribute
public static javax.swing.text.Keymap removeKeymap(java.lang.String nm)
nm - Description of the Parameter
public static javax.swing.text.Keymap getKeymap(java.lang.String nm)
nm - Description of the Parameter
public static void loadKeymap(javax.swing.text.Keymap map,
javax.swing.text.JTextComponent.KeyBinding[] bindings,
javax.swing.Action[] actions)
map - Description of the Parameterbindings - Description of the Parameteractions - Description of the Parameterpublic java.awt.Color getCaretColor()
public void setCaretColor(java.awt.Color c)
c - The new caretColor valuepublic java.awt.Color getSelectionColor()
public void setSelectionColor(java.awt.Color c)
c - The new selectionColor valuepublic java.awt.Color getSelectedTextColor()
public void setSelectedTextColor(java.awt.Color c)
c - The new selectedTextColor valuepublic java.awt.Color getDisabledTextColor()
public void setDisabledTextColor(java.awt.Color c)
c - The new disabledTextColor value
public java.lang.String getText(int offs,
int len)
throws javax.swing.text.BadLocationException
offs - Description of the Parameterlen - Description of the Parameter
javax.swing.text.BadLocationException - Description of the Exception
public java.awt.Rectangle modelToView(int pos)
throws javax.swing.text.BadLocationException
pos - Description of the Parameter
javax.swing.text.BadLocationException - Description of the Exceptionpublic int viewToModel(java.awt.Point pt)
pt - Description of the Parameter
public void cut()
public void copy()
public void paste()
public void moveCaretPosition(int pos)
pos - Description of the Parameterpublic void setFocusAccelerator(char aKey)
aKey - The new focusAccelerator valuepublic char getFocusAccelerator()
public void read(java.io.Reader in,
java.lang.Object desc)
throws java.io.IOException
in - Description of the Parameterdesc - Description of the Parameter
java.io.IOException - Description of the Exception
public void write(java.io.Writer out)
throws java.io.IOException
out - Description of the Parameter
java.io.IOException - Description of the Exceptionpublic void removeNotify()
public void setEnabled(boolean b)
b - The new enabled valuepublic boolean isFocusable()
public void setCaretPosition(int position)
position - The new caretPosition valuepublic int getCaretPosition()
public java.lang.String getSelectedText()
public boolean isEditable()
public boolean isEnabled()
public void setEditable(boolean b)
b - The new editable valuepublic int getSelectionStart()
public void setSelectionStart(int selectionStart)
selectionStart - The new selectionStart valuepublic int getSelectionEnd()
public void setSelectionEnd(int selectionEnd)
selectionEnd - The new selectionEnd value
public void select(int selectionStart,
int selectionEnd)
selectionStart - Description of the ParameterselectionEnd - Description of the Parameterpublic void selectAll()
public java.awt.Dimension getPreferredScrollableViewportSize()
public int getScrollableUnitIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction)
visibleRect - Description of the Parameterorientation - Description of the Parameterdirection - Description of the Parameter
public int getScrollableBlockIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction)
visibleRect - Description of the Parameterorientation - Description of the Parameterdirection - Description of the Parameter
public javax.accessibility.AccessibleContext getAccessibleContext()
public void addInputMethodListener(java.awt.event.InputMethodListener l)
l - The feature to be added to the InputMethodListener attributepublic void setFont(java.awt.Font f)
f - The new font valuepublic java.awt.Font getFont()
public void autoScroll(java.awt.Rectangle aRect)
aRect - Description of the Parameter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||