|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
com.sage.swt.client.widget.AbstractSwtWidget
com.sage.swt.client.widget.SwtThumbnailDock
public class SwtThumbnailDock
The SwtThumbnailDock is primarily meant to be used in Portal applications, for providing quick access to a users most frequently accessed task portlets (their favorites or shortcuts).When a particular Thumbnail is clicked, then that task portlet will be opened in the workspace area of the Portal
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 |
---|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
SwtThumbnailDock()
Default constructor for the SwtThumbnailDock. |
|
SwtThumbnailDock(WidgetKey widgetKey,
SwtErrorStack errorStack)
Constructor for the SwtThumbnailDock. |
Method Summary | |
---|---|
com.google.gwt.event.shared.HandlerRegistration |
addPortletLinkClickHandler(PortletLinkClickHandler handler)
Adds a PortletLinkClickEvent handler. |
com.google.gwt.event.shared.HandlerRegistration |
addPreserveAddHandler(PreserveAddHandler handler)
Adds a PreserveAddEvent handler. |
com.google.gwt.event.shared.HandlerRegistration |
addPreserveDeleteHandler(PreserveDeleteHandler handler)
Adds a PreserveDeleteEvent handler. |
com.google.gwt.event.shared.HandlerRegistration |
addPreserveReorderHandler(PreserveReorderHandler handler)
Adds a PreserveReorderEvent handler. |
static WidgetCategory |
getDesignerCategory()
Gets the widget's category in the designer. |
static ImageBundleMgr.BundledImage |
getDesignerImage()
Get the image ENUM that will be used to render a graphic for this widget in the Widget List in UI Designer |
static java.lang.String |
getDesignerTooltip()
Gets the widget's tooltip in the designer. |
static java.lang.String |
getDesignerTypeName()
Gets the widget's type name as displayed in the designer. |
SwtEvent |
getEvent(java.lang.String eventName)
Returns the event that matches the given event name. |
java.util.Map<java.lang.String,SwtEvent> |
getEvents()
Returns a map of events that this widget supports. |
java.util.Collection<Property> |
getProperties()
Gets the collection of properties contained in this bag. |
protected com.google.gwt.user.client.ui.Widget |
getWidget()
Gets the topmost underlying widget that is being wrapped by this SWT widget. |
static SwtWidgetCreator |
getWidgetCreator()
Returns the widget creator for this widget. |
void |
onInitialPortalDataLoaded(InitialPortalDataLoadEvent event)
Fired when initial portal-related data has been loaded. |
void |
onPortletLinkClicked(PortletLinkClickEvent event)
Fired when a link to a portlet has been clicked. |
void |
onPortletsAndCategoriesDataError(PortletsAndCategoriesDataErrorEvent event)
Notifies that there was an error when downloading the portlets or categories data. |
void |
onPortletsAndCategoriesDataReady(PortletsAndCategoriesDataReadyEvent event)
Fired when the portlets and categories data are ready. |
void |
resizeScrollPanel()
Resizes the width of the scroll Panel according to the size of the browser. |
void |
setCompanyID(java.lang.String companyID)
Sets the company ID of the company whose shortcuts should be shown in the thumbnail dock. |
protected void |
setElementID()
Set Element ID for this widget. |
void |
setInstanceContext(InstanceContext context)
Sets the instance context where this widget resides. |
void |
setPropertyValue(Property property,
java.lang.Object newValue)
Sets the value of a property. |
void |
setTextCustomize(java.lang.String text)
Set the caption of the Customize button. |
void |
setTextShortcuts(java.lang.String text)
Set the caption of the Shortcuts label. |
void |
setTransTextCustomize(TransText transText)
Set the caption of the Customize button. |
void |
setTransTextShortcuts(TransText transText)
Set the caption of the Shortcuts label. |
protected void |
setupPropertyDefaultValues()
Stores the current value of the widget properties as the default values. |
void |
setUserID(java.lang.String userID)
Sets the user ID of the user whose shortcuts should be shown in the thumbnail dock. |
void |
setWidgetMinWidth(java.lang.String width)
Sets the SwtThumbnailDock required minimum width. |
void |
setWidth(int width)
Sets the width of the widget. |
Methods inherited from class com.google.gwt.user.client.ui.Composite |
---|
initWidget, isAttached, onAttach, onBrowserEvent, onDetach, 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, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Constructor Detail |
---|
public SwtThumbnailDock()
public SwtThumbnailDock(WidgetKey widgetKey, SwtErrorStack errorStack)
widgetKey
- The Key of the Widget.errorStack
- The ErrorStack of the widget.Method Detail |
---|
public void setWidgetMinWidth(java.lang.String width)
width
- The minimum width to set in the widget.public void resizeScrollPanel()
public static java.lang.String getDesignerTypeName()
public static java.lang.String getDesignerTooltip()
public static ImageBundleMgr.BundledImage getDesignerImage()
public static WidgetCategory getDesignerCategory()
public static SwtWidgetCreator getWidgetCreator()
public com.google.gwt.event.shared.HandlerRegistration addPortletLinkClickHandler(PortletLinkClickHandler handler)
PortletLinkClickEvent
handler.
addPortletLinkClickHandler
in interface HasPortletLinkClickHandlers
handler
- the handler
protected com.google.gwt.user.client.ui.Widget getWidget()
getWidget
in class AbstractSwtWidget
public void setTransTextShortcuts(TransText transText)
transText
- caption textpublic void setTransTextCustomize(TransText transText)
transText
- caption textpublic void setTextShortcuts(java.lang.String text)
text
- caption textpublic void setTextCustomize(java.lang.String text)
text
- caption stringpublic void setPropertyValue(Property property, java.lang.Object newValue)
setPropertyValue
in interface PropertyBag
property
- The property in question.newValue
- The new value of the property.public java.util.Collection<Property> getProperties()
getProperties
in interface PropertyBag
getProperties
in class AbstractSwtWidget
protected void setupPropertyDefaultValues()
setupPropertyDefaultValues
in class AbstractSwtWidget
public SwtEvent getEvent(java.lang.String eventName)
getEvent
in interface SwtEventSource
eventName
- The name of the event.
SwtEvent
for the given name.public java.util.Map<java.lang.String,SwtEvent> getEvents()
getEvents
in interface SwtEventSource
protected void setElementID()
setElementID
in class AbstractSwtWidget
public void setWidth(int width)
width
- width of the widgetpublic void onInitialPortalDataLoaded(InitialPortalDataLoadEvent event)
onInitialPortalDataLoaded
in interface InitialPortalDataLoadHandler
event
- A InitialPortalDataLoadEvent
object which contains the
initial data to be shared by various portal-related widgets and
contains the portal-related datasources those widgets can use to
load further data that's specific to each widget.public void setInstanceContext(InstanceContext context)
setInstanceContext
in interface SwtWidget
setInstanceContext
in class AbstractSwtWidget
context
- The instance context where the widget will reside.public void setUserID(java.lang.String userID)
userID
- The user ID of the user whose shortcuts should be shown in the
thumbnail dock.public void setCompanyID(java.lang.String companyID)
companyID
- The company ID of the company whose shortcuts should be shown in the
thumbnail dock.public com.google.gwt.event.shared.HandlerRegistration addPreserveAddHandler(PreserveAddHandler handler)
PreserveAddEvent
handler.
addPreserveAddHandler
in interface HasPreserveAddHandlers
handler
- the handler
public com.google.gwt.event.shared.HandlerRegistration addPreserveDeleteHandler(PreserveDeleteHandler handler)
PreserveDeleteEvent
handler.
addPreserveDeleteHandler
in interface HasPreserveDeleteHandlers
handler
- the handler
public com.google.gwt.event.shared.HandlerRegistration addPreserveReorderHandler(PreserveReorderHandler handler)
PreserveReorderEvent
handler.
addPreserveReorderHandler
in interface HasPreserveReorderHandlers
handler
- the handler
public void onPortletsAndCategoriesDataReady(PortletsAndCategoriesDataReadyEvent event)
onPortletsAndCategoriesDataReady
in interface PortletsAndCategoriesDataReadyHandler
event
- the eventpublic void onPortletsAndCategoriesDataError(PortletsAndCategoriesDataErrorEvent event)
onPortletsAndCategoriesDataError
in interface PortletsAndCategoriesDataErrorHandler
event
- the eventpublic void onPortletLinkClicked(PortletLinkClickEvent event)
PortletLinkClickHandler
onPortletLinkClicked
in interface PortletLinkClickHandler
event
- the event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |