|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.monad.homerun.base.DataObject
com.monad.homerun.model.date.DateModel
public class DateModel
DateModel extends Model to describe instants of time projected onto a calendar, or time sequence. So it is sort of a hybrid between state and numeric models - emphasis depends on the 'subtype'.
| Field Summary | |
|---|---|
static int |
DATE_FULL
|
static int |
DAY_NAME
|
static int |
DAY_OF_MONTH
|
static int |
MONTH_NAME
|
static int |
OPT_ABBREV
|
static int |
OPT_DMDATE
|
static int |
OPT_GRAPHICAL
|
static int |
OPT_MODEL_ICON
|
static int |
OPT_MODEL_NAME
|
static int |
OPT_NUMERIC
|
static int |
OPT_OBJECT_ICON
|
static int |
OPT_OBJECT_NAME
|
static int |
YEAR
|
| Constructor Summary | |
|---|---|
DateModel()
|
|
DateModel(java.lang.String domain,
java.lang.String modelName,
java.lang.String iconName,
int subType)
|
|
DateModel(java.lang.String domain,
java.lang.String modelName,
java.lang.String iconName,
int subType,
java.lang.String[] stateNames)
|
|
| Method Summary | |
|---|---|
Control |
getControl()
Returns a control for the model. |
java.lang.String |
getDomain()
Returns the name of the model's domain. |
static java.util.Map<java.lang.String,java.lang.Integer> |
getFormatOptions(int subType)
|
java.lang.String |
getIconName()
Returns the icon name for the model. |
java.lang.String |
getModelName()
Returns the name of model, unique within a domain. |
int |
getModelSubType()
|
java.lang.String |
getModelType()
Returns the type of the model. |
java.lang.String[] |
getStateNames()
|
boolean |
isNowRef()
|
static boolean |
needModelIcon(int format)
|
static boolean |
needObjectIcon(int format)
|
void |
setIconName(java.lang.String iconName)
|
void |
setModelName(java.lang.String modelName)
Sets the name of the model. |
void |
setModelSubType(int subType)
|
void |
setStateNames(java.lang.String[] stateNames)
|
static java.lang.String |
styledValue(DateModelStatus status,
int format)
|
static java.lang.String |
toOrdinal(int val)
|
| Methods inherited from class com.monad.homerun.base.DataObject |
|---|
getCategory, getModificationTime, getName, getNote, setCategory, setModificationTime, setName, setNote |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DAY_NAME
public static final int DAY_OF_MONTH
public static final int MONTH_NAME
public static final int YEAR
public static final int DATE_FULL
public static final int OPT_GRAPHICAL
public static final int OPT_MODEL_NAME
public static final int OPT_MODEL_ICON
public static final int OPT_OBJECT_NAME
public static final int OPT_OBJECT_ICON
public static final int OPT_ABBREV
public static final int OPT_NUMERIC
public static final int OPT_DMDATE
| Constructor Detail |
|---|
public DateModel()
public DateModel(java.lang.String domain,
java.lang.String modelName,
java.lang.String iconName,
int subType)
public DateModel(java.lang.String domain,
java.lang.String modelName,
java.lang.String iconName,
int subType,
java.lang.String[] stateNames)
| Method Detail |
|---|
public java.lang.String getModelName()
Model
getModelName in interface Modelpublic void setModelName(java.lang.String modelName)
Model
setModelName in interface ModelmodelName - the name of the modelpublic java.lang.String getDomain()
Model
getDomain in interface Modelpublic java.lang.String getModelType()
Model
getModelType in interface Modelpublic java.lang.String getIconName()
Model
getIconName in interface Modelpublic boolean isNowRef()
public Control getControl()
Model
getControl in interface Modelpublic java.lang.String[] getStateNames()
public void setStateNames(java.lang.String[] stateNames)
public int getModelSubType()
public void setModelSubType(int subType)
public void setIconName(java.lang.String iconName)
public static java.util.Map<java.lang.String,java.lang.Integer> getFormatOptions(int subType)
public static boolean needObjectIcon(int format)
public static boolean needModelIcon(int format)
public static java.lang.String styledValue(DateModelStatus status,
int format)
public static java.lang.String toOrdinal(int val)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||