|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<java.lang.Object>
thinwire.util.ArrayGrid.Column
thinwire.ui.GridBox.Column
public static final class GridBox.Column
| Nested Class Summary | |
|---|---|
static interface |
GridBox.Column.Format
|
static class |
GridBox.Column.SortOrder
|
| Field Summary | |
|---|---|
static java.lang.String |
PROPERTY_COLUMN_ALIGN_X
|
static java.lang.String |
PROPERTY_COLUMN_DISPLAY_FORMAT
|
static java.lang.String |
PROPERTY_COLUMN_NAME
|
static java.lang.String |
PROPERTY_COLUMN_SORT_COMPARATOR
|
static java.lang.String |
PROPERTY_COLUMN_SORT_ORDER
|
static java.lang.String |
PROPERTY_COLUMN_VISIBLE
|
static java.lang.String |
PROPERTY_COLUMN_WIDTH
|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
GridBox.Column()
Construct a Column. |
|
GridBox.Column(java.util.Collection<? extends java.lang.Object> c)
Construct a Column, specifying a Collection whose values will serve as the Column's values. |
|
GridBox.Column(java.lang.Object... a)
Construct a Column that contains the values of the specified Array. |
|
GridBox.Column(java.lang.String name,
boolean visible,
java.util.Collection<? extends java.lang.Object> c)
Construct a Column that contains the values of the specified Array. |
|
GridBox.Column(java.lang.String name,
boolean visible,
int width,
AlignTextComponent.AlignX alignX,
java.util.Collection<? extends java.lang.Object> c)
Construct a Column that contains the values of the specified Array. |
|
GridBox.Column(java.lang.String name,
boolean visible,
int width,
AlignTextComponent.AlignX alignX,
java.lang.Object... a)
Construct a Column that contains the values of the specified Array. |
|
GridBox.Column(java.lang.String name,
boolean visible,
int width,
java.util.Collection<? extends java.lang.Object> c)
Construct a Column that contains the values of the specified Array. |
|
GridBox.Column(java.lang.String name,
boolean visible,
int width,
java.lang.Object... a)
Construct a Column that contains the values of the specified Array. |
|
GridBox.Column(java.lang.String name,
boolean visible,
java.lang.Object... a)
Construct a Column that contains the values of the specified Array. |
|
| Method Summary | |
|---|---|
AlignTextComponent.AlignX |
getAlignX()
|
GridBox.Column.Format |
getDisplayFormat()
|
GridBox.Header |
getHeader()
Gets the Header object instance for this Column. |
java.util.Comparator |
getSortComparator()
Get this Column's Comparator. |
GridBox.Column.SortOrder |
getSortOrder()
|
int |
getWidth()
|
boolean |
isVisible()
Gets whether this column is visible. |
void |
setAlignX(AlignTextComponent.AlignX alignX)
Sets the text justification (left, right, or center) |
void |
setDisplayFormat(GridBox.Column.Format displayFormat)
Set the display format for this Column. |
void |
setName(java.lang.String name)
Sets the name of the column. |
void |
setSortComparator(java.util.Comparator sortComparator)
Set the Comparator for this Column. |
void |
setSortOrder(GridBox.Column.SortOrder sortOrder)
|
void |
setVisible(boolean visible)
Sets whether this column is visible. |
void |
setWidth(int width)
Sets the width of the column. |
java.lang.String |
toString()
|
| Methods inherited from class thinwire.util.ArrayGrid.Column |
|---|
add, get, getIndex, getName, getParent, remove, set, size |
| Methods inherited from class java.util.AbstractList |
|---|
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, subList, toArray, toArray |
| Field Detail |
|---|
public static final java.lang.String PROPERTY_COLUMN_NAME
public static final java.lang.String PROPERTY_COLUMN_ALIGN_X
public static final java.lang.String PROPERTY_COLUMN_WIDTH
public static final java.lang.String PROPERTY_COLUMN_VISIBLE
public static final java.lang.String PROPERTY_COLUMN_DISPLAY_FORMAT
public static final java.lang.String PROPERTY_COLUMN_SORT_COMPARATOR
public static final java.lang.String PROPERTY_COLUMN_SORT_ORDER
| Constructor Detail |
|---|
public GridBox.Column()
public GridBox.Column(java.util.Collection<? extends java.lang.Object> c)
c - the new Column's values
public GridBox.Column(java.lang.String name,
boolean visible,
java.util.Collection<? extends java.lang.Object> c)
a - the new Column's values
public GridBox.Column(java.lang.String name,
boolean visible,
int width,
java.util.Collection<? extends java.lang.Object> c)
a - the new Column's values
public GridBox.Column(java.lang.String name,
boolean visible,
int width,
AlignTextComponent.AlignX alignX,
java.util.Collection<? extends java.lang.Object> c)
a - the new Column's valuespublic GridBox.Column(java.lang.Object... a)
a - the new Column's values
public GridBox.Column(java.lang.String name,
boolean visible,
java.lang.Object... a)
a - the new Column's values
public GridBox.Column(java.lang.String name,
boolean visible,
int width,
java.lang.Object... a)
a - the new Column's values
public GridBox.Column(java.lang.String name,
boolean visible,
int width,
AlignTextComponent.AlignX alignX,
java.lang.Object... a)
a - the new Column's values| Method Detail |
|---|
public GridBox.Header getHeader()
public boolean isVisible()
public void setVisible(boolean visible)
visible - (Default = false)public void setName(java.lang.String name)
setName in interface Grid.ColumnsetName in class ArrayGrid.Columnname - the name of this ColumnGrid.Column.setName(java.lang.String)public int getWidth()
public void setWidth(int width)
width - the width of the column
java.lang.IllegalArgumentException - if width < -1 or > 65534public AlignTextComponent.AlignX getAlignX()
public void setAlignX(AlignTextComponent.AlignX alignX)
alignX - (Default = AlignX.LEFT)public GridBox.Column.Format getDisplayFormat()
public void setDisplayFormat(GridBox.Column.Format displayFormat)
displayFormat - the display format to set for the column.public java.util.Comparator getSortComparator()
public void setSortComparator(java.util.Comparator sortComparator)
sortComparator - this Column's Comparator.Comparatorpublic GridBox.Column.SortOrder getSortOrder()
public void setSortOrder(GridBox.Column.SortOrder sortOrder)
public java.lang.String toString()
toString in class java.util.AbstractCollection<java.lang.Object>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||