|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.adempiere.webui.component.WTableColumn
public class WTableColumn
| Field Summary | |
|---|---|
protected Object |
headerValue
The header value of the column. |
protected boolean |
isResizable
If true, the user is allowed to resize the column; the default is true. |
protected int |
maxWidth
The maximum width of the column. |
protected int |
minWidth
The minimum width of the column. |
protected int |
width
The width of the column. |
| Constructor Summary | |
|---|---|
WTableColumn()
Cover method, using a default width of 75 |
|
WTableColumn(int width)
|
|
| Method Summary | |
|---|---|
Object |
getHeaderValue()
Returns the Object used as the value for the header
renderer. |
int |
getMaxWidth()
Returns the maximum width for the WTableColumn. |
int |
getMinWidth()
Returns the minimum width for the WTableColumn. |
int |
getPreferredWidth()
Returns the preferred width of the WTableColumn. |
boolean |
getResizable()
Returns true if the user is allowed to resize the WTableColumn's
width, false otherwise. |
int |
getWidth()
Returns the width of the TableColumn. |
void |
setHeaderValue(Object headerValue)
Sets the Object whose string representation will be
used as the value for the headerRenderer. |
void |
setMaxWidth(int maxWidth)
Sets the WTableColumn's maximum width to
maxWidth; also adjusts the width and preferred
width if they are greater than this value. |
void |
setMinWidth(int minWidth)
Sets the WTableColumn's minimum width to
minWidth; also adjusts the current width
and preferred width if they are less than this value. |
void |
setPreferredWidth(int preferredWidth)
Sets this column's preferred width to preferredWidth. |
void |
setResizable(boolean isResizable)
Sets whether this column can be resized. |
void |
setWidth(int width)
This method should not be used to set the widths of columns in the WListbox, use setPreferredWidth instead. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int width
protected int minWidth
protected int maxWidth
protected boolean isResizable
protected Object headerValue
| Constructor Detail |
|---|
public WTableColumn()
WTableColumn(int)public WTableColumn(int width)
| Method Detail |
|---|
public void setHeaderValue(Object headerValue)
Object whose string representation will be
used as the value for the headerRenderer. When the
WTableColumn is created, the default headerValue
is null.
headerValue - the new headerValuegetHeaderValue()public Object getHeaderValue()
Object used as the value for the header
renderer.
headerValue propertysetHeaderValue(java.lang.Object)public void setWidth(int width)
WListbox, use setPreferredWidth instead.
This method sets this column's width to width.
If width exceeds the minimum or maximum width,
it is adjusted to the appropriate limiting value.
width - the new widthgetWidth(),
setMinWidth(int),
setMaxWidth(int),
setPreferredWidth(int)public int getWidth()
TableColumn. The default width is
75.
width propertysetWidth(int)public void setPreferredWidth(int preferredWidth)
preferredWidth.
If preferredWidth exceeds the minimum or maximum width,
it is adjusted to the appropriate limiting value.
preferredWidth - the new preferred widthgetPreferredWidth()public int getPreferredWidth()
WTableColumn.
The default preferred width is 75.
preferredWidth propertysetPreferredWidth(int)public void setMinWidth(int minWidth)
WTableColumn's minimum width to
minWidth; also adjusts the current width
and preferred width if they are less than this value.
minWidth - the new minimum widthgetMinWidth(),
setPreferredWidth(int),
setMaxWidth(int)public int getMinWidth()
WTableColumn. The
WTableColumn's width can't be made less than this either
by the user or programmatically. The default minWidth is 15.
minWidth propertysetMinWidth(int)public void setMaxWidth(int maxWidth)
WTableColumn's maximum width to
maxWidth; also adjusts the width and preferred
width if they are greater than this value.
maxWidth - the new maximum widthgetMaxWidth(),
setPreferredWidth(int),
setMinWidth(int)public int getMaxWidth()
WTableColumn. The
WTableColumn's width can't be made larger than this
either by the user or programmatically. The default maxWidth
is Integer.MAX_VALUE.
maxWidth propertysetMaxWidth(int)public void setResizable(boolean isResizable)
isResizable - if true, resizing is allowed; otherwise falsegetResizable()public boolean getResizable()
WTableColumn's
width, false otherwise. You can change the width programmatically
regardless of this setting. The default is true.
isResizable propertysetResizable(boolean)
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||