public class ImageArea
extends org.gcube.portlets.d4sreporting.common.client.uicomponents.ReportUIComponent
ImageArea
class is the Widget that goes into the workspaceConstructor and Description |
---|
ImageArea(Presenter controller,
boolean isURL,
String param,
String myTemplate,
int left,
int top,
int width,
int height)
Creates an image with a specified URL.
|
Modifier and Type | Method and Description |
---|---|
String |
getImageName() |
String |
getImageURL(String imageName,
String templateName)
return a URL which is lookable for on the web
|
String |
getTemplateName() |
void |
lockComponent(org.gcube.portlets.d4sreporting.common.client.uicomponents.ReportUIComponent toLock,
boolean locked) |
void |
removeTemplateComponent(org.gcube.portlets.d4sreporting.common.client.uicomponents.ReportUIComponent toRemove) |
void |
resizePanel(int width,
int height)
used to resize the panel
|
void |
setImageName(String imageName) |
void |
setTemplateName(String myTemplate) |
get, getLeft, getMyFakeTextArea, getResizablePanel, getTop, getTopPanel, getType, hideCloseButton, repositionMyPanel, setHeight, setLeft, setLocked, setMyFakeTextArea, setTop, setType
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
public ImageArea(Presenter controller, boolean isURL, String param, String myTemplate, int left, int top, int width, int height)
controller
- .
* @param param the imageName of the image to be displayed or the URL to be displayed depending on the isURL parammyTemplate
- the template that owns the image, useful when template it's saved with another name
to eventually copy the images in the new template images folderisURL
- true if passing a URL, false is passing image nameheight
- hwidth
- wleft
- ltop
- tpublic void resizePanel(int width, int height)
resizePanel
in class org.gcube.portlets.d4sreporting.common.client.uicomponents.ReportUIComponent
width
- wheight
- hpublic String getImageURL(String imageName, String templateName)
imageName
- .templateName
- .public String getTemplateName()
public void setTemplateName(String myTemplate)
myTemplate
- the template ownerpublic String getImageName()
public void setImageName(String imageName)
imageName
- .public void lockComponent(org.gcube.portlets.d4sreporting.common.client.uicomponents.ReportUIComponent toLock, boolean locked)
lockComponent
in class org.gcube.portlets.d4sreporting.common.client.uicomponents.ReportUIComponent
public void removeTemplateComponent(org.gcube.portlets.d4sreporting.common.client.uicomponents.ReportUIComponent toRemove)
removeTemplateComponent
in class org.gcube.portlets.d4sreporting.common.client.uicomponents.ReportUIComponent
Copyright © 2016. All Rights Reserved.