org.beanfabrics.swing.table
Class BnColumnBuilder
java.lang.Object
org.beanfabrics.swing.table.BnColumnBuilder
public class BnColumnBuilder
- extends java.lang.Object
DSL-sytle Builder for BnColumn objects.
Use it like this:
BnColumn[] columns = new BnColumnBuilder()
.addColumn().withPath("this.name").withName("Name")
.addColumn().withPath("this.phone").withName("Phone").withWidth(100).withWidthFixed(true).build();
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALIGNMENT_LEFT
public static final int ALIGNMENT_LEFT
- See Also:
- Constant Field Values
ALIGNMENT_RIGHT
public static final int ALIGNMENT_RIGHT
- See Also:
- Constant Field Values
ALIGNMENT_TRAILING
public static final int ALIGNMENT_TRAILING
- See Also:
- Constant Field Values
ALIGNMENT_LEADING
public static final int ALIGNMENT_LEADING
- See Also:
- Constant Field Values
ALIGNMENT_CENTER
public static final int ALIGNMENT_CENTER
- See Also:
- Constant Field Values
BnColumnBuilder
public BnColumnBuilder()
main
public static void main(java.lang.String[] args)
addColumn
public BnColumnBuilder addColumn()
withPath
public BnColumnBuilder withPath(java.lang.String pathStr)
withName
public BnColumnBuilder withName(java.lang.String name)
withWidth
public BnColumnBuilder withWidth(int width)
withWidthFixed
public BnColumnBuilder withWidthFixed(boolean fixed)
withOperationPath
public BnColumnBuilder withOperationPath(java.lang.String pathStr)
withAlignment
public BnColumnBuilder withAlignment(java.lang.Integer alignment)
build
public BnColumn[] build()