IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

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

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.AbstractXUIText
                  extended by com.ibm.btt.rcp.xui.widgets.XUIText
All Implemented Interfaces:
IFieldDataHolder, IKeyHolder, IXUIErrorSource, IXUIEventListener, IXUIRequiredSource, IXUIWidget, java.util.EventListener, org.eclipse.swt.events.FocusListener, org.eclipse.swt.events.ModifyListener, org.eclipse.swt.events.VerifyListener, org.eclipse.swt.internal.SWTEventListener

@Appearance(value={"bounds","text","font","alignment","foreground","background","enabled","visible","border","editable","multiline","wrap"})
@General(value={"id","tabIndex","dataName","autoTab","autoClear","required","maxLength","minLength","helpId"})
@Injection(value={"initializers","beforeValidators","afterValidators","format","actions","proposals"})
public class XUIText
extends AbstractXUIText

XML UI Text Field widget


Field Summary
 
Fields inherited from class com.ibm.btt.rcp.xui.widgets.AbstractXUIText
format, validatorManager
 
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
XUIText()
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getProposals()
          Get proposals for this text.
protected  int getStyle()
          Get SWT widget style
 void initialize(org.eclipse.swt.widgets.Composite parent)
          Initialize this XUI widget.
protected  void installListeners()
          Install SWT listeners to this widget.
 boolean isMultiline()
          If it is true, you can input multiple lines.
 boolean isWrap()
          If it is true, when text is up to width of text box, text can be auto-wrapped; If it if false, text can¡¯t be auto-wrapped.
 void setMultiline(boolean multiline)
          If it is true, you can input multiple lines.
 void setProposals(java.util.Map<java.lang.String,java.lang.String> proposalMap)
          Set proposals for this text.
 void setWrap(boolean wrap)
          If it is true, when text is up to width of text box, 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.AbstractXUIText
focusGained, focusLost, formatText, getAfterValidators, getAlignment, getBeforeValidators, getDataValue, getErrorMessage, getFormat, getMaxLength, getWidget, getWidgetType, handleErrorMessage, handleXUIEvent, isAutoClear, isAutoTab, isBorder, isNotFilled, isRequired, modifyText, refresh, setAfterValidators, setAlignment, setAutoClear, setAutoTab, setBeforeValidators, setBorder, setDataValue, setErrorMessage, setFormat, setMaxLength, setMinLength, setRequired, verifyText
 
Methods inherited from class com.ibm.btt.rcp.xui.widgets.XUISWTFieldDataWidget
getDataName, setDataName
 
Methods inherited from class com.ibm.btt.rcp.xui.widgets.XUISWTWidget
addListener, cacheProperty, createWidget, dispose, getCachedProperties, handleRequired, removeListener, setColors, setListeners
 
Methods inherited from class com.ibm.btt.rcp.xui.widgets.XUIWidget
fireXUIEvent, getActions, getHelpId, getId, getInitializers, getParent, getTabIndex, getXUIView, setActions, setHelpId, setId, setInitializers, setParent, setTabIndex, setXUIView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.btt.rcp.xui.data.IKeyHolder
getId, setId
 

Constructor Detail

XUIText

public XUIText()
Method Detail

initialize

public void initialize(org.eclipse.swt.widgets.Composite parent)
Description copied from class: XUISWTWidget
Initialize this XUI widget. In this method, create wrapped SWT widget; inject global settings and cached properties into it; and so on.

Overrides:
initialize in class AbstractXUIText

installListeners

protected void installListeners()
Description copied from class: XUISWTWidget
Install SWT listeners to this widget.

Overrides:
installListeners in class AbstractXUIText

setProposals

public void setProposals(java.util.Map<java.lang.String,java.lang.String> proposalMap)
Set proposals for this text. When focus on text box, it will pop out a tip list, including all the proper values for text box

Parameters:
proposalMap -

getProposals

public java.util.Map<java.lang.String,java.lang.String> getProposals()
Get proposals for this text. When focus on text box, it will pop out a tip list, including all the proper values for text box

Returns:

isMultiline

public boolean isMultiline()
If it is true, you can input multiple lines. If it is false, you can¡¯t input multiple line

Returns:

setMultiline

public void setMultiline(boolean multiline)
If it is true, you can input multiple lines. If it is false, you can¡¯t input multiple line

Parameters:
multiline -

isWrap

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

Returns:

setWrap

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

Parameters:
wrap -

getStyle

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

Overrides:
getStyle in class AbstractXUIText
Returns:
widget style

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2010