org.gcube.portlets.user.reportgenerator.client.targets
Class ReportTextArea

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.gcube.portlets.user.reportgenerator.client.targets.ReportTextArea
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget
Direct Known Subclasses:
D4sRichTextarea, HeadingTextArea

public class ReportTextArea
extends com.google.gwt.user.client.ui.Composite

ReportTextArea class represent the generic Widget that can be placed in the UI Component

Version:
July 2011 (3.0)
Author:
Massimiliano Assante, ISTI-CNR - massimiliano.assante@isti.cnr.it

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
protected  com.google.gwt.user.client.ui.Image commentImage
           
 int DELTA
          the allowance when mouse cursor is on borders
protected  int height
          variables of the components
protected  int left
          variables of the components
protected  com.google.gwt.user.client.ui.AbsolutePanel mainPanel
           
protected  ReportTextArea myInstance
           
protected  com.google.gwt.user.client.ui.VerticalPanel resizablePanel
           
protected  int top
          variables of the components
protected  com.google.gwt.user.client.ui.HorizontalPanel topPanel
           
protected  int width
          variables of the components
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ReportTextArea()
          default constructor
ReportTextArea(String id, org.gcube.portlets.d4sreporting.common.shared.ComponentType type, Presenter presenter, int left, int top, int width, int height, boolean hasComments, boolean isRemovable)
           
 
Method Summary
 void addCommentView()
           
 Presenter getController()
           
 String getId()
           
 int getLeft()
           
 ReportTextArea getMyInstance()
           
 com.google.gwt.user.client.ui.VerticalPanel getResizablePanel()
           
 int getTop()
           
 org.gcube.portlets.d4sreporting.common.shared.ComponentType getType()
           
 void removeCommentView()
           
 void removeTemplateComponent()
           
 void repositionMyPanel(int left, int top)
           
 void resizePanel(int width, int height)
          used to resize the panel
 void setHeight(int height)
           
 void setId(String id)
           
 void setLeft(int left)
           
 void setMyInstance(ReportTextArea myInstance)
           
 void setTop(int top)
           
 void setType(org.gcube.portlets.d4sreporting.common.shared.ComponentType type)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
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, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DELTA

public final int DELTA
the allowance when mouse cursor is on borders

See Also:
Constant Field Values

left

protected int left
variables of the components


top

protected int top
variables of the components


width

protected int width
variables of the components


height

protected int height
variables of the components


mainPanel

protected com.google.gwt.user.client.ui.AbsolutePanel mainPanel

topPanel

protected com.google.gwt.user.client.ui.HorizontalPanel topPanel

resizablePanel

protected com.google.gwt.user.client.ui.VerticalPanel resizablePanel

commentImage

protected com.google.gwt.user.client.ui.Image commentImage

myInstance

protected ReportTextArea myInstance
Constructor Detail

ReportTextArea

public ReportTextArea()
default constructor


ReportTextArea

public ReportTextArea(String id,
                      org.gcube.portlets.d4sreporting.common.shared.ComponentType type,
                      Presenter presenter,
                      int left,
                      int top,
                      int width,
                      int height,
                      boolean hasComments,
                      boolean isRemovable)
Parameters:
presenter - .
left - left
top - top
width - .
height - .
type - a
Method Detail

getResizablePanel

public com.google.gwt.user.client.ui.VerticalPanel getResizablePanel()
Returns:
.

removeTemplateComponent

public void removeTemplateComponent()

getType

public org.gcube.portlets.d4sreporting.common.shared.ComponentType getType()
Returns:
.

setType

public void setType(org.gcube.portlets.d4sreporting.common.shared.ComponentType type)
Parameters:
type - .

resizePanel

public void resizePanel(int width,
                        int height)
used to resize the panel

Parameters:
width - w
height - h

setHeight

public void setHeight(int height)
Parameters:
height - g

repositionMyPanel

public void repositionMyPanel(int left,
                              int top)
Parameters:
left - .
top - .

getLeft

public int getLeft()
Returns:
.

setLeft

public void setLeft(int left)
Parameters:
left - .

getTop

public int getTop()
Returns:
-.

setTop

public void setTop(int top)
Parameters:
top - .

getController

public Presenter getController()
Returns:
the controller instance of the widget

getMyInstance

public ReportTextArea getMyInstance()
Returns:
.

setMyInstance

public void setMyInstance(ReportTextArea myInstance)
Parameters:
myInstance - .

removeCommentView

public void removeCommentView()

addCommentView

public void addCommentView()

getId

public String getId()

setId

public void setId(String id)


Copyright © 2014. All Rights Reserved.