|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.editor.langed.EdLanguage
public class EdLanguage
EdLanguage Extends the basic language class to provide write functionality.
Copyright (c) Formaria Ltd., 2001-2006, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Formaria.
$Revision: 1.11 $
| Constructor Summary | |
|---|---|
EdLanguage(EdLangMgr lm)
|
|
| Method Summary | |
|---|---|
int |
addString(int id,
java.lang.String newKeyStr,
java.lang.String newValueStr)
Add a new string to the language. |
int |
addString(java.lang.String newKeyStr,
java.lang.String newValueStr)
Add a new string to the language. |
int |
findString(java.lang.String key)
Looks up and returns a string. |
java.lang.Object |
getElementAt(int idx)
|
java.lang.String |
getLangCode()
Gets the language country code e.g. |
java.lang.String |
getLangName()
Gets the language name e.g. |
int |
getMaxId()
Gets the maximum string ID in use. |
int |
getNumStrings()
|
int |
getSize()
|
java.lang.String |
getString(int id)
|
java.lang.String |
getStringAt(int idx)
|
int |
getStringId(int idx)
|
int |
getStringIndex(int idx)
|
void |
read(java.util.Vector translations,
int field,
boolean bSubstrings)
|
void |
removeString(int idx)
|
void |
saveProperties(java.lang.String newFile,
java.lang.String encoding)
|
void |
setKeyString(int id,
java.lang.String newStr)
Looks up and returns a string. |
void |
setLangCode(java.lang.String cc)
Sets the language country code e.g. |
void |
setLangName(java.lang.String name)
Sets the language name e.g. |
void |
setString(int id,
java.lang.String newKeyStr,
java.lang.String newValueStr)
Looks up and returns a string. |
void |
sort(java.util.Comparator c)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EdLanguage(EdLangMgr lm)
| Method Detail |
|---|
public java.lang.String getLangName()
public void setLangName(java.lang.String name)
name - The new language name.public java.lang.String getLangCode()
public void setLangCode(java.lang.String cc)
cc - The new language code.public java.lang.String getStringAt(int idx)
public java.lang.Object getElementAt(int idx)
public int getNumStrings()
public void read(java.util.Vector translations,
int field,
boolean bSubstrings)
public int getSize()
public java.lang.String getString(int id)
public int findString(java.lang.String key)
public int getStringId(int idx)
public int getStringIndex(int idx)
public void setString(int id,
java.lang.String newKeyStr,
java.lang.String newValueStr)
newKeyStr - the new language keynewValueStr - the new language value
public void setKeyString(int id,
java.lang.String newStr)
public int addString(int id,
java.lang.String newKeyStr,
java.lang.String newValueStr)
id - the id of this new language stringnewKeyStr - the new langauge keynewValueStr - the new langauge value
public int addString(java.lang.String newKeyStr,
java.lang.String newValueStr)
newKeyStr - the new langauge keynewValueStr - the new langauge valuepublic int getMaxId()
public void removeString(int idx)
public void saveProperties(java.lang.String newFile,
java.lang.String encoding)
throws java.io.IOException
java.io.IOExceptionpublic void sort(java.util.Comparator c)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||