ca.odell.glazedlists.swing
Interface JEventListPanel.Format<E>

All Known Implementing Classes:
JEventListPanel.AbstractFormat
Enclosing class:
JEventListPanel<E>

public static interface JEventListPanel.Format<E>

Specify how the JComponents of an Object are layed out in a row.


Method Summary
 JComponent getComponent(E element, int component)
          Get the component from the specified list element.
 int getComponentsPerElement()
          Get the number of components for each row element.
 com.jgoodies.forms.layout.CellConstraints getConstraints(int component)
          Get the constraints to lay out the specified component.
 com.jgoodies.forms.layout.ColumnSpec[] getElementColumns()
          Get the ColumnSpecs required for one element in the list.
 com.jgoodies.forms.layout.RowSpec[] getElementRows()
          Get the RowSpecs required for one element in the list.
 com.jgoodies.forms.layout.ColumnSpec getGapColumn()
          Get the ColumnSpecs to separate two elements.
 com.jgoodies.forms.layout.RowSpec getGapRow()
          Get the RowSpec to separate two elements.
 

Method Detail

getComponentsPerElement

int getComponentsPerElement()
Get the number of components for each row element.


getComponent

JComponent getComponent(E element,
                        int component)
Get the component from the specified list element.


getConstraints

com.jgoodies.forms.layout.CellConstraints getConstraints(int component)
Get the constraints to lay out the specified component.

Parameters:
component - the component to fetch constraints for.
Returns:
constraints that specify how to lay out the component. The constraints' Y value must be between (baseRow + 1) and (baseRow + getElementRows().length + 1) inclusive. The constraints' X value must be between 1 and (getElementColumns().length + 1) inclusive.

getElementRows

com.jgoodies.forms.layout.RowSpec[] getElementRows()
Get the RowSpecs required for one element in the list.


getElementColumns

com.jgoodies.forms.layout.ColumnSpec[] getElementColumns()
Get the ColumnSpecs required for one element in the list.


getGapRow

com.jgoodies.forms.layout.RowSpec getGapRow()
Get the RowSpec to separate two elements.

Returns:
the RowSpec for the spacer row, or null for no gap.

getGapColumn

com.jgoodies.forms.layout.ColumnSpec getGapColumn()
Get the ColumnSpecs to separate two elements.

Returns:
the ColumnSpec for the spacer column, or null for no gap.


Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by hbrands at 2017-03-13 22:58