Class 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
    • Constructor Summary

      Constructors 
      Constructor Description
      TextCell​(org.processmining.contexts.uitopia.UIPluginContext context, Notebook notebook, java.lang.String name)
      Construct a text cell with given context, notebook, and name.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 context
        notebook - The given notebook
        name - The given name
    • Method Detail

      • updated

        public void updated()
        Description copied from class: Cell
        Abstract method to call if the cell has been updated.
        Specified by:
        updated in class Cell
      • getWidget

        public javax.swing.JComponent getWidget​(boolean doReset)
        Description copied from class: Cell
        Abstract method to get a widget for this cell.
        Specified by:
        getWidget in class Cell
        Parameters:
        doReset - Whether to ignore any old widget.
        Returns:
        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:
        keyPressed in interface java.awt.event.KeyListener
      • keyReleased

        public void keyReleased​(java.awt.event.KeyEvent arg0)
        Specified by:
        keyReleased in interface java.awt.event.KeyListener
      • keyTyped

        public void keyTyped​(java.awt.event.KeyEvent arg0)
        Specified by:
        keyTyped in interface java.awt.event.KeyListener
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
      • update

        public void update()
        Description copied from class: Cell
        Abstract method to call if the cell needs to be updated.
        Specified by:
        update in class Cell
      • getTemplate

        public CellTemplate getTemplate()
        Get a template for this text cell.
        Specified by:
        getTemplate in class Cell
        Returns:
        A cell template for this cell