Groovy 2.1.9

groovy.swing.impl
[Java] Class TableLayout

java.lang.Object
  java.awt.Component
      java.awt.Container
          javax.swing.JComponent
              javax.swing.JPanel
                  groovy.swing.impl.TableLayout

public class TableLayout
extends JPanel

Represents a HTML style table layout

Authors:
James Strachan
Version:
\$Revision\$


Field Summary
 
Fields inherited from class JPanel
WHEN_FOCUSED, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_WINDOW, UNDEFINED_CONDITION, TOOL_TIP_TEXT_KEY, TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT
 
Fields inherited from class JComponent
WHEN_FOCUSED, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_WINDOW, UNDEFINED_CONDITION, TOOL_TIP_TEXT_KEY, TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT
 
Constructor Summary
TableLayout()

  tags

Method Summary
void addCell(TableLayoutCell cell)

Adds a new cell to the current grid

int getCellpadding()

int nextRowIndex()

Creates a new row index for child

void setCellpadding(int cellpadding)

 
Methods inherited from class JPanel
getUI, getUIClassID, setUI, updateUI, getAccessibleContext, addAncestorListener, addVetoableChangeListener, computeVisibleRect, createToolTip, getActionForKeyStroke, getActionMap, getAncestorListeners, getAutoscrolls, getBorder, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, grabFocus, isLightweightComponent, isManagingFocus, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, paintImmediately, paintImmediately, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, requestDefaultFocus, resetKeyboardActions, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setInheritsPopupMenu, setInputMap, setInputVerifier, setNextFocusableComponent, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, contains, getLocation, print, getSize, isOpaque, disable, enable, update, getBounds, getRootPane, setOpaque, addNotify, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBaseline, getBaselineResizeBehavior, getFontMetrics, getGraphics, getHeight, getInsets, getInsets, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, getWidth, getX, getY, isDoubleBuffered, isValidateRoot, paint, printAll, removeNotify, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, reshape, revalidate, setBackground, setEnabled, setFocusTraversalKeys, setFont, setForeground, setMaximumSize, setMinimumSize, setPreferredSize, setVisible, add, add, add, add, add, remove, remove, list, list, removeAll, setLayout, layout, doLayout, getLayout, validate, setFocusCycleRoot, addContainerListener, getContainerListeners, insets, isAncestorOf, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, paintComponents, printComponents, removeContainerListener, setComponentZOrder, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponentZOrder, getComponents, getFocusTraversalKeys, getFocusTraversalPolicy, getMousePosition, invalidate, isFocusCycleRoot, isFocusCycleRoot, locate, minimumSize, preferredSize, add, remove, toString, getName, contains, size, getLocation, getParent, setName, list, list, list, getSize, isValid, setSize, setSize, resize, resize, location, enable, getLocale, setLocale, isEnabled, action, move, bounds, getBounds, isLightweight, isDisplayable, isVisible, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, checkImage, checkImage, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isFocusOwner, isFocusTraversable, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, keyDown, keyUp, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, nextFocus, paintAll, postEvent, prepareImage, prepareImage, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusTraversalKeysEnabled, setFocusable, setIgnoreRepaint, setLocation, setLocation, show, show, transferFocus, transferFocusBackward, transferFocusUpCycle, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll
 
Methods inherited from class JComponent
addAncestorListener, getUIClassID, updateUI, addVetoableChangeListener, computeVisibleRect, createToolTip, getActionForKeyStroke, getActionMap, getAncestorListeners, getAutoscrolls, getBorder, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, grabFocus, isLightweightComponent, isManagingFocus, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, paintImmediately, paintImmediately, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, requestDefaultFocus, resetKeyboardActions, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setInheritsPopupMenu, setInputMap, setInputVerifier, setNextFocusableComponent, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, contains, getLocation, print, getSize, isOpaque, disable, enable, update, getBounds, getRootPane, setOpaque, addNotify, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBaseline, getBaselineResizeBehavior, getFontMetrics, getGraphics, getHeight, getInsets, getInsets, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, getWidth, getX, getY, isDoubleBuffered, isValidateRoot, paint, printAll, removeNotify, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, reshape, revalidate, setBackground, setEnabled, setFocusTraversalKeys, setFont, setForeground, setMaximumSize, setMinimumSize, setPreferredSize, setVisible, add, add, add, add, add, remove, remove, list, list, removeAll, setLayout, layout, doLayout, getLayout, validate, setFocusCycleRoot, addContainerListener, getContainerListeners, insets, isAncestorOf, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, paintComponents, printComponents, removeContainerListener, setComponentZOrder, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponentZOrder, getComponents, getFocusTraversalKeys, getFocusTraversalPolicy, getMousePosition, invalidate, isFocusCycleRoot, isFocusCycleRoot, locate, minimumSize, preferredSize, add, remove, toString, getName, contains, size, getLocation, getParent, setName, list, list, list, getSize, isValid, setSize, setSize, resize, resize, location, enable, getLocale, setLocale, isEnabled, action, move, bounds, getBounds, isLightweight, isDisplayable, isVisible, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, checkImage, checkImage, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isFocusOwner, isFocusTraversable, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, keyDown, keyUp, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, nextFocus, paintAll, postEvent, prepareImage, prepareImage, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusTraversalKeysEnabled, setFocusable, setIgnoreRepaint, setLocation, setLocation, show, show, transferFocus, transferFocusBackward, transferFocusUpCycle, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll
 

Constructor Detail

TableLayout

public TableLayout()


 
Method Detail

addCell

public void addCell(TableLayoutCell cell)
Adds a new cell to the current grid
Parameters:
cell - the td component


getCellpadding

public int getCellpadding()


nextRowIndex

public int nextRowIndex()
Creates a new row index for child tags
Returns:
nextRowIndex the row number


setCellpadding

public void setCellpadding(int cellpadding)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.