org.opengts.db
Class StatusCodes.Code

java.lang.Object
  extended by org.opengts.db.StatusCodes.Code
All Implemented Interfaces:
StatusCodeProvider
Enclosing class:
StatusCodes

public static class StatusCodes.Code
extends java.lang.Object
implements StatusCodeProvider


Constructor Summary
StatusCodes.Code(int code, java.lang.String name, I18N.Text text)
           
StatusCodes.Code(int code, java.lang.String name, I18N.Text text, boolean higherPri)
           
StatusCodes.Code(int code, java.lang.String name, java.lang.String desc)
           
StatusCodes.Code(int code, java.lang.String name, java.lang.String desc, boolean higherPri)
           
 
Method Summary
 void checkRTConfigOverrides()
           
 java.lang.String getBackgroundColor()
           
 int getCode()
           
 java.lang.String getDescription(java.util.Locale locale)
           
 java.lang.String getDescriptionRTKey()
           
 java.lang.String getForegroundColor()
           
 java.lang.String getIconName()
           
 java.lang.String getIconSelector()
           
 java.lang.String getName()
           
 int getStatusCode()
           
 java.lang.String getStyleString()
           
 boolean hasStyle()
           
 boolean isHighPriority()
           
 void setDescription(java.lang.String desc)
           
 void setHighPriority(boolean hipri)
           
 void setIconName(java.lang.String name)
           
 java.lang.String toString()
           
 java.lang.String toString(java.util.Locale locale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatusCodes.Code

public StatusCodes.Code(int code,
                        java.lang.String name,
                        I18N.Text text)

StatusCodes.Code

public StatusCodes.Code(int code,
                        java.lang.String name,
                        I18N.Text text,
                        boolean higherPri)

StatusCodes.Code

public StatusCodes.Code(int code,
                        java.lang.String name,
                        java.lang.String desc)

StatusCodes.Code

public StatusCodes.Code(int code,
                        java.lang.String name,
                        java.lang.String desc,
                        boolean higherPri)
Method Detail

checkRTConfigOverrides

public void checkRTConfigOverrides()

getCode

public int getCode()

getStatusCode

public int getStatusCode()
Specified by:
getStatusCode in interface StatusCodeProvider

getName

public java.lang.String getName()

getDescriptionRTKey

public java.lang.String getDescriptionRTKey()

setDescription

public void setDescription(java.lang.String desc)

getDescription

public java.lang.String getDescription(java.util.Locale locale)
Specified by:
getDescription in interface StatusCodeProvider

setHighPriority

public void setHighPriority(boolean hipri)

isHighPriority

public boolean isHighPriority()

setIconName

public void setIconName(java.lang.String name)

getIconName

public java.lang.String getIconName()
Specified by:
getIconName in interface StatusCodeProvider

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(java.util.Locale locale)

getIconSelector

public java.lang.String getIconSelector()
Specified by:
getIconSelector in interface StatusCodeProvider

getForegroundColor

public java.lang.String getForegroundColor()
Specified by:
getForegroundColor in interface StatusCodeProvider

getBackgroundColor

public java.lang.String getBackgroundColor()
Specified by:
getBackgroundColor in interface StatusCodeProvider

hasStyle

public boolean hasStyle()
Specified by:
hasStyle in interface StatusCodeProvider

getStyleString

public java.lang.String getStyleString()
Specified by:
getStyleString in interface StatusCodeProvider