public class LocalPluginProgramFormating extends AbstractPluginProgramFormating
Constructor and Description |
---|
LocalPluginProgramFormating()
Creates an empty instance of this class,
for example for loading the values from
an ObjectInputStream.
|
LocalPluginProgramFormating(String name,
String titleValue,
String contentValue,
String encodingValue)
Creates an instance of a program configuration.
|
LocalPluginProgramFormating(String id,
String name,
String titleValue,
String contentValue,
String encodingValue)
Creates an instance of a program configuration.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getContentValue()
Gets the value for the content formating
|
String |
getEncodingValue()
Gets the value for the formating
|
String |
getId()
Gets the id of this instance.
|
String |
getName()
Gets the name of this configuration
|
String |
getTitleValue()
Gets the value for title formating
|
boolean |
isValid()
Gets if the configuration is valid.
|
protected void |
loadData(ObjectInputStream in)
Creates an instance of a ProgramConfiguration from an ObjetcInputStream-
|
void |
setContentValue(String value)
Sets the content formating value
|
void |
setEncodingValue(String value)
Sets the encoding value of this configuraion
|
void |
setName(String value)
Sets the name of this configuration
|
void |
setTitleValue(String value)
Sets the title formating value
|
protected void |
storeData(ObjectOutputStream out)
Saves this configuration in an ObjectOutputStream
|
String |
toString() |
readData, writeData
public LocalPluginProgramFormating()
public LocalPluginProgramFormating(String id, String name, String titleValue, String contentValue, String encodingValue)
id
- The id of this formating.name
- The name of the configuration.titleValue
- The value for the title configuration.contentValue
- The value for the content.encodingValue
- The encoding value.public LocalPluginProgramFormating(String name, String titleValue, String contentValue, String encodingValue)
name
- The name of the configuration.titleValue
- The value for the title configuration.contentValue
- The value for the content.encodingValue
- The encoding value.public String getName()
getName
in class AbstractPluginProgramFormating
public String getTitleValue()
getTitleValue
in class AbstractPluginProgramFormating
public String getContentValue()
getContentValue
in class AbstractPluginProgramFormating
public String getEncodingValue()
getEncodingValue
in class AbstractPluginProgramFormating
public void setName(String value)
value
- The new namepublic void setTitleValue(String value)
value
- The new title valuepublic void setContentValue(String value)
value
- The new content valuepublic void setEncodingValue(String value)
value
- The new encodingprotected void loadData(ObjectInputStream in) throws IOException, ClassNotFoundException
loadData
in class AbstractPluginProgramFormating
in
- The stream to read the values fromIOException
- Thrown if something goes wrongClassNotFoundException
- Thrown if something goes wrongprotected void storeData(ObjectOutputStream out) throws IOException
storeData
in class AbstractPluginProgramFormating
out
- The stream to save the values inIOException
- Thrown if something goes wrongpublic boolean isValid()
AbstractPluginProgramFormating
isValid
in class AbstractPluginProgramFormating
public String getId()
AbstractPluginProgramFormating
getId
in class AbstractPluginProgramFormating
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)