com.cbse.jeasy
Class JEDataclass

java.lang.Object
  extended by com.cbse.jeasy.JEObject
      extended by com.cbse.jeasy.JEDataclass

public class JEDataclass
extends JEObject

A class implementing elements of a Data Dictionary. The dataclass is is used by a datafield.

Properties
name values comment
id * Id of the object. Let it begin with DC_
datatype NUM
CHAR
CURRENCY

DATE
Elementary datatype
length   Length of the field
name   Name of the field used as a label
title   Short name
tooltip   Text in Tooltip
mask   Used for DecimalFormat. See JDK Documentation of DecimalFormat
min   Minimum value
max   Maximum value
mask   Used for DecimalFormat. See JDK Documentation of DecimalFormat
decimalSeparator   Decimal Separator. If you don't want to use the locale separator.
groupingSeparator   Grouping Separator. If you don't want to use the locale separator.
* = property you have to set; bold = default value

Version:
%I%, %G%
Author:
H.Pfohl

Field Summary
 
Fields inherited from class com.cbse.jeasy.JEObject
DEVELOPPING, INPUT_ERROR_DATE, INPUT_ERROR_LENGTH, INPUT_ERROR_MANDATORY, INPUT_ERROR_PARSE, INPUT_ERROR_RANGE, INPUT_ERROR_TIME, INPUT_ERRORS, NO_INPUT_ERROR, RUNNING
 
Constructor Summary
JEDataclass()
           
JEDataclass(java.lang.String s)
          Reads the properties from a string.
 
Method Summary
 int examine(java.lang.String s)
           
 java.lang.String format(java.lang.String s)
           
 java.lang.String getDatatype()
           
 char getDecimalSeparator()
           
 char getGroupingSeparator()
           
 int getLength()
           
 java.lang.String getMask()
           
 java.lang.String getMnemonic()
           
 java.lang.String getName()
          Gets the label of the JEObject
 java.lang.String getToolTip()
           
 boolean isNumeric()
           
 void setDecimalSeparator(char ds)
           
 void setGroupingSeparator(char ds)
           
 void setLength(int length)
           
 void setMask(java.lang.String newmask)
           
 void setPaste(boolean paste)
           
 
Methods inherited from class com.cbse.jeasy.JEObject
backupEntry, clear, deserializeValue, getApplet, getApplLocale, getCenter, getComponent, getEast, getElementAt, getElementSize, getId, getJCallBack, getJClass, getLabel, getMode, getNorth, getObjLocale, getParentId, getPreview, getProjectDirectory, getProperty, getRegisterText, getSouth, getStarted, getTitle, getType, getWest, getXMLtag, isEditable, isEnabled, isEnterprise, isProfessional, isStandard, isVisible, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEaddTab, removeProperties, removeProperty, restoreEntry, serializeValue, setApplet, setApplLocale, setEditable, setEditable, setEnabled, setEnabled, setFocus, setJCallBack, setMarkable, setMarkable, setMode, setObjLocale, setParentId, setPreview, setProjectDirectory, setProperty, setStarted, setVisible, setVisible, start, wasEntryChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JEDataclass

public JEDataclass(java.lang.String s)
Reads the properties from a string.

Parameters:
s - contains properties and values
See Also:
JE#PropertyString

JEDataclass

public JEDataclass()
Method Detail

getName

public java.lang.String getName()
Description copied from class: JEObject
Gets the label of the JEObject

Overrides:
getName in class JEObject
Returns:
lable

getDatatype

public java.lang.String getDatatype()

getMnemonic

public java.lang.String getMnemonic()

getToolTip

public java.lang.String getToolTip()

getDecimalSeparator

public char getDecimalSeparator()

setDecimalSeparator

public void setDecimalSeparator(char ds)

getGroupingSeparator

public char getGroupingSeparator()

setGroupingSeparator

public void setGroupingSeparator(char ds)

isNumeric

public boolean isNumeric()

setMask

public void setMask(java.lang.String newmask)

getMask

public java.lang.String getMask()

examine

public int examine(java.lang.String s)

format

public java.lang.String format(java.lang.String s)

getLength

public int getLength()
Returns:
Returns the length.

setLength

public void setLength(int length)
Parameters:
length - The length to set.

setPaste

public void setPaste(boolean paste)