|
|||||||||
| 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.time.TimeModel
public class TimeModel
TimeModel extends Model to describe instants of time projected onto clocks or other timers.
| Field Summary | |
|---|---|
static java.lang.String |
ASSIGN
|
static int |
OPT_GRAPHICAL
|
static int |
OPT_HOUR24
|
static int |
OPT_MODEL_ICON
|
static int |
OPT_MODEL_NAME
|
static int |
OPT_OBJECT_ICON
|
static int |
OPT_OBJECT_NAME
|
static java.lang.String |
STAMP
|
static int |
TIME_OF_DAY
|
static int |
TIME_STAMP
|
| Constructor Summary | |
|---|---|
TimeModel()
|
|
TimeModel(java.lang.String domain,
java.lang.String modelName,
java.lang.String iconName)
|
|
TimeModel(java.lang.String modelName,
TimeModel model)
|
|
| 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. |
boolean |
isNowRef()
|
static boolean |
needModelIcon(int format)
|
static boolean |
needObjectIcon(int format)
|
void |
setIconName(java.lang.String name)
|
void |
setModelName(java.lang.String modelName)
Sets the name of the model. |
void |
setModelSubType(int subType)
|
static java.lang.String |
styledValue(TimeModelStatus status,
int format)
|
| 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 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_HOUR24
public static final java.lang.String STAMP
public static final java.lang.String ASSIGN
public static final int TIME_OF_DAY
public static final int TIME_STAMP
| Constructor Detail |
|---|
public TimeModel()
public TimeModel(java.lang.String domain,
java.lang.String modelName,
java.lang.String iconName)
public TimeModel(java.lang.String modelName,
TimeModel model)
| 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 void setIconName(java.lang.String name)
public Control getControl()
Model
getControl in interface Modelpublic int getModelSubType()
public void setModelSubType(int subType)
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(TimeModelStatus status,
int format)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||