org.eclipse.emf.ecp.edit.internal.swt.controls
Class AbstractTextControl

java.lang.Object
  extended by org.eclipse.emf.ecp.edit.spi.ECPAbstractControl
      extended by org.eclipse.emf.ecp.edit.internal.swt.util.SWTControl
          extended by org.eclipse.emf.ecp.edit.internal.swt.controls.SingleControl
              extended by org.eclipse.emf.ecp.edit.internal.swt.controls.AbstractTextControl
All Implemented Interfaces:
ECPControlSWT
Direct Known Subclasses:
NumericalControl, StringControl, TemplateColorControl, TemplateIconControl, XmlDateControlText

public abstract class AbstractTextControl
extends SingleControl

This abstract class is used as a common superclass for all widgets that use a Text widget.

Author:
Eugen Neufeld

Constructor Summary
AbstractTextControl()
           
 
Method Summary
 org.eclipse.core.databinding.Binding bindValue()
          Triggers the control to perform the databinding.
 void dispose()
          Disposes the control.
 org.eclipse.swt.widgets.Text getText()
           
 void setEditable(boolean isEditable)
          Sets the state of the widget to be either editable or not.
 
Methods inherited from class org.eclipse.emf.ecp.edit.internal.swt.controls.SingleControl
handleValidation, resetValidation, showLabel
 
Methods inherited from class org.eclipse.emf.ecp.edit.internal.swt.util.SWTControl
createControl, createControls, setObservableValue
 
Methods inherited from class org.eclipse.emf.ecp.edit.spi.ECPAbstractControl
getDataBindingContext, getFirstSetting, getFirstStructuralFeature, getItemPropertyDescriptor, init, setEmbedded
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTextControl

public AbstractTextControl()
Method Detail

setEditable

public void setEditable(boolean isEditable)
Sets the state of the widget to be either editable or not.

Overrides:
setEditable in class ECPAbstractControl
Parameters:
isEditable - whether to set the widget editable

bindValue

public org.eclipse.core.databinding.Binding bindValue()
Description copied from class: SWTControl
Triggers the control to perform the databinding.

Returns:
The Binding

dispose

public void dispose()
Description copied from class: SingleControl
Disposes the control. A control which needs specific dispose handling must still call super.dispose.

Overrides:
dispose in class SingleControl

getText

public org.eclipse.swt.widgets.Text getText()
Returns:
the text


Copyright © 2014. All Rights Reserved.