com.ephox.editlive.custom
Interface ImageDialogComponent


public interface ImageDialogComponent


Method Summary
 void cleanUp()
          Is called as the dialog is being disposed.
 Map getAttributeMap(Map in)
          Returns a Map of the attributes to be used in the IMG tag.
 ImageIcon getButtonImage()
          Returns the image to be displayed in the repository selection toggle button.
 String getButtonText()
          Returns the text to be displayed in the repository selection toggle button.
 JComponent getJComponent()
          Returns the JComponent to dislay when this ImageDialogComponent is selected.
 void setImageDialog(ImageDialog parent)
          Sets the ImageDialog parent to be called back into.
 

Method Detail

setImageDialog

public void setImageDialog(ImageDialog parent)
Sets the ImageDialog parent to be called back into.

Parameters:
parent -

getAttributeMap

public Map getAttributeMap(Map in)
Returns a Map of the attributes to be used in the IMG tag. The attributes should be stored as a name/value pair of Strings. e.g. "src", "http://www.myserver.com/images/myimage.jpg"

Parameters:
in - a Map containing the current attributes selected in the image dialog.
Returns:
a Map containing name/value pairs of attributes for the image tag.

getButtonText

public String getButtonText()
Returns the text to be displayed in the repository selection toggle button.

Returns:
Text to be displayed.

getButtonImage

public ImageIcon getButtonImage()
Returns the image to be displayed in the repository selection toggle button.

Returns:
Image to be displayed.

getJComponent

public JComponent getJComponent()
Returns the JComponent to dislay when this ImageDialogComponent is selected.

Returns:
JComponent to display

cleanUp

public void cleanUp()
Is called as the dialog is being disposed. Any cleanup that is required should be done here.


Copyright (c) 2005-2007 Ephox Pty Ltd. All rights reserved.