public class UserIconSet
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
COLUMN_ICONSETS_DEFAULT_FRIENDLY |
protected static java.lang.String |
COLUMN_ICONSETS_DEFAULT_HOSTILE |
protected static java.lang.String |
COLUMN_ICONSETS_DEFAULT_NEUTRAL |
protected static java.lang.String |
COLUMN_ICONSETS_DEFAULT_UNKNOWN |
protected static java.lang.String |
COLUMN_ICONSETS_ID |
protected static java.lang.String |
COLUMN_ICONSETS_NAME |
protected static java.lang.String |
COLUMN_ICONSETS_SELECTED_GROUP |
protected static java.lang.String |
COLUMN_ICONSETS_UID |
Constructor and Description |
---|
UserIconSet()
Default Constructor
|
UserIconSet(int id,
java.lang.String name,
java.lang.String uid,
java.lang.String defaultFriendly,
java.lang.String defaultHostile,
java.lang.String defaultNeutral,
java.lang.String defaultUnknown,
java.lang.String selectedGroup) |
UserIconSet(java.lang.String name,
java.lang.String uid) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object rhs) |
java.lang.String |
getDefaultFriendly() |
java.lang.String |
getDefaultHostile() |
java.lang.String |
getDefaultNeutral() |
java.lang.String |
getDefaultUnknown() |
java.lang.Object |
getFromMetaDataLabel(java.lang.String label) |
java.util.List<java.lang.String> |
getGroups() |
UserIcon |
getIcon(java.lang.String filename)
Get icon with the specified filename
|
UserIcon |
getIconBestMatch(java.lang.String type)
Get icon with best match for CoT/2525C type
|
java.util.List<UserIcon> |
getIcons() |
java.util.List<UserIcon> |
getIcons(java.lang.String group) |
int |
getId() |
java.lang.String |
getName() |
java.lang.String |
getSelectedGroup() |
java.lang.String |
getUid() |
int |
getVersion() |
int |
hashCode() |
boolean |
hasIcon(java.lang.String filename) |
boolean |
hasIcons() |
boolean |
hasSelectedGroup() |
boolean |
isSkipResize() |
boolean |
isValid() |
static UserIconSet |
loadUserIconSet(java.lang.String s)
Get the list of configured devices from file
|
java.lang.String |
save() |
void |
setIcons(java.util.List<UserIcon> icons) |
void |
setId(int id) |
void |
setName(java.lang.String name) |
void |
setSelectedGroup(java.lang.String selectedGroup) |
void |
setUid(java.lang.String uid) |
void |
setVersion(int version) |
java.lang.String |
toString() |
protected static final java.lang.String COLUMN_ICONSETS_ID
protected static final java.lang.String COLUMN_ICONSETS_NAME
protected static final java.lang.String COLUMN_ICONSETS_UID
protected static final java.lang.String COLUMN_ICONSETS_DEFAULT_FRIENDLY
protected static final java.lang.String COLUMN_ICONSETS_DEFAULT_HOSTILE
protected static final java.lang.String COLUMN_ICONSETS_DEFAULT_NEUTRAL
protected static final java.lang.String COLUMN_ICONSETS_DEFAULT_UNKNOWN
protected static final java.lang.String COLUMN_ICONSETS_SELECTED_GROUP
public UserIconSet()
public UserIconSet(java.lang.String name, java.lang.String uid)
public UserIconSet(int id, java.lang.String name, java.lang.String uid, java.lang.String defaultFriendly, java.lang.String defaultHostile, java.lang.String defaultNeutral, java.lang.String defaultUnknown, java.lang.String selectedGroup)
public java.lang.Object getFromMetaDataLabel(java.lang.String label)
public int getId()
public void setId(int id)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getUid()
public void setUid(java.lang.String uid)
public int getVersion()
public void setVersion(int version)
public java.util.List<UserIcon> getIcons()
public void setIcons(java.util.List<UserIcon> icons)
public boolean hasIcons()
public java.lang.String getDefaultFriendly()
public java.lang.String getDefaultHostile()
public java.lang.String getDefaultNeutral()
public java.lang.String getDefaultUnknown()
public boolean isSkipResize()
public boolean hasSelectedGroup()
public java.lang.String getSelectedGroup()
public void setSelectedGroup(java.lang.String selectedGroup)
public UserIcon getIcon(java.lang.String filename)
filename
- public boolean hasIcon(java.lang.String filename)
public UserIcon getIconBestMatch(java.lang.String type)
type
- public java.util.List<java.lang.String> getGroups()
public java.util.List<UserIcon> getIcons(java.lang.String group)
public boolean isValid()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object rhs)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static UserIconSet loadUserIconSet(java.lang.String s)
public java.lang.String save()