public class PluginPictureSettings extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ALL_PLUGINS_SETTINGS_TYPE
type to be used for showing pictures like the global plugin settings
|
static int |
NO_PICTURE_TYPE
type to be used for not showing pictures
|
static int |
ONLY_PICTURE_TYPE
type to be used for only showing pictures
|
static int |
PICTURE_AND_DISCRIPTION_TYPE
type to be used for showing pictures and discription
|
Constructor and Description |
---|
PluginPictureSettings(int type)
Creates an instance of this settings with the given type.
|
PluginPictureSettings(ObjectInputStream in)
Creates an instance of this settings from the given stream.
|
Modifier and Type | Method and Description |
---|---|
int |
getType()
Gets the type of this settings.
|
boolean |
isShowingDescription()
Gets if the picture description is to be shown for this setting.
|
boolean |
isShowingPictures()
Gets if the pictures should be shown for this setting.
|
void |
writeData(ObjectOutputStream out)
Writes the data to the given output stream.
|
public static final int ALL_PLUGINS_SETTINGS_TYPE
public static final int PICTURE_AND_DISCRIPTION_TYPE
public static final int ONLY_PICTURE_TYPE
public static final int NO_PICTURE_TYPE
public PluginPictureSettings(int type)
type
- The type to be used for this settings.public PluginPictureSettings(ObjectInputStream in) throws IOException, ClassNotFoundException
in
- The stream to read the values from.IOException
- Thrown if something went wrong.ClassNotFoundException
- Thrown if something went wrong.public void writeData(ObjectOutputStream out) throws IOException
out
- The stream to store the data to.IOException
- Thrown if something went wrong.public boolean isShowingPictures()
True
if the picture is to be shown,
false
otherwise.public boolean isShowingDescription()
True
if the picture description is to be shown,
false
otherwise.public int getType()
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)