org.scohen.juploadr.app
Class ImageAttributes

java.lang.Object
  extended byorg.scohen.juploadr.app.ImageAttributes
All Implemented Interfaces:
UploadImage

public class ImageAttributes
extends java.lang.Object
implements UploadImage

Author:
steve TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Field Summary
static int UI_THUMBNAIL_WIDTH
           
 
Fields inherited from interface org.scohen.juploadr.app.UploadImage
STATE_DATA_ENTERED, STATE_NEW, STATE_REMOVED, STATE_UPLOADED, STATE_UPLOADING
 
Constructor Summary
ImageAttributes(JUploadr uploader, Composite parent, java.lang.String path)
           
 
Method Summary
 void addPhotoSet(PhotoSet set)
           
 void dispose()
           
 Thumbnail getButton()
           
 java.lang.String getDescription()
           
 java.lang.String getImagePath()
           
 java.lang.String getKey()
           
 java.lang.String getPhotoId()
           
 java.util.List getPhotoSets()
           
 int getRank()
           
 int getRotation()
           
 int getState()
           
 java.util.List getTags()
           
 Image getThumbnail()
           
 java.lang.String getTitle()
           
 boolean hasDescription()
           
 boolean hasTags()
           
 boolean hasTitle()
           
 boolean isFamilyViewable()
           
 boolean isFriendViewable()
           
 boolean isPubliclyVisible()
           
 boolean isRescaled()
           
 boolean isSelected()
           
 void keyPressed(KeyEvent event)
           
 void openEditUI()
           
 void removeFromWindow()
           
 void setButton(UploadThumbnail button)
           
 void setDescription(java.lang.String description)
           
 void setFamilyViewable(boolean familyViewable)
           
 void setFriendViewable(boolean friendViewable)
           
 void setImagePath(java.lang.String imagePath)
           
 void setPhotoId(java.lang.String id)
           
 void setPubliclyVisible(boolean publiclyVisible)
           
 void setRank(int rank)
           
 void setRotation(int rotation)
           
 void setSelected(boolean selected)
           
 void setState(int state)
           
 void setTags(java.util.List tags)
           
 void setThumbnail(Image thumbnail)
           
 void setTitle(java.lang.String title)
           
 void toggleSelected()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UI_THUMBNAIL_WIDTH

public static final int UI_THUMBNAIL_WIDTH
See Also:
Constant Field Values
Constructor Detail

ImageAttributes

public ImageAttributes(JUploadr uploader,
                       Composite parent,
                       java.lang.String path)
Method Detail

keyPressed

public void keyPressed(KeyEvent event)

openEditUI

public void openEditUI()

getButton

public Thumbnail getButton()
Returns:
Returns the button.

setButton

public void setButton(UploadThumbnail button)
Parameters:
button - The button to set.

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface UploadImage
Returns:
Returns the description.

hasDescription

public boolean hasDescription()
Specified by:
hasDescription in interface UploadImage

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - The description to set.

getTags

public java.util.List getTags()
Specified by:
getTags in interface UploadImage
Returns:
Returns the tags.

hasTags

public boolean hasTags()
Specified by:
hasTags in interface UploadImage

setTags

public void setTags(java.util.List tags)
Specified by:
setTags in interface UploadImage
Parameters:
tags - The tags to set.

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface UploadImage
Returns:
Returns the title.

hasTitle

public boolean hasTitle()
Specified by:
hasTitle in interface UploadImage

setTitle

public void setTitle(java.lang.String title)
Specified by:
setTitle in interface UploadImage
Parameters:
title - The title to set.

getImagePath

public java.lang.String getImagePath()
Specified by:
getImagePath in interface UploadImage
Returns:
Returns the imagePath.

getKey

public java.lang.String getKey()
Specified by:
getKey in interface UploadImage

isRescaled

public boolean isRescaled()
Specified by:
isRescaled in interface UploadImage

setImagePath

public void setImagePath(java.lang.String imagePath)
Specified by:
setImagePath in interface UploadImage
Parameters:
imagePath - The imagePath to set.

getState

public int getState()
Specified by:
getState in interface UploadImage
Returns:
Returns the state.

setState

public void setState(int state)
Specified by:
setState in interface UploadImage
Parameters:
state - The state to set.

isFamilyViewable

public boolean isFamilyViewable()
Specified by:
isFamilyViewable in interface UploadImage
Returns:
Returns the familyViewable.

setFamilyViewable

public void setFamilyViewable(boolean familyViewable)
Specified by:
setFamilyViewable in interface UploadImage
Parameters:
familyViewable - The familyViewable to set.

isFriendViewable

public boolean isFriendViewable()
Specified by:
isFriendViewable in interface UploadImage
Returns:
Returns the friendViewable.

setSelected

public void setSelected(boolean selected)

toggleSelected

public void toggleSelected()

isSelected

public boolean isSelected()

setFriendViewable

public void setFriendViewable(boolean friendViewable)
Specified by:
setFriendViewable in interface UploadImage
Parameters:
friendViewable - The friendViewable to set.

isPubliclyVisible

public boolean isPubliclyVisible()
Specified by:
isPubliclyVisible in interface UploadImage
Returns:
Returns the publiclyVisible.

setPubliclyVisible

public void setPubliclyVisible(boolean publiclyVisible)
Specified by:
setPubliclyVisible in interface UploadImage
Parameters:
publiclyVisible - The publiclyVisible to set.

getRank

public int getRank()
Specified by:
getRank in interface UploadImage
Returns:
Returns the rank.

setRank

public void setRank(int rank)
Parameters:
rank - The rank to set.

dispose

public void dispose()

removeFromWindow

public void removeFromWindow()

getThumbnail

public Image getThumbnail()
Returns:
Returns the thumbnail.

setThumbnail

public void setThumbnail(Image thumbnail)
Parameters:
thumbnail - The thumbnail to set.

addPhotoSet

public void addPhotoSet(PhotoSet set)

getPhotoSets

public java.util.List getPhotoSets()

setPhotoId

public void setPhotoId(java.lang.String id)

getPhotoId

public java.lang.String getPhotoId()
Specified by:
getPhotoId in interface UploadImage

getRotation

public int getRotation()
Specified by:
getRotation in interface UploadImage
Returns:
Returns the rotation.

setRotation

public void setRotation(int rotation)
Specified by:
setRotation in interface UploadImage
Parameters:
rotation - The rotation to set.