org.openmobileis.modules.crm.data.common
Class DefaultLabel
java.lang.Object
org.openmobileis.modules.crm.data.common.DefaultLabel
- All Implemented Interfaces:
- Label, Orderable, java.io.Serializable
- Direct Known Subclasses:
- FODBLabel
- public class DefaultLabel
- extends java.lang.Object
- implements Orderable, Label
Title: OpenMobileIS project source
Description: USe to manage the pair identifier/label used by article, visite type and contact type.
- Since:
- JDK 1.1
- Version:
- 1.0.
- Author:
- Philippe Delrieu
- See Also:
- Serialized Form
Constructor Summary |
protected |
DefaultLabel()
|
|
DefaultLabel(java.lang.String id,
java.lang.String category,
java.lang.String label)
|
|
DefaultLabel(java.lang.String id,
java.lang.String category,
java.lang.String label,
java.lang.String language)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
DefaultLabel
protected DefaultLabel()
DefaultLabel
public DefaultLabel(java.lang.String id,
java.lang.String category,
java.lang.String label)
DefaultLabel
public DefaultLabel(java.lang.String id,
java.lang.String category,
java.lang.String label,
java.lang.String language)
compareTo
public int compareTo(java.lang.Object parm1,
java.lang.Object parm2)
- Description copied from interface:
Orderable
- Compare two objects and order them.
- Specified by:
compareTo
in interface Orderable
- Parameters:
parm1
- first objectparm2
- second object
- Returns:
- < 0 if p1 < p2, 0 if equal, > 0 if p1 > p2
getLabel
public java.lang.String getLabel()
- Specified by:
getLabel
in interface Label
getLabelLanguage
public java.lang.String getLabelLanguage()
- Specified by:
getLabelLanguage
in interface Label
getCategory
public java.lang.String getCategory()
- Specified by:
getCategory
in interface Label
getLabelId
public java.lang.String getLabelId()
- Specified by:
getLabelId
in interface Label
setLabelSortOrder
public void setLabelSortOrder(int o)
- Use to sort label in a specific order. Sorting id made :
sort with labelOrder if equals use label.
- Specified by:
setLabelSortOrder
in interface Label
- Parameters:
o
- label sort order
getLabelSortOrder
public int getLabelSortOrder()
- Specified by:
getLabelSortOrder
in interface Label
toString
public java.lang.String toString()
equals
public boolean equals(java.lang.Object obj)
hashCode
public int hashCode()
compareTo
public int compareTo(java.lang.Object parm2)
Copyright 2005 e-Care. All Rights Reserved.