|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.rcp.xui.widgets.XUIWidget
com.ibm.btt.rcp.xui.widgets.XUISWTWidget
com.ibm.btt.rcp.xui.widgets.XUISWTFieldDataWidget
com.ibm.btt.rcp.xui.widgets.AbstractXUIText
public abstract class AbstractXUIText
Abstract XUI Text class
Field Summary | |
---|---|
protected IFormat |
format
|
protected IValidatorManager |
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 | |
---|---|
AbstractXUIText()
|
Method Summary | |
---|---|
void |
focusGained(org.eclipse.swt.events.FocusEvent e)
|
void |
focusLost(org.eclipse.swt.events.FocusEvent e)
|
protected void |
formatText()
Format current text using injections |
java.util.List<IValidator> |
getAfterValidators()
Get after-validators for this text |
Alignment |
getAlignment()
Get alignment mode, it has three values: LEFT, CENTER, and RIGHT. |
java.util.List<IValidator> |
getBeforeValidators()
Get before-validators for this text |
java.lang.String |
getDataValue()
Get field data value |
java.lang.String |
getErrorMessage()
Get error message |
IFormat |
getFormat()
Get Format for this text |
int |
getMaxLength()
Get max length for this text |
protected int |
getStyle()
Get SWT widget style |
org.eclipse.swt.widgets.Text |
getWidget()
Get wrapped widget instance |
java.lang.Class<?> |
getWidgetType()
Get wrapped widget class type |
protected void |
handleErrorMessage(java.lang.String msg)
Handle error message logic |
void |
handleXUIEvent(IXUIEventObject object)
Logics when receive XUI events |
void |
initialize(org.eclipse.swt.widgets.Composite parent)
Initialize this XUI widget. |
protected void |
installListeners()
Install SWT listeners to this widget. |
boolean |
isAutoClear()
Get if the text will full-selected when get focus |
boolean |
isAutoTab()
Get if this text can tab when get the max length |
boolean |
isBorder()
Get if this text has border |
boolean |
isNotFilled()
Get if this source is not filled |
boolean |
isRequired()
Get if this source is required |
void |
modifyText(org.eclipse.swt.events.ModifyEvent e)
|
void |
refresh()
Refresh widget using latest data |
void |
setAfterValidators(java.util.List<IValidator> afterValidators)
Set after-validators for this text |
void |
setAlignment(Alignment alignment)
Set alignment mode, it has three values: LEFT, CENTER, and RIGHT. |
void |
setAutoClear(boolean autoClear)
Set if the text will full-selected when get focus |
void |
setAutoTab(boolean value)
Set if this text can tab when get the max length |
void |
setBeforeValidators(java.util.List<IValidator> beforeValidators)
Set before-validators for this text |
void |
setBorder(boolean border)
Set if this text has border |
void |
setDataValue(java.lang.Object value)
Set field data value |
void |
setErrorMessage(java.lang.String msg)
Set error message |
void |
setFormat(IFormat format)
Set Format for this text |
void |
setMaxLength(int length)
Set max length for this text |
void |
setMinLength(int length)
Set min length for this text |
void |
setRequired(boolean required)
Set if this source is required |
void |
verifyText(org.eclipse.swt.events.VerifyEvent e)
|
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 |
Field Detail |
---|
protected IValidatorManager validatorManager
protected IFormat format
Constructor Detail |
---|
public AbstractXUIText()
Method Detail |
---|
public void initialize(org.eclipse.swt.widgets.Composite parent)
XUISWTWidget
initialize
in class XUISWTWidget
public java.lang.Class<?> getWidgetType()
IXUIWidget
getWidgetType
in interface IXUIWidget
public org.eclipse.swt.widgets.Text getWidget()
IXUIWidget
getWidget
in interface IXUIWidget
getWidget
in class XUISWTWidget
public Alignment getAlignment()
public void setAlignment(Alignment alignment)
alignment
- protected void installListeners()
XUISWTWidget
installListeners
in class XUISWTWidget
public void verifyText(org.eclipse.swt.events.VerifyEvent e)
verifyText
in interface org.eclipse.swt.events.VerifyListener
public void focusGained(org.eclipse.swt.events.FocusEvent e)
focusGained
in interface org.eclipse.swt.events.FocusListener
focusGained
in class XUISWTWidget
public void modifyText(org.eclipse.swt.events.ModifyEvent e)
modifyText
in interface org.eclipse.swt.events.ModifyListener
public void focusLost(org.eclipse.swt.events.FocusEvent e)
focusLost
in interface org.eclipse.swt.events.FocusListener
focusLost
in class XUISWTWidget
protected void formatText()
public void setAutoTab(boolean value)
public boolean isAutoTab()
public void setBeforeValidators(java.util.List<IValidator> beforeValidators)
beforeValidators
- public java.util.List<IValidator> getBeforeValidators()
public void setAfterValidators(java.util.List<IValidator> afterValidators)
afterValidators
- public java.util.List<IValidator> getAfterValidators()
public void setFormat(IFormat format)
format
- public IFormat getFormat()
public void setMinLength(int length)
length
- public void setMaxLength(int length)
length
- public int getMaxLength()
public boolean isRequired()
IXUIRequiredSource
isRequired
in interface IXUIRequiredSource
public void setRequired(boolean required)
IXUIRequiredSource
setRequired
in interface IXUIRequiredSource
public java.lang.String getErrorMessage()
IXUIErrorSource
getErrorMessage
in interface IXUIErrorSource
public void setErrorMessage(java.lang.String msg)
IXUIErrorSource
setErrorMessage
in interface IXUIErrorSource
protected void handleErrorMessage(java.lang.String msg)
msg
- public boolean isNotFilled()
IXUIRequiredSource
isNotFilled
in interface IXUIRequiredSource
public java.lang.String getDataValue()
IFieldDataHolder
getDataValue
in interface IFieldDataHolder
getDataValue
in class XUISWTFieldDataWidget
public void setDataValue(java.lang.Object value)
IFieldDataHolder
setDataValue
in interface IFieldDataHolder
setDataValue
in class XUISWTFieldDataWidget
public void refresh()
XUISWTFieldDataWidget
refresh
in class XUISWTFieldDataWidget
public boolean isAutoClear()
public void setAutoClear(boolean autoClear)
autoClear
- public boolean isBorder()
public void setBorder(boolean border)
border
- public void handleXUIEvent(IXUIEventObject object)
IXUIEventListener
handleXUIEvent
in interface IXUIEventListener
handleXUIEvent
in class XUISWTFieldDataWidget
object
- XUI event objectprotected int getStyle()
XUISWTWidget
getStyle
in class XUISWTWidget
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |