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

List of all members.

Classes

class  IntegerDocument

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.

References integerValue.


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

References integerValue.

Referenced by com::cosylab::logging::settings::FilterIntegerPanel::getFilter().

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

References integerValue.

Referenced by com::cosylab::gui::components::r2::JIntegerTextField::IntegerDocument::insertString(), and com::cosylab::gui::components::r2::JIntegerTextField::IntegerDocument::remove().

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

References maximumSet.

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

References minimumSet.

void com::cosylab::gui::components::r2::JIntegerTextField::setIntegerValue ( int  newValue  )  [inline]
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

References maximumSet, and maxValue.

Referenced by com::cosylab::gui::components::r2::TimeChooser::createComponents(), and com::cosylab::logging::settings::FilterIntegerPanel::setBounds().

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

References maximumSet.

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

References minimumSet, and minValue.

Referenced by com::cosylab::gui::components::r2::TimeChooser::createComponents(), and com::cosylab::logging::settings::FilterIntegerPanel::setBounds().

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

References minimumSet.


Member Data Documentation


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2