public class OOoContainer
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addListener(IConfigListener pListener)
Add a configuration listener to the container.
|
static void |
addOOo(IOOo pOoo)
Add the OOo given in parameter to the list of the others.
|
static void |
clear()
Removes all the OOo contained.
|
static boolean |
containsName(java.lang.String pName)
Checks whether the corresponding LibreOffice name already exists.
|
static void |
delOOo(IOOo pOoo)
remove the given OOo from the list.
|
static void |
dispose()
Dispose the vector used.
|
static OOoContainer |
getInstance() |
static IOOo |
getOOo(java.lang.String pOookey)
Returns the ooo that corresponds to the given ooo name and buildid.
|
static int |
getOOoCount()
Returns the number of OOo in the list.
|
static java.util.Vector<java.lang.String> |
getOOoKeys()
Returns a vector containing the unique identifiers of the contained OOos.
|
static IOOo |
getSomeOOo(java.lang.String pValue)
Leniently return an OOo instance descriptor from a given value.
|
static java.lang.String |
getUniqueName(java.lang.String pName)
Computes a unique name from the given one.
|
static void |
load()
Loads the LibreOffice already configured instances from the preferences.
|
static void |
removeListener(IConfigListener pListener)
Removes a configuration listener from the container.
|
static void |
saveOOos()
Saves the LibreOffice already configured instances to the preferences.
|
static java.lang.Object[] |
toArray() |
static void |
updateOOo(java.lang.String pOookey,
IOOo pOoo)
Update the with OOo from the list with the given OOo.
|
public static void addListener(IConfigListener pListener)
pListener - configuration listener to addpublic static void removeListener(IConfigListener pListener)
pListener - configuration listener to removepublic static java.lang.Object[] toArray()
public static void addOOo(IOOo pOoo)
pOoo - OOo to addpublic static void delOOo(IOOo pOoo)
pOoo - OOo to removepublic static void clear()
public static java.util.Vector<java.lang.String> getOOoKeys()
public static boolean containsName(java.lang.String pName)
pName - the OOo Name to checktrue if the name is already present, false otherwise.public static java.lang.String getUniqueName(java.lang.String pName)
pName - the name to render uniquepublic static void updateOOo(java.lang.String pOookey,
IOOo pOoo)
pOookey - position of the ooo to updatepOoo - new value for the OOopublic static IOOo getOOo(java.lang.String pOookey)
pOookey - unique identifier of the wanted ooopublic static IOOo getSomeOOo(java.lang.String pValue)
This method will try several ways to find an OOo. These are the following:
pValuepValuenull will be returned.
pValue - the value helping to find the OOo instance.null if not foundpublic static int getOOoCount()
public static void dispose()
public static void load()
public static void saveOOos()
public static OOoContainer getInstance()