ikbs.illustration.base
Class IllustrationPicture

java.lang.Object
  extended by ikbs.illustration.base.IllustrationPicture
All Implemented Interfaces:
Illustration, java.io.Serializable
Direct Known Subclasses:
IllustrationBase

public class IllustrationPicture
extends java.lang.Object
implements Illustration, java.io.Serializable

IKBS - Illustrations de type Picture (JPG ou GIF)

Since:
25 Juin 2007
Version:
2.5
Author:
David Grosser
See Also:
Serialized Form

Field Summary
protected  java.lang.String absolutePath
           
static int BASE
           
protected  java.lang.String commentaire
           
static int ERROR
           
static int FLASH
           
static int FOLDER
           
static int FOLDER_BACK
           
static int HTML
           
protected  IllustrationOwner illustrationOwner
           
static int INDEX
           
protected  boolean infoLoaded
           
static int MISSING
           
static int MP3
           
protected  java.lang.String nomFich
           
protected  java.lang.String nomThumb
           
protected  IllustrationPicture parent
           
protected  java.lang.String path
           
static int PDF
           
static int PICTURE
           
static int QUICKTIME
           
protected  boolean relatif
           
static int TEXT
           
protected  boolean thumbed
           
protected  int type
           
static int URL
           
protected  java.lang.String valeur
           
static int WORD
           
 
Constructor Summary
IllustrationPicture(IllustrationOwner io)
           
IllustrationPicture(IllustrationOwner io, java.lang.String path)
           
IllustrationPicture(IllustrationOwner io, java.lang.String path, java.lang.String commentaire)
           
IllustrationPicture(IllustrationOwner io, java.lang.String path, java.lang.String commentaire, java.lang.String valeur)
           
IllustrationPicture(IllustrationOwner io, java.lang.String path, java.lang.String commentaire, java.lang.String valeur, java.lang.String nomFich)
           
 
Method Summary
 java.lang.String asTextM()
          Pour la sauvegarde
 java.lang.Object clone()
           
 java.lang.String getAbsolutePath()
          Chemin d'accès absolu
 java.lang.String getCommentaire()
          Accès au commentaire
 IllustrationOwner getIllustrationOwner()
          Récupérer le possesseur de this
 boolean getInfoLoaded()
          Return true si les info associées à l'image ont été chargée
 java.lang.String getNomFich()
          Nom court du fichier
 IllustrationPicture getParent()
           
 java.lang.String getPath()
          Chemin relatif par rapport à l'URL de base du fichier
 java.lang.String getPathThumb()
           
 java.lang.String getPathThumbGIF()
          Récupérer le fichier thumbnail d'extension .gif
 boolean getRelatif()
          Chemin d'accès relatif ou absolu
 boolean getThumbed()
           
 int getType()
          Type du fichier, Flash, Quicktime, picture, etc.
 java.lang.String getValeur()
          Accès à la valeur associée
 void initType()
          Determination du type de fichier en fonction du nom
 boolean isFolder()
          Retourne vrai si l'illustration est de type FOLDER
 boolean isImage()
          Retourne vrai si l'illustration est de type PICTURE
 boolean isIndex()
          Retourne vrai si l'illustration est de type INDEX
 void setAbsolutePath(java.lang.String p)
          Affectation du chemin d'accès absolu
 void setCommentaire(java.lang.String p)
          Affectation du commentaire
 void setIllustrationOwner(IllustrationOwner p)
          Affectation du possesseur
 void setInfoLoaded(boolean b)
          Flag qui marque que les infos ont été chargées
 void setNomFich(java.lang.String p)
          Affectation du nom court du fichier
 void setParent(IllustrationPicture ip)
           
 void setPath(java.lang.String p)
          Affectation du chemin d'accès
 void setPathThumb(java.lang.String p)
          Affectation du chemin d'accès
 void setRelatif(boolean relatif)
          Chemin d'accès relatif ou absolu
 void setThumbed(boolean b)
           
 void setType(int type)
          Affectation du type
 void setValeur(java.lang.String v)
          Affectation de la valeur associée
 java.lang.String toString()
          Affichage en mode texte
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MISSING

public static final int MISSING
See Also:
Constant Field Values

ERROR

public static final int ERROR
See Also:
Constant Field Values

PICTURE

public static final int PICTURE
See Also:
Constant Field Values

WORD

public static final int WORD
See Also:
Constant Field Values

FLASH

public static final int FLASH
See Also:
Constant Field Values

QUICKTIME

public static final int QUICKTIME
See Also:
Constant Field Values

MP3

public static final int MP3
See Also:
Constant Field Values

HTML

public static final int HTML
See Also:
Constant Field Values

PDF

public static final int PDF
See Also:
Constant Field Values

TEXT

public static final int TEXT
See Also:
Constant Field Values

FOLDER

public static final int FOLDER
See Also:
Constant Field Values

FOLDER_BACK

public static final int FOLDER_BACK
See Also:
Constant Field Values

URL

public static final int URL
See Also:
Constant Field Values

INDEX

public static final int INDEX
See Also:
Constant Field Values

BASE

public static final int BASE
See Also:
Constant Field Values

parent

protected IllustrationPicture parent

thumbed

protected boolean thumbed

illustrationOwner

protected IllustrationOwner illustrationOwner

path

protected java.lang.String path

absolutePath

protected java.lang.String absolutePath

relatif

protected boolean relatif

nomFich

protected java.lang.String nomFich

commentaire

protected java.lang.String commentaire

nomThumb

protected java.lang.String nomThumb

valeur

protected java.lang.String valeur

type

protected int type

infoLoaded

protected boolean infoLoaded
Constructor Detail

IllustrationPicture

public IllustrationPicture(IllustrationOwner io)

IllustrationPicture

public IllustrationPicture(IllustrationOwner io,
                           java.lang.String path)

IllustrationPicture

public IllustrationPicture(IllustrationOwner io,
                           java.lang.String path,
                           java.lang.String commentaire)

IllustrationPicture

public IllustrationPicture(IllustrationOwner io,
                           java.lang.String path,
                           java.lang.String commentaire,
                           java.lang.String valeur)

IllustrationPicture

public IllustrationPicture(IllustrationOwner io,
                           java.lang.String path,
                           java.lang.String commentaire,
                           java.lang.String valeur,
                           java.lang.String nomFich)
Method Detail

setParent

public void setParent(IllustrationPicture ip)

getParent

public IllustrationPicture getParent()

getThumbed

public boolean getThumbed()

setThumbed

public void setThumbed(boolean b)

getIllustrationOwner

public IllustrationOwner getIllustrationOwner()
Récupérer le possesseur de this

Specified by:
getIllustrationOwner in interface Illustration

setIllustrationOwner

public void setIllustrationOwner(IllustrationOwner p)
Affectation du possesseur

Specified by:
setIllustrationOwner in interface Illustration

getPath

public java.lang.String getPath()
Chemin relatif par rapport à l'URL de base du fichier

Specified by:
getPath in interface Illustration

getPathThumb

public java.lang.String getPathThumb()
Specified by:
getPathThumb in interface Illustration

getPathThumbGIF

public java.lang.String getPathThumbGIF()
Récupérer le fichier thumbnail d'extension .gif


setPath

public void setPath(java.lang.String p)
Affectation du chemin d'accès

Specified by:
setPath in interface Illustration

setPathThumb

public void setPathThumb(java.lang.String p)
Affectation du chemin d'accès

Specified by:
setPathThumb in interface Illustration

getAbsolutePath

public java.lang.String getAbsolutePath()
Chemin d'accès absolu


setAbsolutePath

public void setAbsolutePath(java.lang.String p)
Affectation du chemin d'accès absolu


getRelatif

public boolean getRelatif()
Chemin d'accès relatif ou absolu

Specified by:
getRelatif in interface Illustration

setRelatif

public void setRelatif(boolean relatif)
Chemin d'accès relatif ou absolu

Specified by:
setRelatif in interface Illustration

getNomFich

public java.lang.String getNomFich()
Nom court du fichier

Specified by:
getNomFich in interface Illustration

setNomFich

public void setNomFich(java.lang.String p)
Affectation du nom court du fichier

Specified by:
setNomFich in interface Illustration

getType

public int getType()
Type du fichier, Flash, Quicktime, picture, etc.

Specified by:
getType in interface Illustration

setType

public void setType(int type)
Affectation du type

Specified by:
setType in interface Illustration

initType

public void initType()
Determination du type de fichier en fonction du nom


isImage

public boolean isImage()
Retourne vrai si l'illustration est de type PICTURE


isFolder

public boolean isFolder()
Retourne vrai si l'illustration est de type FOLDER


isIndex

public boolean isIndex()
Retourne vrai si l'illustration est de type INDEX


getValeur

public java.lang.String getValeur()
Accès à la valeur associée

Specified by:
getValeur in interface Illustration

setValeur

public void setValeur(java.lang.String v)
Affectation de la valeur associée

Specified by:
setValeur in interface Illustration

getCommentaire

public java.lang.String getCommentaire()
Accès au commentaire

Specified by:
getCommentaire in interface Illustration

setCommentaire

public void setCommentaire(java.lang.String p)
Affectation du commentaire

Specified by:
setCommentaire in interface Illustration

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

asTextM

public java.lang.String asTextM()
Pour la sauvegarde

Specified by:
asTextM in interface Illustration

toString

public java.lang.String toString()
Affichage en mode texte

Specified by:
toString in interface Illustration
Overrides:
toString in class java.lang.Object

getInfoLoaded

public boolean getInfoLoaded()
Return true si les info associées à l'image ont été chargée

Specified by:
getInfoLoaded in interface Illustration

setInfoLoaded

public void setInfoLoaded(boolean b)
Description copied from interface: Illustration
Flag qui marque que les infos ont été chargées

Specified by:
setInfoLoaded in interface Illustration