|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object util.paramhandler.ParamLibrary
public class ParamLibrary
The default ParamLibrary. If you want to add new parameters or functions for your plugin, extend this class and override the public methods. For an example see the code in the CapturePlugin
Constructor Summary | |
---|---|
ParamLibrary()
|
Method Summary | |
---|---|
java.lang.String |
getDescriptionForFunctions(java.lang.String function)
Get the description for a specific Function |
java.lang.String |
getDescriptionForKey(java.lang.String key)
Get the description for one Key |
java.lang.String |
getErrorString()
Returns the Error, empty if none occurred |
java.lang.String[] |
getPossibleFunctions()
Get the List of possible Functions |
java.lang.String[] |
getPossibleKeys()
Get the possible Keys |
java.lang.String |
getStringForFunction(Program prg,
java.lang.String function,
java.lang.String[] params)
Returns the Value of a function |
java.lang.String |
getStringForKey(Program program,
java.lang.String key)
Get the String for a key |
boolean |
hasErrors()
Has an Error occurred ? |
void |
setErrors(boolean errors)
Set the Error-Boolean |
void |
setErrorString(java.lang.String error)
Set the Error |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParamLibrary()
Method Detail |
---|
public boolean hasErrors()
public void setErrors(boolean errors)
errors
- True, if an error occurredpublic java.lang.String getErrorString()
public void setErrorString(java.lang.String error)
error
- the Errorpublic java.lang.String[] getPossibleKeys()
public java.lang.String getDescriptionForKey(java.lang.String key)
key
-
public java.lang.String[] getPossibleFunctions()
public java.lang.String getDescriptionForFunctions(java.lang.String function)
function
- parameter function
public java.lang.String getStringForKey(Program program, java.lang.String key)
program
- Program to usekey
- Key to use
public java.lang.String getStringForFunction(Program prg, java.lang.String function, java.lang.String[] params)
prg
- Program to usefunction
- Function to useparams
- Params for the Function
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |