|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractCellEditor
de.mospace.swing.text.FullTextStringCellEditor
public class FullTextStringCellEditor
A multiline string editor for JTables. The cell contents are displayed and edited in a text area aligned with the cell's top, left, and right bounds. The text area is displayed in the modal layer above the cell that is edited.
FullTextString,
FullTextStringCellRenderer,
Serialized Form| Field Summary |
|---|
| Fields inherited from class javax.swing.AbstractCellEditor |
|---|
changeEvent, listenerList |
| Constructor Summary | |
|---|---|
FullTextStringCellEditor()
Creates a new FullTextStringCellEditor object. |
|
| Method Summary | |
|---|---|
void |
cancelCellEditing()
Closes the editor, notifies the JTable that editing has cancelled, and returns focus to the JTable and the cell that have been edited. |
Object |
getCellEditorValue()
Returns the value contained in the editor. |
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
Returns the component that should be added to the client's Component hierarchy. |
void |
setHeight(int i)
Sets the height for the text-area in which cell contents are edited. |
boolean |
stopCellEditing()
Stops editing and returns true to indicate that editing has stopped. |
| Methods inherited from class javax.swing.AbstractCellEditor |
|---|
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.CellEditor |
|---|
addCellEditorListener, isCellEditable, removeCellEditorListener, shouldSelectCell |
| Constructor Detail |
|---|
public FullTextStringCellEditor()
| Method Detail |
|---|
public Object getCellEditorValue()
getCellEditorValue in interface CellEditornull
for empty or invalid valuesFullTextString
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
getTableCellEditorComponent in interface TableCellEditortable - the JTable that is asking the editor to edit; can be nullvalue - the value of the cell to be edited, null is a valid valueisSelected - must be true, otherwise null is returnedrow - the row of the cell being editedcolumn - the column of the cell being edited
public void cancelCellEditing()
cancelCellEditing in interface CellEditorcancelCellEditing in class AbstractCellEditorpublic boolean stopCellEditing()
stopCellEditing in interface CellEditorstopCellEditing in class AbstractCellEditorpublic void setHeight(int i)
i - the new height in pixels, default is 100
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||