com.xpn.xwiki.wysiwyg.client.plugin.image
Class ImageConfig

java.lang.Object
  extended by com.xpn.xwiki.wysiwyg.client.plugin.image.ImageConfig
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class ImageConfig
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable

Stores the data about an image: information about the image file (filename, url, etc.) and also about its representation in an edited document (position, size, etc.).

Version:
$Id: ImageConfig.java 20040 2009-05-16 12:06:29Z sdumitriu $

Nested Class Summary
static class ImageConfig.ImageAlignment
          Enumeration holding all possible values for the image alignment.
 
Constructor Summary
ImageConfig()
          Default constructor.
 
Method Summary
 void fromJSON(java.lang.String json)
          Fills this object with data from the passed JSON representation.
 ImageConfig.ImageAlignment getAlignment()
           
 java.lang.String getAltText()
           
 java.lang.String getHeight()
           
 java.lang.String getImageURL()
          
 java.lang.String getPage()
          
 java.lang.String getReference()
           
 java.lang.String getSpace()
          
 java.lang.String getWidth()
           
 java.lang.String getWiki()
          
 void setAlignment(ImageConfig.ImageAlignment alignment)
           
 void setAltText(java.lang.String altText)
           
 void setHeight(java.lang.String height)
           
 void setImageURL(java.lang.String imageURL)
           
 void setPage(java.lang.String page)
           
 void setReference(java.lang.String reference)
           
 void setSpace(java.lang.String space)
           
 void setWidth(java.lang.String width)
           
 void setWiki(java.lang.String wiki)
           
 java.lang.String toJSON()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageConfig

public ImageConfig()
Default constructor.

Method Detail

getImageURL

public java.lang.String getImageURL()

See Also:
HasImage#getImageURL()

setImageURL

public void setImageURL(java.lang.String imageURL)
Parameters:
imageURL - the imageURL to set

getWiki

public java.lang.String getWiki()

See Also:
HasImage#getWiki()

setWiki

public void setWiki(java.lang.String wiki)
Parameters:
wiki - the wiki to set

getSpace

public java.lang.String getSpace()

See Also:
HasImage#getSpace()

setSpace

public void setSpace(java.lang.String space)
Parameters:
space - the space to set

getPage

public java.lang.String getPage()

See Also:
HasImage#getPage()

setPage

public void setPage(java.lang.String page)
Parameters:
page - the page to set

getReference

public java.lang.String getReference()
Returns:
the reference

setReference

public void setReference(java.lang.String reference)
Parameters:
reference - the reference to set

getAltText

public java.lang.String getAltText()
Returns:
the altText

setAltText

public void setAltText(java.lang.String altText)
Parameters:
altText - the altText to set

getWidth

public java.lang.String getWidth()
Returns:
the width

setWidth

public void setWidth(java.lang.String width)
Parameters:
width - the width to set

getHeight

public java.lang.String getHeight()
Returns:
the height

setHeight

public void setHeight(java.lang.String height)
Parameters:
height - the height to set

getAlignment

public ImageConfig.ImageAlignment getAlignment()
Returns:
the alignment

setAlignment

public void setAlignment(ImageConfig.ImageAlignment alignment)
Parameters:
alignment - the alignment to set

toJSON

public java.lang.String toJSON()
Returns:
the JSON representation of this ImageConfig

fromJSON

public void fromJSON(java.lang.String json)
Fills this object with data from the passed JSON representation.

Parameters:
json - the JSON representation of this image config object.


Copyright © 2004-2010 XWiki. All Rights Reserved.