[Java] Class TableLayout

  • groovy.swing.impl.TableLayout

Represents a HTML style table layout

Inherited fields
Fields inherited from class Fields
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

Properties Summary

Properties
Type Name and description
int cellpadding

Constructor Summary

Constructors
Constructor and description
TableLayout ()

Methods Summary

Methods
Type Params Return Type Name and description
void addCell(TableLayoutCell cell)
Adds a new cell to the current grid
int getCellpadding()
int nextRowIndex()
Creates a new row index for child tr tags
void setCellpadding(int cellpadding)

Inherited Methods Summary

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

Property Detail

int cellpadding

Constructor Detail

public TableLayout()

Method Detail

public void addCell(TableLayoutCell cell)

Adds a new cell to the current grid

Parameters:
cell - the td component

public int getCellpadding()

public int nextRowIndex()

Creates a new row index for child tr tags

Returns:
nextRowIndex the row number

public void setCellpadding(int cellpadding)

© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.5.14/html/gapi/groovy/swing/impl/TableLayout.html