|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JScrollPane | +--com.klg.jclass.cell.editors.JCMultilineCellEditor | +--com.klg.jclass.cell.editors.JCWordWrapCellEditor
JCWordWrapCellEditor
provides a simple text editing component
that wraps text.
Nested Class Summary |
Nested classes inherited from class com.klg.jclass.cell.editors.JCMultilineCellEditor |
JCMultilineCellEditor.JCMultilineCellEditorTextArea |
Nested classes inherited from class javax.swing.JScrollPane |
JScrollPane.AccessibleJScrollPane, JScrollPane.ScrollBar |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected com.klg.jclass.cell.JCCellInfo |
cellInfo
|
protected boolean |
editable
|
protected int |
VERTICAL_SB_WIDTH
|
Fields inherited from class com.klg.jclass.cell.editors.JCMultilineCellEditor |
caretPosition, data, initialEvent, keys, selectAll, support, text, validateSupport |
Fields inherited from class javax.swing.JScrollPane |
columnHeader, horizontalScrollBar, horizontalScrollBarPolicy, lowerLeft, lowerRight, rowHeader, upperLeft, upperRight, verticalScrollBar, verticalScrollBarPolicy, viewport |
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 | |
JCWordWrapCellEditor()
Default constructor. |
Method Summary | |
Object |
getCellEditorValue()
Returns the object contained in the editor. |
void |
initialize(AWTEvent ev,
com.klg.jclass.cell.JCCellInfo info,
Object o)
The container calls initialize() before the edit starts to
let the editor know what kind of event started the edit
(via the AWTEvent object). |
void |
setBounds(int x,
int y,
int width,
int height)
Overridden to undo dynamic word wrapping on editor resize so that the text area then redoes the wrapping. |
protected String |
unwrapText(String s)
|
protected String |
wrapText(String s)
|
Methods inherited from class com.klg.jclass.cell.editors.JCMultilineCellEditor |
addCellEditorListener, addValidateListener, cancelCellEditing, fireValidated, focusGained, focusLost, getCellEditorText, getComponent, getEditor, getMinimumSize, getPreferredSize, getReservedKeys, getSelectAll, getText, isModified, keyPressed, keyReleased, keyTyped, processKeyEvent, removeCellEditorListener, removeValidateListener, selectAllText, setCellEditorText, setText, setVisible, stopCellEditing |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected com.klg.jclass.cell.JCCellInfo cellInfo
protected boolean editable
protected final int VERTICAL_SB_WIDTH
Constructor Detail |
public JCWordWrapCellEditor()
Method Detail |
public void initialize(AWTEvent ev, com.klg.jclass.cell.JCCellInfo info, Object o)
JCCellEditor
initialize()
before the edit starts to
let the editor know what kind of event started the edit
(via the AWTEvent
object).
info.getDrawingArea()
.
Implementors must handle null AWTEvent
s.
initialize
in interface JCCellEditor
initialize
in class JCMultilineCellEditor
ev
- event that initiated the edit operationinfo
- cell that displays information for the editoro
- item to be editedpublic Object getCellEditorValue()
getCellEditorValue
in interface JCCellEditor
getCellEditorValue
in class JCMultilineCellEditor
protected String unwrapText(String s)
protected String wrapText(String s)
public void setBounds(int x, int y, int width, int height)
setBounds
in class Component
height
- width
- x
- y
-
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |