public class Alarm extends Object implements Comparable, Internationalization
| Modifier and Type | Field and Description |
|---|---|
protected String |
code |
protected DateFormat |
df |
protected Date |
hour |
static int |
INFORMATION |
protected Object |
key |
protected Locale |
locale |
protected boolean |
recognized |
protected ResourceBundle |
resources |
protected String |
text |
protected int |
type |
static int |
WARNING |
DEBUG_LANGUAGE| Constructor and Description |
|---|
Alarm(Object key,
String code,
int type) |
Alarm(Object key,
String code,
int type,
boolean recognized) |
Alarm(Object key,
String code,
int type,
Date hour) |
Alarm(Object key,
String code,
int type,
Date hour,
boolean recognized) |
Alarm(Object key,
String text,
int type,
Date hour,
String code) |
Alarm(Object key,
String text,
int type,
Date hour,
String code,
boolean recognized) |
Alarm(Object key,
String text,
int type,
String code) |
Alarm(Object key,
String text,
int tipo,
String code,
boolean recognized) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o) |
String |
getCode() |
Date |
getHour() |
String |
getHourAsString()
Gets the alarm hour with the format specified by the object locale
|
Object |
getKey() |
String |
getText() |
Vector |
getTextsToTranslate()
Returns all the texts in the element suitable for being translated.
|
int |
getType() |
boolean |
isRecognized() |
boolean |
isWarning() |
void |
setComponentLocale(Locale l) |
void |
setRecognize(boolean rec) |
void |
setResourceBundle(ResourceBundle res)
Sets the language resource bundle.
|
String |
toString()
Creates a string with format 'code : text'.
|
public static int INFORMATION
public static int WARNING
protected int type
protected String text
protected String code
protected Object key
protected Date hour
protected boolean recognized
protected Locale locale
protected DateFormat df
protected ResourceBundle resources
public Object getKey()
public int getType()
public Date getHour()
public String getHourAsString()
public String getText()
public String getCode()
public String toString()
public boolean isRecognized()
public boolean isWarning()
public void setRecognize(boolean rec)
public int compareTo(Object o)
compareTo in interface Comparablepublic Vector getTextsToTranslate()
InternationalizationgetTextsToTranslate in interface Internationalizationpublic void setResourceBundle(ResourceBundle res)
InternationalizationsetResourceBundle in interface Internationalizationres - the new language bundle.public void setComponentLocale(Locale l)
setComponentLocale in interface InternationalizationCopyright © 2016 Imatia Innovation S.L.. All rights reserved.