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 |
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)
| com::cosylab::gui::components::r2::JIntegerTextField::JIntegerTextField | ( | ) | [inline] |
Creates new JIntegerTextField.
References integerValue.
| 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)
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)
| 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)
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)
References minimumSet.
| 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)
| newValue | int |
References integerValue.
Referenced by com::cosylab::gui::components::r2::JIntegerTextField::IntegerDocument::insertString(), com::cosylab::logging::settings::FilterIntegerPanel::setFilter(), com::cosylab::gui::components::r2::TimeChooser::setHour(), com::cosylab::logging::settings::FilterIntegerPanel::setMaximum(), com::cosylab::logging::settings::FilterIntegerPanel::setMinimum(), com::cosylab::gui::components::r2::TimeChooser::setMinute(), com::cosylab::gui::components::r2::TimeChooser::setSeconds(), and com::cosylab::gui::components::r2::TimeChooser::updateDisplay().
| 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)
| 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)
| 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)
| 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)
| newMinimumSet | boolean |
References minimumSet.
int com::cosylab::gui::components::r2::JIntegerTextField::integerValue = 0 [private] |
Referenced by getIntegerValue(), internalSet(), JIntegerTextField(), and setIntegerValue().
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] |
1.6.2