Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## jet.controls
Class JetUnitNumber

    java.lang.Object
      jet.controls.JetProperty
          jet.controls.JetNumber
              jet.controls.JetUnitNumber

    public class JetUnitNumber

extends JetNumber

A class for the Jet number property.

Field Summary

Fields inherited from class jet.controls.JetProperty
`CHART_BACKGROUND_EDITOR, CHART_FILLPATTERN_EDITOR, CHART_FILTER_EDITOR, CHART_FILTER_EDITOR_NO_DATE, CHART_ICON_STYLE, CHART_PATTERN_LIST_EDITOR, CHART_PENSTYLE_EDITOR, CHART_TEXTSTYLE_EDITOR, CHOICE_EDITOR, COLOR_EDITOR, COMBO_EDITOR, COMMAND_EDITOR, CONTROL_SELECT_ITEMS, DATASOURCE_EDITOR, DBCOL_EDITOR, DETAIL_REPORT_EDITOR, EDIT_FORBIDDEN, EDIT_FORBIDDEN_INIT, EDITABLE_ALLTIME, INTERNAL, LINK_EDITOR, MULSEL_EDITOR, PARAMCOL_EDITOR, QUERY_EDITOR, RECORDDB_EDITOR, SECURITY_EDITOR, TEXT_EDITOR`

Constructor Summary
`JetUnitNumber()` Constructor.
`JetUnitNumber(JetObject parent, java.lang.String name)` Creates a JetUnitNumber object.
`JetUnitNumber(JetObject parent, java.lang.String name, int defval)` Creates a JetUnitNumber object.

Method Summary
`static int` | `convertToPixel(java.lang.String value, int unit)` Gets value for showing, when the property is JetUnitNumber then return toString()
`static int` | `convertToUnit(java.lang.String value, int unit)` Gets value for showing, when the property is JetUnitNumber then return toString()
`double` | `doubleValue()` Returns the value of this number as a double.
`float` | `floatValue()` Returns the value of this number as a float.
`int` | `get()` Returns the int value of this number.
`static java.lang.String` | `get(int value, int unit, int fraction)` Gets value for showing, when the property is JetUnitNumber then return toString()
`java.lang.String` | `getInspValue()`
`java.lang.String` | `getInspValue(int unit, int fraction)` get value for showing, when the property is JetUnitNumber then return toString()
`java.lang.Object` | `getObject()` add for Layout group , they use "Integer" to cast getObject() of JetUnitNumber .
`int` | `getUnit()`
`static java.lang.String` | `getUnit(int value, int unit, int fraction)` Gets value for showing, when the property is JetUnitNumber then return toString()
`int` | `intValue()` Returns the value of this number as an int.
`long` | `longValue()` Returns the value of this number as a long.
`void` | `set(double value)` Sets the property value with the specified value;
`void` | `set(float value)` Sets the property value with the specified value;
`void` | `set(int value)` Sets the property value with the specified value;
`void` | `set(long value)` Sets the property value with the specified value;
`void` | `set(java.lang.String theval)` Sets the value to this property via a String.
`void` | `setCanChangeByOthers(boolean bSet)` If this property can not be dynanmic changed, set false.
`void` | `setInt(int i)`
`void` | `setUnitValue(int theval)` Sets the value to this property via a String and change unit to pixel.
`void` | `setUnitValue(java.lang.String theval)` Sets the value to this property via a String and change unit to pixel.
`java.lang.String` | `toCentimeterString()`
`java.lang.String` | `toInchString()`
`java.lang.String` | `toString()` Returns a String object representing this number's value.
`java.lang.String` | `toUnitString()` Return the value as a string, if the property is based on unit, before return will converte the pixels to unit.

Methods inherited from class jet.controls.JetNumber
`addToAtomicAction, getInt, getMatchingSqlType, getPropertyChoice, setPropertyChoice, setValue`

Methods inherited from class jet.controls.JetProperty
`canChangeByBL, canChangeByFmtt, canChangeByOthers, getChangeBy, getChangeByBL, getChangeByBLName, getChangeByFmtt, getChangeByFmttName, getChangeByObject, getChangeByObjectName, getEditFlag, getEditorType, getName, getNormalObject, getParent, getPropType, getUnifiedObject, getValue, isChagneByFmtt, isChangeByBL, isChangeByOther, isNull, isTransient, loadFullChangeBy, propertyChanged, saveFullChangeBy, setCanChangeByBL, setCanChangeByFmtt, setChangeByBL, setChangeByFmtt, setChangeByObject, setEditFlag, setEditorType, setObject, setTransient`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### JetUnitNumber

    public JetUnitNumber()

  Constructor. Create a new JetUnitNumber object.

### JetUnitNumber

    public JetUnitNumber(JetObject parent,
                         java.lang.String name)

  Creates a JetUnitNumber object.

  Parameters:
    `parent` - object that created this object, that is, its comprising object.

    `name` - property's name.

### JetUnitNumber

    public JetUnitNumber(JetObject parent,
                         java.lang.String name,
                         int defval)

  Creates a JetUnitNumber object.

  Parameters:
    `parent` - comprising object.

    `name` - property's name.

    `defval` - default value for this property.

Method Detail

### convertToPixel

    public static int convertToPixel(java.lang.String value,
                                     int unit)

  Gets value for showing, when the property is JetUnitNumber then return toString()

### get

    public static java.lang.String get(int value,
                                       int unit,
                                       int fraction)

  Gets value for showing, when the property is JetUnitNumber then return toString()

### convertToUnit

    public static int convertToUnit(java.lang.String value,
                                    int unit)

  Gets value for showing, when the property is JetUnitNumber then return toString()

### getUnit

    public static java.lang.String getUnit(int value,
                                           int unit,
                                           int fraction)

  Gets value for showing, when the property is JetUnitNumber then return toString()

### set

    public void set(int value)

  Sets the property value with the specified value;

  Overrides:
    `set` in class `JetNumber`
  Parameters:
    `value` - value for this number.

  See Also:
    `set(int)`, `get(int, int, int)`

### set

    public void set(long value)

  Sets the property value with the specified value;

  Overrides:
    `set` in class `JetNumber`
  Parameters:
    `value` - value for this number.

  See Also:
    `set(int)`, `get(int, int, int)`

### set

    public void set(float value)

  Sets the property value with the specified value;

  Overrides:
    `set` in class `JetNumber`
  Parameters:
    `value` - value for this number.

  See Also:
    `set(int)`, `get(int, int, int)`

### set

    public void set(double value)

  Sets the property value with the specified value;

  Overrides:
    `set` in class `JetNumber`
  Parameters:
    `value` - value for this number.

  See Also:
    `set(int)`, `get(int, int, int)`

### set

    public void set(java.lang.String theval)

  Sets the value to this property via a String.

  Overrides:
    `set` in class `JetNumber`
  Parameters:
    `theval` - String value.

### setInt

    public void setInt(int i)

  Overrides:
    `setInt` in class `JetNumber`

### setUnitValue

    public void setUnitValue(java.lang.String theval)

  Sets the value to this property via a String and change unit to pixel.

  Overrides:
    `setUnitValue` in class `JetProperty`

### setUnitValue

    public void setUnitValue(int theval)

  Sets the value to this property via a String and change unit to pixel.

### intValue

    public int intValue()

  Returns the value of this number as an int.

  Overrides:
    `intValue` in class `JetNumber`

### longValue

    public long longValue()

  Returns the value of this number as a long.

  Overrides:
    `longValue` in class `JetNumber`

### floatValue

    public float floatValue()

  Returns the value of this number as a float.

  Overrides:
    `floatValue` in class `JetNumber`

### doubleValue

    public double doubleValue()

  Returns the value of this number as a double.

  Overrides:
    `doubleValue` in class `JetNumber`

### get

    public int get()

  Returns the int value of this number.

  Overrides:
    `get` in class `JetNumber`
  See Also:
    `set(int)`

### getUnit

    public int getUnit()

### getInspValue

    public java.lang.String getInspValue(int unit,
                                         int fraction)

  get value for showing, when the property is JetUnitNumber then return toString()

  Overrides:
    `getInspValue` in class `JetProperty`

### getInspValue

    public java.lang.String getInspValue()

  Overrides:
    `getInspValue` in class `JetProperty`

### toInchString

    public java.lang.String toInchString()

### toCentimeterString

    public java.lang.String toCentimeterString()

### toUnitString

    public java.lang.String toUnitString()

  Description copied from class: `JetProperty`
  Return the value as a string, if the property is based on unit, before return will converte the pixels to unit.

  Overrides:
    `toUnitString` in class `JetProperty`

### toString

    public java.lang.String toString()

  Returns a String object representing this number's value.

  Overrides:
    `toString` in class `JetNumber`

### setCanChangeByOthers

    public void setCanChangeByOthers(boolean bSet)

  If this property can not be dynanmic changed, set false.

  Overrides:
    `setCanChangeByOthers` in class `JetProperty`

### getObject

    public java.lang.Object getObject()

  add for Layout group , they use "Integer" to cast getObject() of JetUnitNumber .

  Overrides:
    `getObject` in class `JetProperty`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD