public class TextCell extends Cell implements java.awt.event.KeyListener, java.awt.event.ActionListener
Constructor and Description |
---|
TextCell(org.processmining.contexts.uitopia.UIPluginContext context,
Notebook notebook,
java.lang.String name)
Construct a text cell with given context, notebook, and name.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
CellTemplate |
getTemplate()
Get a template for this text cell.
|
java.lang.String |
getText()
Gets the text in the text area.
|
javax.swing.JComponent |
getWidget(boolean doReset)
Abstract method to get a widget for this cell.
|
void |
keyPressed(java.awt.event.KeyEvent arg0) |
void |
keyReleased(java.awt.event.KeyEvent arg0) |
void |
keyTyped(java.awt.event.KeyEvent arg0) |
void |
setText(java.lang.String text)
Sets the text in the text area.
|
void |
update()
Abstract method to call if the cell needs to be updated.
|
void |
updated()
Abstract method to call if the cell has been updated.
|
getContext, getName, getNotebook, setName
public TextCell(org.processmining.contexts.uitopia.UIPluginContext context, Notebook notebook, java.lang.String name)
context
- The given contextnotebook
- The given notebookname
- The given namepublic void updated()
Cell
public javax.swing.JComponent getWidget(boolean doReset)
Cell
public java.lang.String getText()
public void setText(java.lang.String text)
text
- The text to set in the text area.public void keyPressed(java.awt.event.KeyEvent arg0)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent arg0)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent arg0)
keyTyped
in interface java.awt.event.KeyListener
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void update()
Cell
public CellTemplate getTemplate()
getTemplate
in class Cell