pt.moredata.widgets.plaf.basic
Class BasicBaseTableUI

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.TableUI
          extended bypt.moredata.widgets.plaf.BaseTableUI
              extended bypt.moredata.widgets.plaf.basic.BasicBaseTableUI

public class BasicBaseTableUI
extends BaseTableUI

BasicTableTableUI implementation

Author:
Luis Medalhas

Nested Class Summary
 class BasicBaseTableUI.FocusHandler
          This inner class is marked "public" due to a compiler bug.
 class BasicBaseTableUI.KeyHandler
          This inner class is marked "public" due to a compiler bug.
 class BasicBaseTableUI.MouseInputHandler
          This inner class is marked "public" due to a compiler bug.
 
Field Summary
 java.util.Vector cellList
           
protected  java.awt.event.FocusListener focusListener
           
protected  java.awt.event.KeyListener keyListener
           
protected  javax.swing.event.MouseInputListener mouseInputListener
           
protected  javax.swing.CellRendererPane rendererPane
           
protected  BaseTable table
           
 
Constructor Summary
BasicBaseTableUI()
           
 
Method Summary
 void addTableListener(TableListener l)
          Listener que dispara depois de se sair de uma celula
protected  java.awt.event.FocusListener createFocusListener()
          Creates the focus listener for handling keyboard navigation in the BaseTable.
protected  java.awt.event.KeyListener createKeyListener()
          Creates the key listener for handling keyboard navigation in the BaseTable.
protected  javax.swing.event.MouseInputListener createMouseInputListener()
          Creates the mouse listener for the BaseTable.
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
protected  void fireCell(TableEvent evento, byte tipo)
          Dispara o evento ao sair de uma celula
 java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
          Return the maximum size of the table.
 java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
          Return the minimum size of the table.
 java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
          Return the preferred size of the table.
protected  void installDefaults()
          Initialize JTable properties, e.g. font, foreground, and background.
protected  void installKeyboardActions()
          Register all keyboard actions on the JTable.
protected  void installListeners()
          Attaches listeners to the JTable.
 void installUI(javax.swing.JComponent c)
           
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
          Paint a representation of the table instance that was set in installUI().
 void removeTableListener(TableListener l)
           
protected  void uninstallDefaults()
           
protected  void uninstallKeyboardActions()
           
protected  void uninstallListeners()
           
 void uninstallUI(javax.swing.JComponent c)
           
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

protected BaseTable table

rendererPane

protected javax.swing.CellRendererPane rendererPane

keyListener

protected java.awt.event.KeyListener keyListener

focusListener

protected java.awt.event.FocusListener focusListener

mouseInputListener

protected javax.swing.event.MouseInputListener mouseInputListener

cellList

public java.util.Vector cellList
Constructor Detail

BasicBaseTableUI

public BasicBaseTableUI()
Method Detail

createKeyListener

protected java.awt.event.KeyListener createKeyListener()
Creates the key listener for handling keyboard navigation in the BaseTable.


createFocusListener

protected java.awt.event.FocusListener createFocusListener()
Creates the focus listener for handling keyboard navigation in the BaseTable.


createMouseInputListener

protected javax.swing.event.MouseInputListener createMouseInputListener()
Creates the mouse listener for the BaseTable.


createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

installUI

public void installUI(javax.swing.JComponent c)

installDefaults

protected void installDefaults()
Initialize JTable properties, e.g. font, foreground, and background. The font, foreground, and background properties are only set if their current value is either null or a UIResource, other properties are set if the current value is null.

See Also:
installUI(javax.swing.JComponent)

installListeners

protected void installListeners()
Attaches listeners to the JTable.


installKeyboardActions

protected void installKeyboardActions()
Register all keyboard actions on the JTable.


uninstallUI

public void uninstallUI(javax.swing.JComponent c)

uninstallDefaults

protected void uninstallDefaults()

uninstallListeners

protected void uninstallListeners()

uninstallKeyboardActions

protected void uninstallKeyboardActions()

getMinimumSize

public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
Return the minimum size of the table. The minimum height is the row height times the number of rows. The minimum width is the sum of the minimum widths of each column.


getPreferredSize

public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
Return the preferred size of the table. The preferred height is the row height times the number of rows. The preferred width is the sum of the preferred widths of each column.


getMaximumSize

public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
Return the maximum size of the table. The maximum height is the row heighttimes the number of rows. The maximum width is the sum of the maximum widths of each column.


paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Paint a representation of the table instance that was set in installUI().


addTableListener

public void addTableListener(TableListener l)
Listener que dispara depois de se sair de uma celula


removeTableListener

public void removeTableListener(TableListener l)

fireCell

protected void fireCell(TableEvent evento,
                        byte tipo)
Dispara o evento ao sair de uma celula