IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

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

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.AbstractXUIButton
              extended by com.ibm.btt.rcp.xui.widgets.XUIButton
All Implemented Interfaces:
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","image"})
@General(value={"id","tabIndex","disableInError","helpId"})
@Injection(value={"initializers","actions"})
public class XUIButton
extends AbstractXUIButton

XML UI Button Widget


Field Summary
 
Fields inherited from class com.ibm.btt.rcp.xui.widgets.AbstractXUIButton
alignment
 
Fields inherited from class com.ibm.btt.rcp.xui.widgets.XUISWTWidget
background, focusLost, foreground
 
Constructor Summary
XUIButton()
           
 
Method Summary
 boolean getInError()
          Get if the view is in error status.
 void handleXUIEvent(IXUIEventObject object)
          In BTT version6.1.1, XUIButton is the ONLY widget which handles the event of XUIEventTypes.OK_KEY_TRIGGERED
 boolean isDisableInError()
          If disable in error is true, when error occurs, this button will be disabled.
 boolean isEnableOKKey()
          If it is true, when the OKKey is pressed, this Button will response by executing its user defined actions.
protected  void refreshControlStatus()
          Refresh Button status: enable or disable
 void setDisableInError(boolean value)
          If disable in error is true, when error occurs, this button will be disabled.
 void setEnableOKKey(boolean enableOKKey)
          If it is true, when the OKKey is pressed, this Button will response by executing its user defined actions.
 void setInError(boolean inError)
          Set if the view is in error status.
 
Methods inherited from class com.ibm.btt.rcp.xui.widgets.AbstractXUIButton
dispose, getAlignment, getStyle, getWidget, getWidgetType, setAlignment
 
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, setHelpId, setId, setInitializers, setParent, setTabIndex, setXUIView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XUIButton

public XUIButton()
Method Detail

setDisableInError

public void setDisableInError(boolean value)
If disable in error is true, when error occurs, this button will be disabled.

Parameters:
value -

isDisableInError

public boolean isDisableInError()
If disable in error is true, when error occurs, this button will be disabled.

Returns:

getInError

public boolean getInError()
Get if the view is in error status.

Returns:

setInError

public void setInError(boolean inError)
Set if the view is in error status.

Parameters:
inError -

handleXUIEvent

public void handleXUIEvent(IXUIEventObject object)
In BTT version6.1.1, XUIButton is the ONLY widget which handles the event of XUIEventTypes.OK_KEY_TRIGGERED

Specified by:
handleXUIEvent in interface IXUIEventListener
Overrides:
handleXUIEvent in class XUIWidget
Parameters:
object - XUI event object

refreshControlStatus

protected void refreshControlStatus()
Refresh Button status: enable or disable


isEnableOKKey

public boolean isEnableOKKey()
If it is true, when the OKKey is pressed, this Button will response by executing its user defined actions.

Returns:

setEnableOKKey

public void setEnableOKKey(boolean enableOKKey)
If it is true, when the OKKey is pressed, this Button will response by executing its user defined actions.

Parameters:
enableOKKey -

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2010