|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sssw.rt.tview.AgoColumnBase | +--com.sssw.rt.tview.AgoColumnIntegerSpinnerField
AgoColumnIntegerSpinnerField is a bound column that represents an integer whose value the user can increment or decrement. The value can optionally be limited to a certain range.
Constructor Summary | |
AgoColumnIntegerSpinnerField(int width,
boolean visible,
boolean transparent,
Color backgroundColor,
int borderType)
|
Method Summary | |
boolean |
getEditWhenSelected()
Returns the state of the edit when selected property. |
int |
getIncrement()
Returns an integer value that specifies the amount by which the spinner is incremented (or decremented) when the user presses one of the control's arrow keys. |
int |
getMaximumValue()
Returns an integer that represents the highest value to which the control can be set. |
int |
getMinimumValue()
Returns an integer that represents the lowest value to which the control can be set. |
void |
initColumnSpinnerProperty(String propertyName,
AgoFontIdentifier fontid,
Color textColor,
int alignment)
Initializes a number of parameters for the control |
void |
setEditWhenSelected(boolean editWhenSelected)
Sets the state of the edit when selected property. |
void |
setIncrement(int increment)
Assigns an integer value by which the spinner is incremented (or decremented) each time the user presses one of the control's arrow keys. |
void |
setMaximumValue(int maximumValue)
Assigns the highest integer value to which the control can be set. |
void |
setMinimumValue(int minimumValue)
Assigns the lowest integer value to which the control can be set. |
Methods inherited from class com.sssw.rt.tview.AgoColumnBase |
getAlignment,
getBackgroundColor,
getBorderType,
getDisplayWidth,
getHidden,
getResizable,
getSelectable,
getTransparent,
getVisible,
getWidth,
isWidthFixed,
setAlignment,
setBackgroundColor,
setBorderType,
setFixedWidth,
setHidden,
setProportionalWidth,
setProportionalWidth,
setResizable,
setSelectable,
setTransparent,
setVisible,
setWidth |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public AgoColumnIntegerSpinnerField(int width, boolean visible, boolean transparent, Color backgroundColor, int borderType)
width
- the column width, in pixelsvisible
- the "visible" property for the column. Set to false to hide the column. If you hide a
column, you might also want to hide any headers associated with the column.transparent
- the "transparent" property for the column. Set to true to make it transparent.backgroundColor
- the java.awt.Color object that specifies the column's background color.borderType
- the symbolic constant that specifies the desired border; valid types are defined in AgoColumnBase.AgoColumnIntegerSpinnerField salary; salary = new AgoColumnIntegerSpinnerField(100, true, false, Color.white, AgoColumnBase.BORDER_3D);
AgoColumnBase
Method Detail |
public void initColumnSpinnerProperty(String propertyName, AgoFontIdentifier fontid, Color textColor, int alignment)
propertyName
- the name of the property from which to initialize this columnfontid
- the SilverStream font object (AgoFontIdentifier) for the control's texttextColor
- the java.awt.Color object for the control's textalignment
- the alignment constant for the contents of the column. See AgoColumnBase for more
informationAgoColumnIntegerSpinnerField salary; salary = new AgoColumnIntegerSpinnerField(100,true,false,Color.white,0); salary.initColumnSpinnerProperty("salary", new AgoFontIdentifier("Dialog", 0, 12), Color.black, AgoColumnBase.ALIGN_LEFT),
public void setIncrement(int increment)
increment
- the amount by which the control is incremented (or decremented) when the user presses one of
the control's arrow keyssalary.setIncrement(3);
AgoColumnIntegerSpinnerField.getIncrement()
public int getIncrement()
int increment; increment = salary.getIncrement();
AgoColumnIntegerSpinnerField.setIncrement(int increment)
public final int getMinimumValue()
int MinValue; MinValue = salary.getMinimumValue();
AgoColumnIntegerSpinnerField.setMinimumValue(int minimumValue)
public final void setMinimumValue(int minimumValue)
minimumValue
- specifies the lowest value that the control can be set tosalary.setMinimumValue(5);
public final int getMaximumValue()
int MaxValue; MaxValue = salary.getMaxValue();
AgoColumnIntegerSpinnerField.setMaximumValue(int maximumValue)
public final void setMaximumValue(int maximumValue)
maximumValue
- specifies the control's maximum value
salary.setMaxValue(5);
public boolean getEditWhenSelected()
The default is true.
If you are displaying a large data set, setting this to false can slow down the performance of this control.
boolean editOnSel = salary.getEditWhenSelected();
AgoColumnIntegerSpinnerField.setEditWhenSelected(boolean editWhenSelected)
public void setEditWhenSelected(boolean editWhenSelected)
editWhenSelected
- if set to true, cells in the column are always displayed as text cells
except when selected by the user. Otherwise, cells are always displayed as spinner field cells.The default is true.
If you are displaying more than a few rows of data, setting this to false can slow down the performance of this control.
salary.setEditWhenSelected(true);
AgoColumnIntegerSpinnerField.getEditWhenSelected()
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |