Class TextCell
- java.lang.Object
-
- org.processmining.filterbook.cells.Cell
-
- org.processmining.filterbook.cells.TextCell
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.awt.event.KeyListener,java.util.EventListener
public class TextCell extends Cell implements java.awt.event.KeyListener, java.awt.event.ActionListener
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)CellTemplategetTemplate()Get a template for this text cell.java.lang.StringgetText()Gets the text in the text area.javax.swing.JComponentgetWidget(boolean doReset)Abstract method to get a widget for this cell.voidkeyPressed(java.awt.event.KeyEvent arg0)voidkeyReleased(java.awt.event.KeyEvent arg0)voidkeyTyped(java.awt.event.KeyEvent arg0)voidsetText(java.lang.String text)Sets the text in the text area.voidupdate()Abstract method to call if the cell needs to be updated.voidupdated()Abstract method to call if the cell has been updated.-
Methods inherited from class org.processmining.filterbook.cells.Cell
getContext, getName, getNotebook, setName
-
-
-
-
Constructor Detail
-
TextCell
public TextCell(org.processmining.contexts.uitopia.UIPluginContext context, Notebook notebook, java.lang.String name)Construct a text cell with given context, notebook, and name.- Parameters:
context- The given contextnotebook- The given notebookname- The given name
-
-
Method Detail
-
updated
public void updated()
Description copied from class:CellAbstract method to call if the cell has been updated.
-
getWidget
public javax.swing.JComponent getWidget(boolean doReset)
Description copied from class:CellAbstract method to get a widget for this cell.
-
getText
public java.lang.String getText()
Gets the text in the text area.- Returns:
- The text in the text area.
-
setText
public void setText(java.lang.String text)
Sets the text in the text area.- Parameters:
text- The text to set in the text area.
-
keyPressed
public void keyPressed(java.awt.event.KeyEvent arg0)
- Specified by:
keyPressedin interfacejava.awt.event.KeyListener
-
keyReleased
public void keyReleased(java.awt.event.KeyEvent arg0)
- Specified by:
keyReleasedin interfacejava.awt.event.KeyListener
-
keyTyped
public void keyTyped(java.awt.event.KeyEvent arg0)
- Specified by:
keyTypedin interfacejava.awt.event.KeyListener
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
update
public void update()
Description copied from class:CellAbstract method to call if the cell needs to be updated.
-
getTemplate
public CellTemplate getTemplate()
Get a template for this text cell.- Specified by:
getTemplatein classCell- Returns:
- A cell template for this cell
-
-