LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing.table
Class LyJTableFooter

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by leon.view.win.swing.table.LyJTableFooter
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.LayoutManager, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.event.TableColumnModelListener

public class LyJTableFooter
extends javax.swing.JPanel
implements java.awt.LayoutManager, javax.swing.event.TableColumnModelListener

This class implements a row of cells that can display some text.

There is a cell for each column of the parent table. This row is displayed at the bottom of the parent table and doesn't move with the vertical scrollbar

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.BaselineResizeBehavior
 
Field Summary
static java.lang.String __VERSION
           
 int HEIGHT
          The height of a this footer.
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
LyJTableFooter(javax.swing.JTable table)
          Creates a footer for the specified table, initializes and sets its content.
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
          Nothing is done.
 void columnAdded(javax.swing.event.TableColumnModelEvent e)
          (non-Javadoc).
 void columnMarginChanged(javax.swing.event.ChangeEvent e)
          (non-Javadoc).
 void columnMoved(javax.swing.event.TableColumnModelEvent e)
          (non-Javadoc).
 void columnRemoved(javax.swing.event.TableColumnModelEvent e)
          (non-Javadoc).
 void columnSelectionChanged(javax.swing.event.ListSelectionEvent e)
          Nothing is done.
 void layoutContainer(java.awt.Container parent)
          (non-Javadoc).
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
          (non-Javadoc).
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
          (non-Javadoc).
 void removeLayoutComponent(java.awt.Component comp)
          Nothing is done.
 void setBackground(java.awt.Color color)
          (non-Javadoc).
 void setContent()
          Fills the row content.
 void setFont(java.awt.Font font)
          (non-Javadoc).
 void setFooter(int index, java.lang.String text)
          Sets the text to display in the footer at the specified index.
 void setForeground(java.awt.Color color)
          (non-Javadoc).
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values

HEIGHT

public int HEIGHT
The height of a this footer.

Constructor Detail

LyJTableFooter

public LyJTableFooter(javax.swing.JTable table)
Creates a footer for the specified table, initializes and sets its content.

Parameters:
table - the parent table
Method Detail

setContent

public void setContent()
Fills the row content.


setFont

public void setFont(java.awt.Font font)
(non-Javadoc).

Overrides:
setFont in class javax.swing.JComponent
See Also:
Component.setFont(java.awt.Font)

setBackground

public void setBackground(java.awt.Color color)
(non-Javadoc).

Overrides:
setBackground in class javax.swing.JComponent
See Also:
Component.setBackground(java.awt.Color)

setForeground

public void setForeground(java.awt.Color color)
(non-Javadoc).

Overrides:
setForeground in class javax.swing.JComponent
See Also:
Component.setForeground(java.awt.Color)

setFooter

public void setFooter(int index,
                      java.lang.String text)
Sets the text to display in the footer at the specified index.

Parameters:
index - the index of the footer to update
text - the text to display in the footer

columnAdded

public void columnAdded(javax.swing.event.TableColumnModelEvent e)
(non-Javadoc).

Specified by:
columnAdded in interface javax.swing.event.TableColumnModelListener
See Also:
TableColumnModelListener.columnAdded(javax.swing.event.TableColumnModelEvent)

columnMarginChanged

public void columnMarginChanged(javax.swing.event.ChangeEvent e)
(non-Javadoc).

Specified by:
columnMarginChanged in interface javax.swing.event.TableColumnModelListener
See Also:
TableColumnModelListener.columnMarginChanged(javax.swing.event.ChangeEvent)

columnMoved

public void columnMoved(javax.swing.event.TableColumnModelEvent e)
(non-Javadoc).

Specified by:
columnMoved in interface javax.swing.event.TableColumnModelListener
See Also:
TableColumnModelListener.columnMoved(javax.swing.event.TableColumnModelEvent)

columnRemoved

public void columnRemoved(javax.swing.event.TableColumnModelEvent e)
(non-Javadoc).

Specified by:
columnRemoved in interface javax.swing.event.TableColumnModelListener
See Also:
TableColumnModelListener.columnRemoved(javax.swing.event.TableColumnModelEvent)

columnSelectionChanged

public void columnSelectionChanged(javax.swing.event.ListSelectionEvent e)
Nothing is done.

Specified by:
columnSelectionChanged in interface javax.swing.event.TableColumnModelListener
See Also:
TableColumnModelListener.columnSelectionChanged(javax.swing.event.ListSelectionEvent)

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Nothing is done.

Specified by:
addLayoutComponent in interface java.awt.LayoutManager
See Also:
LayoutManager.addLayoutComponent(java.lang.String, java.awt.Component)

layoutContainer

public void layoutContainer(java.awt.Container parent)
(non-Javadoc).

Specified by:
layoutContainer in interface java.awt.LayoutManager
See Also:
LayoutManager.layoutContainer(java.awt.Container)

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
(non-Javadoc).

Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
See Also:
LayoutManager.minimumLayoutSize(java.awt.Container)

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
(non-Javadoc).

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
See Also:
LayoutManager.preferredLayoutSize(java.awt.Container)

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Nothing is done.

Specified by:
removeLayoutComponent in interface java.awt.LayoutManager
See Also:
LayoutManager.removeLayoutComponent(java.awt.Component)

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com