IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.rcp.xui.widgets
Class XUILabel

java.lang.Object
  extended by com.ibm.btt.rcp.xui.widgets.XUIWidget
      extended by com.ibm.btt.rcp.xui.widgets.XUISWTWidget
          extended by com.ibm.btt.rcp.xui.widgets.XUISWTFieldDataWidget
              extended by com.ibm.btt.rcp.xui.widgets.XUILabel
All Implemented Interfaces:
IFieldDataHolder, IKeyHolder, IXUIEventListener, IXUIWidget, java.util.EventListener, org.eclipse.swt.events.FocusListener, org.eclipse.swt.internal.SWTEventListener

@Appearance(value={"bounds","text","font","alignment","background","foreground","enabled","visible","wrap","image"})
@General(value={"id","dataName"})
@Injection(value="initializers")
public class XUILabel
extends XUISWTFieldDataWidget

XML UI Label Widget


Field Summary
 
Fields inherited from class com.ibm.btt.rcp.xui.widgets.XUISWTFieldDataWidget
initialized
 
Fields inherited from class com.ibm.btt.rcp.xui.widgets.XUISWTWidget
background, focusLost, foreground
 
Constructor Summary
XUILabel()
           
 
Method Summary
 void dispose()
          Dispose this widget, release resources.
 Alignment getAlignment()
          Get alignment mode, it has three values: LEFT, CENTER, and RIGHT.
 java.lang.String getDataValue()
          Get field data value
protected  int getStyle()
          Get SWT widget style
 org.eclipse.swt.widgets.Label getWidget()
          Get wrapped widget instance
 java.lang.Class<?> getWidgetType()
          Get wrapped widget class type
 boolean isWrap()
          When the text is up to the width of Label, if it is true, text can be auto-wrapped; If it if false, text can¡¯t be auto-wrapped.
 void refresh()
          Refresh widget using latest data
 void setAlignment(Alignment alignment)
          Set alignment mode, it has three values: LEFT, CENTER, and RIGHT.
 void setHelpId(java.lang.String helpId)
          Set Help ID for looking up the help contents.
 void setTabIndex(int tabIndex)
          Define tab focus sequence.
 void setWrap(boolean wrap)
          When the text is up to the width of Label, if it is true, text can be auto-wrapped; If it if false, text can¡¯t be auto-wrapped.
 
Methods inherited from class com.ibm.btt.rcp.xui.widgets.XUISWTFieldDataWidget
getDataName, handleXUIEvent, setDataName, setDataValue
 
Methods inherited from class com.ibm.btt.rcp.xui.widgets.XUISWTWidget
addListener, cacheProperty, createWidget, focusGained, focusLost, getCachedProperties, handleRequired, initialize, installListeners, removeListener, setColors, setListeners
 
Methods inherited from class com.ibm.btt.rcp.xui.widgets.XUIWidget
fireXUIEvent, getActions, getHelpId, getId, getInitializers, getParent, getTabIndex, getXUIView, setActions, setId, setInitializers, setParent, setXUIView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XUILabel

public XUILabel()
Method Detail

getWidgetType

public java.lang.Class<?> getWidgetType()
Description copied from interface: IXUIWidget
Get wrapped widget class type

Returns:

getWidget

public org.eclipse.swt.widgets.Label getWidget()
Description copied from interface: IXUIWidget
Get wrapped widget instance

Specified by:
getWidget in interface IXUIWidget
Overrides:
getWidget in class XUISWTWidget
Returns:

getAlignment

public Alignment getAlignment()
Get alignment mode, it has three values: LEFT, CENTER, and RIGHT.


setAlignment

public void setAlignment(Alignment alignment)
Set alignment mode, it has three values: LEFT, CENTER, and RIGHT.

Parameters:
alignment -

isWrap

public boolean isWrap()
When the text is up to the width of Label, if it is true, text can be auto-wrapped; If it if false, text can¡¯t be auto-wrapped.

Returns:

setWrap

public void setWrap(boolean wrap)
When the text is up to the width of Label, if it is true, text can be auto-wrapped; If it if false, text can¡¯t be auto-wrapped.

Parameters:
wrap -

refresh

public void refresh()
Description copied from class: XUISWTFieldDataWidget
Refresh widget using latest data

Specified by:
refresh in class XUISWTFieldDataWidget

getDataValue

public java.lang.String getDataValue()
Description copied from interface: IFieldDataHolder
Get field data value

Specified by:
getDataValue in interface IFieldDataHolder
Overrides:
getDataValue in class XUISWTFieldDataWidget
Returns:

getStyle

protected int getStyle()
Description copied from class: XUISWTWidget
Get SWT widget style

Overrides:
getStyle in class XUISWTWidget
Returns:
widget style

dispose

public void dispose()
Description copied from class: XUIWidget
Dispose this widget, release resources.

Specified by:
dispose in interface IXUIWidget
Overrides:
dispose in class XUISWTWidget

setHelpId

public void setHelpId(java.lang.String helpId)
Description copied from class: XUIWidget
Set Help ID for looking up the help contents.

Overrides:
setHelpId in class XUIWidget

setTabIndex

public void setTabIndex(int tabIndex)
Description copied from class: XUIWidget
Define tab focus sequence.

Overrides:
setTabIndex in class XUIWidget

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2009