|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.win.swing.text.LyJFormat.Interval
public class LyJFormat.Interval
This class implements a representation of an interval with min and max values.
An Interval can store a String representing the value that is edited in the textField. An
Interval knows where it begins and ends in its corresponding textField.
Constructor Summary | |
---|---|
LyJFormat.Interval(int minimum,
int maximum)
Constructor. |
Method Summary | |
---|---|
void |
clear()
Resets the content. |
java.lang.String |
getContent()
Gets the interval content. |
java.lang.String |
getCurrentPossibleValue()
Gets the current possible value between the min and the max. |
java.lang.String |
getEditedDisplayableString()
Gets the value to display in non-edition mode. |
java.lang.String |
getEditingDisplayableString()
Gets the value to display during edition processus. |
int |
getEndOffset()
Gets the end offset. |
int |
getIntValue()
Gets the value of this interval as an int. |
int |
getMaxCharCount()
Gets the maximum number of characters needed to display the value. |
java.lang.String |
getMaxCompletedString()
Gets a copy of the content where the EMPTY_CHAR is replaced by the maximum possible value ('9'). |
int |
getMaximum()
Gets the maximum of the interval. |
java.lang.String |
getMinCompletedString()
Gets a copy of the content where the EMPTY_CHAR is replaced by the minimum possible value ('0'). |
int |
getMinimum()
Gets the minimum of the interval. |
int |
getStartOffset()
Gets the start offset. |
boolean |
isEmpty()
Indicates if the interval is empty or not. |
void |
replaceChar(int offset,
char c)
Replaces the char found at position offset in this interval by the given character. |
void |
setIntValue(int value)
Sets the int value of this interval. |
void |
setOffset(int offset)
Sets the start and end offsets. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LyJFormat.Interval(int minimum, int maximum)
minimum
- the minimum of the intervalmaximum
- the maximum of the intervalMethod Detail |
---|
public int getMinimum()
public int getMaximum()
public int getMaxCharCount()
public void setOffset(int offset)
end offset = start offset + max number of character - 1.
offset
- the start offsetpublic int getStartOffset()
public int getEndOffset()
public void replaceChar(int offset, char c)
offset
- the offsetc
- the replacment characterpublic boolean isEmpty()
public java.lang.String getContent()
public java.lang.String getEditingDisplayableString()
public java.lang.String getEditedDisplayableString()
public java.lang.String getMaxCompletedString()
public java.lang.String getMinCompletedString()
public int getIntValue()
setIntValue(int)
public void setIntValue(int value)
value
- the value to setgetIntValue()
public java.lang.String getCurrentPossibleValue()
public void clear()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |