Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

com::cosylab::gui::components::r2::JIntegerTextField Class Reference

List of all members.

Public Member Functions

 JIntegerTextField ()
int getIntegerValue ()
boolean isMaximumSet ()
boolean isMinimumSet ()
void setIntegerValue (int newValue)
void setMaximum (int value)
void setMaximumSet (boolean newMaximumSet)
void setMinimum (int value)
void setMinimumSet (boolean newMinimumSet)

Protected Member Functions

Document createDefaultModel ()
void internalSet (int value)

Private Attributes

int integerValue = 0
int minValue = 0
int maxValue = 100
boolean minimumSet = false
boolean maximumSet = false

Detailed Description

Modified JTextField that can only hold integers. Provides convinience methods for direct access to numeric value. Performs neccesary safety checks.

Minimum and maximum values that can be entered into this field can also be set. By default they are 0 and 100 respectively. If user attempts to enter a number outside these bounds, the value will be set to the appropriate limit. Creation date: (26-Oct-01 11:24:17 AM)

Author:
:


Constructor & Destructor Documentation

com::cosylab::gui::components::r2::JIntegerTextField::JIntegerTextField  )  [inline]
 

Creates new JIntegerTextField.


Member Function Documentation

Document com::cosylab::gui::components::r2::JIntegerTextField::createDefaultModel  )  [inline, protected]
 

int com::cosylab::gui::components::r2::JIntegerTextField::getIntegerValue  )  [inline]
 

Returns the integer value represented by this component. Creation date: (29-Oct-01 1:54:44 PM)

Returns:
int

void com::cosylab::gui::components::r2::JIntegerTextField::internalSet int  value  )  [inline, protected]
 

Sets the integer value and fires the property change event. Creation date: (2/4/02 3:00:32 PM)

Parameters:
value int

boolean com::cosylab::gui::components::r2::JIntegerTextField::isMaximumSet  )  [inline]
 

Returns if this component has maximum set.

Creation date: (2/10/2002 18:38:35)

Returns:
boolean

boolean com::cosylab::gui::components::r2::JIntegerTextField::isMinimumSet  )  [inline]
 

Returns if this component has minimum set.

Creation date: (2/10/2002 18:38:35)

Returns:
boolean

void com::cosylab::gui::components::r2::JIntegerTextField::setIntegerValue int  newValue  )  [inline]
 

Sets the integer value of JIntegerTextField and fires the propertyChange event. Creation date: (29-Oct-01 1:54:44 PM)

Parameters:
newValue int

void com::cosylab::gui::components::r2::JIntegerTextField::setMaximum int  value  )  [inline]
 

Sets the maximum value that can be entered into this component. Any value larger than this will be set to this maximum. Creation date: (2/4/02 2:44:24 PM)

Parameters:
value int

void com::cosylab::gui::components::r2::JIntegerTextField::setMaximumSet boolean  newMaximumSet  )  [inline]
 

Sets whether the maximum value should be checked.

Creation date: (2/10/2002 18:38:35)

Parameters:
newMaximumSet boolean

void com::cosylab::gui::components::r2::JIntegerTextField::setMinimum int  value  )  [inline]
 

Sets the minimal value that can be displayed by this component. Any value lower than this value will be set to this minimum. Creation date: (2/4/02 2:43:53 PM)

Parameters:
value int

void com::cosylab::gui::components::r2::JIntegerTextField::setMinimumSet boolean  newMinimumSet  )  [inline]
 

Sets whether currently set minimum should be checked.

Creation date: (2/10/2002 18:38:35)

Parameters:
newMinimumSet boolean


Member Data Documentation

int com::cosylab::gui::components::r2::JIntegerTextField::integerValue = 0 [private]
 

boolean com::cosylab::gui::components::r2::JIntegerTextField::maximumSet = false [private]
 

int com::cosylab::gui::components::r2::JIntegerTextField::maxValue = 100 [private]
 

boolean com::cosylab::gui::components::r2::JIntegerTextField::minimumSet = false [private]
 

int com::cosylab::gui::components::r2::JIntegerTextField::minValue = 0 [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:12:28 2009 for ACS Java API by doxygen 1.3.8