|
||||||||||
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.SwtCaptionPanel
public class SwtCaptionPanel
This is the SWT-ized version of GWT's CaptionPanel. It's properties are customizable - so it should be constructed using the SwtWidgetFactory.
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 |
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
---|
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget |
Field Summary |
---|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
SwtCaptionPanel()
Default constructor. |
|
SwtCaptionPanel(WidgetKey widgetKey,
SwtErrorStack errorStack)
Constructor. |
|
SwtCaptionPanel(WidgetKey widgetKey,
SwtErrorStack errorStack,
java.lang.String captionText)
Constructor. |
|
SwtCaptionPanel(WidgetKey widgetKey,
SwtErrorStack errorStack,
java.lang.String captionText,
com.google.gwt.user.client.ui.Widget widget)
Constructor. |
Method Summary | |
---|---|
void |
add(com.google.gwt.user.client.ui.Widget w)
|
void |
addDragDrop(PickupDragController dragController,
java.lang.String style)
Sets up the widget to be used in drag and drop mode drop allowing the user to drop widgets into the widget (as is the case when it is used by the UI Designer). |
void |
clear()
|
Caption |
getCaption()
Gets the caption for the panel. |
com.google.gwt.user.client.ui.Widget |
getContentWidget()
Accesses the content widget, if present. |
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. |
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. |
boolean |
isAllowDNDWidgetToDrop()
Returns whether or not the HasWidget allow to add child widget. |
java.util.Iterator<com.google.gwt.user.client.ui.Widget> |
iterator()
|
boolean |
pasteWidget(com.google.gwt.user.client.ui.Widget w)
Paste the specified widget in the empty position. |
boolean |
remove(com.google.gwt.user.client.ui.Widget w)
|
void |
removeDragDrop()
Removes drag and drop support from the widget. |
void |
setCaption(Caption caption)
Sets the caption for the panel |
void |
setCaption(java.lang.String text,
boolean isHTML)
Sets the caption for the panel to the specified text. |
void |
setContentWidget(com.google.gwt.user.client.ui.Widget w)
Sets or replaces the content widget within the CaptionPanel. |
void |
setPropertyValue(Property property,
java.lang.Object newValue)
Sets the value of a property. |
protected void |
setupPropertyDefaultValues()
Stores the current value of the widget properties as the default values. |
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 SwtCaptionPanel()
public SwtCaptionPanel(WidgetKey widgetKey, SwtErrorStack errorStack)
widgetKey
- The WidgetKey
for the widget.errorStack
- The SwtErrorStack
that stores
the list of UI errors.public SwtCaptionPanel(WidgetKey widgetKey, SwtErrorStack errorStack, java.lang.String captionText)
widgetKey
- The WidgetKey
for the widget.errorStack
- The SwtErrorStack
that stores
the list of UI errors.captionText
- the text of the caption, which is automatically escapedpublic SwtCaptionPanel(WidgetKey widgetKey, SwtErrorStack errorStack, java.lang.String captionText, com.google.gwt.user.client.ui.Widget widget)
widgetKey
- The WidgetKey
for the widget.errorStack
- The SwtErrorStack
that stores
the list of UI errors.captionText
- the text of the caption, which is automatically escapedwidget
- The child widget (usually a panel) that is enclosed by the
caption panel's border.Method Detail |
---|
protected com.google.gwt.user.client.ui.Widget getWidget()
getWidget
in class AbstractSwtWidget
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 void addDragDrop(PickupDragController dragController, java.lang.String style)
addDragDrop
in interface HasDropController
dragController
- The dragController for the DND. The widget should call the
PickupDragController's registerDropController method to register
its DropController class.style
- (optional)Specify the special styling that you want to apply to
the widget when it is in dnd mode.public void removeDragDrop()
removeDragDrop
in interface HasDropController
public Caption getCaption()
public void setCaption(java.lang.String text, boolean isHTML)
text
- The text to display as the panel's captionisHTML
- Whether the text that is specified is HTMLpublic void setCaption(Caption caption)
caption
- The caption to display in the panelpublic void setPropertyValue(Property property, java.lang.Object newValue)
setPropertyValue
in interface PropertyBag
property
- The property in question.newValue
- The new value of the property.protected void setupPropertyDefaultValues()
setupPropertyDefaultValues
in class AbstractSwtWidget
public java.util.Collection<Property> getProperties()
getProperties
in interface PropertyBag
getProperties
in class AbstractSwtWidget
public void add(com.google.gwt.user.client.ui.Widget w)
add
in interface com.google.gwt.user.client.ui.HasWidgets
public void clear()
clear
in interface com.google.gwt.user.client.ui.HasWidgets
public java.util.Iterator<com.google.gwt.user.client.ui.Widget> iterator()
iterator
in interface com.google.gwt.user.client.ui.HasWidgets
iterator
in interface java.lang.Iterable<com.google.gwt.user.client.ui.Widget>
public boolean remove(com.google.gwt.user.client.ui.Widget w)
remove
in interface com.google.gwt.user.client.ui.HasWidgets
public com.google.gwt.user.client.ui.Widget getContentWidget()
setContentWidget(Widget)
public void setContentWidget(com.google.gwt.user.client.ui.Widget w)
w
- the content widget to be setpublic boolean isAllowDNDWidgetToDrop()
isAllowDNDWidgetToDrop
in interface RestrictDNDChildWidget
public boolean pasteWidget(com.google.gwt.user.client.ui.Widget w)
pasteWidget
in interface HandlesPasteWidget
w
- The widget to paste
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |