/** * <copyright> * </copyright> * * $Id$ */ package org.eclipse.amalgam.tutorials.emf.droid.impl; import java.util.Collection; import org.eclipse.amalgam.tutorials.emf.droid.Action; import org.eclipse.amalgam.tutorials.emf.droid.AnyDrawableVA; import org.eclipse.amalgam.tutorials.emf.droid.AutoLinkKind; import org.eclipse.amalgam.tutorials.emf.droid.BooleanVA; import org.eclipse.amalgam.tutorials.emf.droid.CapitalizeKind; import org.eclipse.amalgam.tutorials.emf.droid.CheckBox; import org.eclipse.amalgam.tutorials.emf.droid.ColorVA; import org.eclipse.amalgam.tutorials.emf.droid.DimensionVA; import org.eclipse.amalgam.tutorials.emf.droid.DroidPackage; import org.eclipse.amalgam.tutorials.emf.droid.LayoutGravityKind; import org.eclipse.amalgam.tutorials.emf.droid.StringVA; import org.eclipse.amalgam.tutorials.emf.droid.TextStyleKind; import org.eclipse.amalgam.tutorials.emf.droid.TypefaceKind; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.EObjectImpl; import org.eclipse.emf.ecore.util.EDataTypeEList; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Check Box</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * <ul> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getName <em>Name</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getText <em>Text</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getTop <em>Top</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getLeft <em>Left</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getWidth <em>Width</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getHeight <em>Height</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getBackground <em>Background</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getClickable <em>Clickable</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getFadeScrollBars <em>Fade Scroll Bars</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getIsScrollContainer <em>Is Scroll Container</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getAutoLink <em>Auto Link</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getAutoText <em>Auto Text</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getCapitalize <em>Capitalize</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getDigits <em>Digits</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getEditable <em>Editable</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getGravity <em>Gravity</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getHint <em>Hint</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getNumeric <em>Numeric</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getPassword <em>Password</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getPhoneNumber <em>Phone Number</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getSingleLine <em>Single Line</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getTextColor <em>Text Color</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getTypeface <em>Typeface</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getTextSize <em>Text Size</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getTextStyle <em>Text Style</em>}</li> * <li>{@link org.eclipse.amalgam.tutorials.emf.droid.impl.CheckBoxImpl#getOnCheck <em>On Check</em>}</li> * </ul> * </p> * * @generated */ public class CheckBoxImpl extends EObjectImpl implements CheckBox { /** * The default value of the '{@link #getName() <em>Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getName() * @generated * @ordered */ protected static final String NAME_EDEFAULT = null; /** * The cached value of the '{@link #getName() <em>Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getName() * @generated * @ordered */ protected String name = NAME_EDEFAULT; /** * The cached value of the '{@link #getText() <em>Text</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getText() * @generated * @ordered */ protected StringVA text; /** * The cached value of the '{@link #getTop() <em>Top</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getTop() * @generated * @ordered */ protected DimensionVA top; /** * The cached value of the '{@link #getLeft() <em>Left</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getLeft() * @generated * @ordered */ protected DimensionVA left; /** * The cached value of the '{@link #getWidth() <em>Width</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getWidth() * @generated * @ordered */ protected DimensionVA width; /** * The cached value of the '{@link #getHeight() <em>Height</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getHeight() * @generated * @ordered */ protected DimensionVA height; /** * The cached value of the '{@link #getBackground() <em>Background</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getBackground() * @generated * @ordered */ protected AnyDrawableVA background; /** * The cached value of the '{@link #getClickable() <em>Clickable</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getClickable() * @generated * @ordered */ protected BooleanVA clickable; /** * The cached value of the '{@link #getFadeScrollBars() <em>Fade Scroll Bars</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getFadeScrollBars() * @generated * @ordered */ protected BooleanVA fadeScrollBars; /** * The cached value of the '{@link #getIsScrollContainer() <em>Is Scroll Container</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getIsScrollContainer() * @generated * @ordered */ protected BooleanVA isScrollContainer; /** * The default value of the '{@link #getAutoLink() <em>Auto Link</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getAutoLink() * @generated * @ordered */ protected static final AutoLinkKind AUTO_LINK_EDEFAULT = AutoLinkKind.NONE; /** * The cached value of the '{@link #getAutoLink() <em>Auto Link</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getAutoLink() * @generated * @ordered */ protected AutoLinkKind autoLink = AUTO_LINK_EDEFAULT; /** * The cached value of the '{@link #getAutoText() <em>Auto Text</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getAutoText() * @generated * @ordered */ protected BooleanVA autoText; /** * The default value of the '{@link #getCapitalize() <em>Capitalize</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getCapitalize() * @generated * @ordered */ protected static final CapitalizeKind CAPITALIZE_EDEFAULT = CapitalizeKind.NONE; /** * The cached value of the '{@link #getCapitalize() <em>Capitalize</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getCapitalize() * @generated * @ordered */ protected CapitalizeKind capitalize = CAPITALIZE_EDEFAULT; /** * The cached value of the '{@link #getDigits() <em>Digits</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getDigits() * @generated * @ordered */ protected StringVA digits; /** * The cached value of the '{@link #getEditable() <em>Editable</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getEditable() * @generated * @ordered */ protected BooleanVA editable; /** * The default value of the '{@link #getGravity() <em>Gravity</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getGravity() * @generated * @ordered */ protected static final LayoutGravityKind GRAVITY_EDEFAULT = LayoutGravityKind.TOP; /** * The cached value of the '{@link #getGravity() <em>Gravity</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getGravity() * @generated * @ordered */ protected LayoutGravityKind gravity = GRAVITY_EDEFAULT; /** * The cached value of the '{@link #getHint() <em>Hint</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getHint() * @generated * @ordered */ protected StringVA hint; /** * The cached value of the '{@link #getNumeric() <em>Numeric</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getNumeric() * @generated * @ordered */ protected BooleanVA numeric; /** * The cached value of the '{@link #getPassword() <em>Password</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getPassword() * @generated * @ordered */ protected BooleanVA password; /** * The cached value of the '{@link #getPhoneNumber() <em>Phone Number</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getPhoneNumber() * @generated * @ordered */ protected BooleanVA phoneNumber; /** * The cached value of the '{@link #getSingleLine() <em>Single Line</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getSingleLine() * @generated * @ordered */ protected BooleanVA singleLine; /** * The cached value of the '{@link #getTextColor() <em>Text Color</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getTextColor() * @generated * @ordered */ protected ColorVA textColor; /** * The default value of the '{@link #getTypeface() <em>Typeface</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getTypeface() * @generated * @ordered */ protected static final TypefaceKind TYPEFACE_EDEFAULT = TypefaceKind.NORMAL; /** * The cached value of the '{@link #getTypeface() <em>Typeface</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getTypeface() * @generated * @ordered */ protected TypefaceKind typeface = TYPEFACE_EDEFAULT; /** * The cached value of the '{@link #getTextSize() <em>Text Size</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getTextSize() * @generated * @ordered */ protected DimensionVA textSize; /** * The cached value of the '{@link #getTextStyle() <em>Text Style</em>}' attribute list. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getTextStyle() * @generated * @ordered */ protected EList<TextStyleKind> textStyle; /** * The cached value of the '{@link #getOnCheck() <em>On Check</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getOnCheck() * @generated * @ordered */ protected Action onCheck; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected CheckBoxImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return DroidPackage.eINSTANCE.getCheckBox(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getName() { return name; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setName(String newName) { String oldName = name; name = newName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__NAME, oldName, name)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public StringVA getText() { return text; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetText(StringVA newText, NotificationChain msgs) { StringVA oldText = text; text = newText; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__TEXT, oldText, newText); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setText(StringVA newText) { if (newText != text) { NotificationChain msgs = null; if (text != null) msgs = ((InternalEObject)text).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__TEXT, null, msgs); if (newText != null) msgs = ((InternalEObject)newText).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__TEXT, null, msgs); msgs = basicSetText(newText, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__TEXT, newText, newText)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public DimensionVA getTop() { return top; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetTop(DimensionVA newTop, NotificationChain msgs) { DimensionVA oldTop = top; top = newTop; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__TOP, oldTop, newTop); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setTop(DimensionVA newTop) { if (newTop != top) { NotificationChain msgs = null; if (top != null) msgs = ((InternalEObject)top).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__TOP, null, msgs); if (newTop != null) msgs = ((InternalEObject)newTop).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__TOP, null, msgs); msgs = basicSetTop(newTop, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__TOP, newTop, newTop)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public DimensionVA getLeft() { return left; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetLeft(DimensionVA newLeft, NotificationChain msgs) { DimensionVA oldLeft = left; left = newLeft; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__LEFT, oldLeft, newLeft); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setLeft(DimensionVA newLeft) { if (newLeft != left) { NotificationChain msgs = null; if (left != null) msgs = ((InternalEObject)left).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__LEFT, null, msgs); if (newLeft != null) msgs = ((InternalEObject)newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__LEFT, null, msgs); msgs = basicSetLeft(newLeft, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__LEFT, newLeft, newLeft)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public DimensionVA getWidth() { return width; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetWidth(DimensionVA newWidth, NotificationChain msgs) { DimensionVA oldWidth = width; width = newWidth; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__WIDTH, oldWidth, newWidth); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setWidth(DimensionVA newWidth) { if (newWidth != width) { NotificationChain msgs = null; if (width != null) msgs = ((InternalEObject)width).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__WIDTH, null, msgs); if (newWidth != null) msgs = ((InternalEObject)newWidth).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__WIDTH, null, msgs); msgs = basicSetWidth(newWidth, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__WIDTH, newWidth, newWidth)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public DimensionVA getHeight() { return height; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetHeight(DimensionVA newHeight, NotificationChain msgs) { DimensionVA oldHeight = height; height = newHeight; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__HEIGHT, oldHeight, newHeight); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setHeight(DimensionVA newHeight) { if (newHeight != height) { NotificationChain msgs = null; if (height != null) msgs = ((InternalEObject)height).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__HEIGHT, null, msgs); if (newHeight != null) msgs = ((InternalEObject)newHeight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__HEIGHT, null, msgs); msgs = basicSetHeight(newHeight, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__HEIGHT, newHeight, newHeight)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public AnyDrawableVA getBackground() { return background; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetBackground(AnyDrawableVA newBackground, NotificationChain msgs) { AnyDrawableVA oldBackground = background; background = newBackground; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__BACKGROUND, oldBackground, newBackground); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setBackground(AnyDrawableVA newBackground) { if (newBackground != background) { NotificationChain msgs = null; if (background != null) msgs = ((InternalEObject)background).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__BACKGROUND, null, msgs); if (newBackground != null) msgs = ((InternalEObject)newBackground).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__BACKGROUND, null, msgs); msgs = basicSetBackground(newBackground, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__BACKGROUND, newBackground, newBackground)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public BooleanVA getClickable() { return clickable; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetClickable(BooleanVA newClickable, NotificationChain msgs) { BooleanVA oldClickable = clickable; clickable = newClickable; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__CLICKABLE, oldClickable, newClickable); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setClickable(BooleanVA newClickable) { if (newClickable != clickable) { NotificationChain msgs = null; if (clickable != null) msgs = ((InternalEObject)clickable).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__CLICKABLE, null, msgs); if (newClickable != null) msgs = ((InternalEObject)newClickable).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__CLICKABLE, null, msgs); msgs = basicSetClickable(newClickable, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__CLICKABLE, newClickable, newClickable)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public BooleanVA getFadeScrollBars() { return fadeScrollBars; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetFadeScrollBars(BooleanVA newFadeScrollBars, NotificationChain msgs) { BooleanVA oldFadeScrollBars = fadeScrollBars; fadeScrollBars = newFadeScrollBars; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__FADE_SCROLL_BARS, oldFadeScrollBars, newFadeScrollBars); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setFadeScrollBars(BooleanVA newFadeScrollBars) { if (newFadeScrollBars != fadeScrollBars) { NotificationChain msgs = null; if (fadeScrollBars != null) msgs = ((InternalEObject)fadeScrollBars).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__FADE_SCROLL_BARS, null, msgs); if (newFadeScrollBars != null) msgs = ((InternalEObject)newFadeScrollBars).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__FADE_SCROLL_BARS, null, msgs); msgs = basicSetFadeScrollBars(newFadeScrollBars, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__FADE_SCROLL_BARS, newFadeScrollBars, newFadeScrollBars)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public BooleanVA getIsScrollContainer() { return isScrollContainer; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetIsScrollContainer(BooleanVA newIsScrollContainer, NotificationChain msgs) { BooleanVA oldIsScrollContainer = isScrollContainer; isScrollContainer = newIsScrollContainer; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__IS_SCROLL_CONTAINER, oldIsScrollContainer, newIsScrollContainer); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setIsScrollContainer(BooleanVA newIsScrollContainer) { if (newIsScrollContainer != isScrollContainer) { NotificationChain msgs = null; if (isScrollContainer != null) msgs = ((InternalEObject)isScrollContainer).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__IS_SCROLL_CONTAINER, null, msgs); if (newIsScrollContainer != null) msgs = ((InternalEObject)newIsScrollContainer).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__IS_SCROLL_CONTAINER, null, msgs); msgs = basicSetIsScrollContainer(newIsScrollContainer, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__IS_SCROLL_CONTAINER, newIsScrollContainer, newIsScrollContainer)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public AutoLinkKind getAutoLink() { return autoLink; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setAutoLink(AutoLinkKind newAutoLink) { AutoLinkKind oldAutoLink = autoLink; autoLink = newAutoLink == null ? AUTO_LINK_EDEFAULT : newAutoLink; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__AUTO_LINK, oldAutoLink, autoLink)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public BooleanVA getAutoText() { return autoText; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetAutoText(BooleanVA newAutoText, NotificationChain msgs) { BooleanVA oldAutoText = autoText; autoText = newAutoText; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__AUTO_TEXT, oldAutoText, newAutoText); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setAutoText(BooleanVA newAutoText) { if (newAutoText != autoText) { NotificationChain msgs = null; if (autoText != null) msgs = ((InternalEObject)autoText).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__AUTO_TEXT, null, msgs); if (newAutoText != null) msgs = ((InternalEObject)newAutoText).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__AUTO_TEXT, null, msgs); msgs = basicSetAutoText(newAutoText, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__AUTO_TEXT, newAutoText, newAutoText)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public CapitalizeKind getCapitalize() { return capitalize; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setCapitalize(CapitalizeKind newCapitalize) { CapitalizeKind oldCapitalize = capitalize; capitalize = newCapitalize == null ? CAPITALIZE_EDEFAULT : newCapitalize; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__CAPITALIZE, oldCapitalize, capitalize)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public StringVA getDigits() { return digits; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetDigits(StringVA newDigits, NotificationChain msgs) { StringVA oldDigits = digits; digits = newDigits; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__DIGITS, oldDigits, newDigits); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setDigits(StringVA newDigits) { if (newDigits != digits) { NotificationChain msgs = null; if (digits != null) msgs = ((InternalEObject)digits).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__DIGITS, null, msgs); if (newDigits != null) msgs = ((InternalEObject)newDigits).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__DIGITS, null, msgs); msgs = basicSetDigits(newDigits, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__DIGITS, newDigits, newDigits)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public BooleanVA getEditable() { return editable; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetEditable(BooleanVA newEditable, NotificationChain msgs) { BooleanVA oldEditable = editable; editable = newEditable; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__EDITABLE, oldEditable, newEditable); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setEditable(BooleanVA newEditable) { if (newEditable != editable) { NotificationChain msgs = null; if (editable != null) msgs = ((InternalEObject)editable).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__EDITABLE, null, msgs); if (newEditable != null) msgs = ((InternalEObject)newEditable).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__EDITABLE, null, msgs); msgs = basicSetEditable(newEditable, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__EDITABLE, newEditable, newEditable)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public LayoutGravityKind getGravity() { return gravity; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setGravity(LayoutGravityKind newGravity) { LayoutGravityKind oldGravity = gravity; gravity = newGravity == null ? GRAVITY_EDEFAULT : newGravity; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__GRAVITY, oldGravity, gravity)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public StringVA getHint() { return hint; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetHint(StringVA newHint, NotificationChain msgs) { StringVA oldHint = hint; hint = newHint; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__HINT, oldHint, newHint); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setHint(StringVA newHint) { if (newHint != hint) { NotificationChain msgs = null; if (hint != null) msgs = ((InternalEObject)hint).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__HINT, null, msgs); if (newHint != null) msgs = ((InternalEObject)newHint).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__HINT, null, msgs); msgs = basicSetHint(newHint, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__HINT, newHint, newHint)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public BooleanVA getNumeric() { return numeric; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetNumeric(BooleanVA newNumeric, NotificationChain msgs) { BooleanVA oldNumeric = numeric; numeric = newNumeric; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__NUMERIC, oldNumeric, newNumeric); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setNumeric(BooleanVA newNumeric) { if (newNumeric != numeric) { NotificationChain msgs = null; if (numeric != null) msgs = ((InternalEObject)numeric).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__NUMERIC, null, msgs); if (newNumeric != null) msgs = ((InternalEObject)newNumeric).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__NUMERIC, null, msgs); msgs = basicSetNumeric(newNumeric, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__NUMERIC, newNumeric, newNumeric)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public BooleanVA getPassword() { return password; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetPassword(BooleanVA newPassword, NotificationChain msgs) { BooleanVA oldPassword = password; password = newPassword; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__PASSWORD, oldPassword, newPassword); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setPassword(BooleanVA newPassword) { if (newPassword != password) { NotificationChain msgs = null; if (password != null) msgs = ((InternalEObject)password).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__PASSWORD, null, msgs); if (newPassword != null) msgs = ((InternalEObject)newPassword).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__PASSWORD, null, msgs); msgs = basicSetPassword(newPassword, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__PASSWORD, newPassword, newPassword)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public BooleanVA getPhoneNumber() { return phoneNumber; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetPhoneNumber(BooleanVA newPhoneNumber, NotificationChain msgs) { BooleanVA oldPhoneNumber = phoneNumber; phoneNumber = newPhoneNumber; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__PHONE_NUMBER, oldPhoneNumber, newPhoneNumber); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setPhoneNumber(BooleanVA newPhoneNumber) { if (newPhoneNumber != phoneNumber) { NotificationChain msgs = null; if (phoneNumber != null) msgs = ((InternalEObject)phoneNumber).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__PHONE_NUMBER, null, msgs); if (newPhoneNumber != null) msgs = ((InternalEObject)newPhoneNumber).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__PHONE_NUMBER, null, msgs); msgs = basicSetPhoneNumber(newPhoneNumber, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__PHONE_NUMBER, newPhoneNumber, newPhoneNumber)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public BooleanVA getSingleLine() { return singleLine; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetSingleLine(BooleanVA newSingleLine, NotificationChain msgs) { BooleanVA oldSingleLine = singleLine; singleLine = newSingleLine; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__SINGLE_LINE, oldSingleLine, newSingleLine); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setSingleLine(BooleanVA newSingleLine) { if (newSingleLine != singleLine) { NotificationChain msgs = null; if (singleLine != null) msgs = ((InternalEObject)singleLine).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__SINGLE_LINE, null, msgs); if (newSingleLine != null) msgs = ((InternalEObject)newSingleLine).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__SINGLE_LINE, null, msgs); msgs = basicSetSingleLine(newSingleLine, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__SINGLE_LINE, newSingleLine, newSingleLine)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ColorVA getTextColor() { return textColor; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetTextColor(ColorVA newTextColor, NotificationChain msgs) { ColorVA oldTextColor = textColor; textColor = newTextColor; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__TEXT_COLOR, oldTextColor, newTextColor); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setTextColor(ColorVA newTextColor) { if (newTextColor != textColor) { NotificationChain msgs = null; if (textColor != null) msgs = ((InternalEObject)textColor).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__TEXT_COLOR, null, msgs); if (newTextColor != null) msgs = ((InternalEObject)newTextColor).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__TEXT_COLOR, null, msgs); msgs = basicSetTextColor(newTextColor, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__TEXT_COLOR, newTextColor, newTextColor)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public TypefaceKind getTypeface() { return typeface; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setTypeface(TypefaceKind newTypeface) { TypefaceKind oldTypeface = typeface; typeface = newTypeface == null ? TYPEFACE_EDEFAULT : newTypeface; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__TYPEFACE, oldTypeface, typeface)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public DimensionVA getTextSize() { return textSize; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetTextSize(DimensionVA newTextSize, NotificationChain msgs) { DimensionVA oldTextSize = textSize; textSize = newTextSize; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__TEXT_SIZE, oldTextSize, newTextSize); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setTextSize(DimensionVA newTextSize) { if (newTextSize != textSize) { NotificationChain msgs = null; if (textSize != null) msgs = ((InternalEObject)textSize).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__TEXT_SIZE, null, msgs); if (newTextSize != null) msgs = ((InternalEObject)newTextSize).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__TEXT_SIZE, null, msgs); msgs = basicSetTextSize(newTextSize, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__TEXT_SIZE, newTextSize, newTextSize)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EList<TextStyleKind> getTextStyle() { if (textStyle == null) { textStyle = new EDataTypeEList<TextStyleKind>(TextStyleKind.class, this, DroidPackage.CHECK_BOX__TEXT_STYLE); } return textStyle; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Action getOnCheck() { return onCheck; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetOnCheck(Action newOnCheck, NotificationChain msgs) { Action oldOnCheck = onCheck; onCheck = newOnCheck; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__ON_CHECK, oldOnCheck, newOnCheck); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setOnCheck(Action newOnCheck) { if (newOnCheck != onCheck) { NotificationChain msgs = null; if (onCheck != null) msgs = ((InternalEObject)onCheck).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__ON_CHECK, null, msgs); if (newOnCheck != null) msgs = ((InternalEObject)newOnCheck).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DroidPackage.CHECK_BOX__ON_CHECK, null, msgs); msgs = basicSetOnCheck(newOnCheck, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroidPackage.CHECK_BOX__ON_CHECK, newOnCheck, newOnCheck)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case DroidPackage.CHECK_BOX__TEXT: return basicSetText(null, msgs); case DroidPackage.CHECK_BOX__TOP: return basicSetTop(null, msgs); case DroidPackage.CHECK_BOX__LEFT: return basicSetLeft(null, msgs); case DroidPackage.CHECK_BOX__WIDTH: return basicSetWidth(null, msgs); case DroidPackage.CHECK_BOX__HEIGHT: return basicSetHeight(null, msgs); case DroidPackage.CHECK_BOX__BACKGROUND: return basicSetBackground(null, msgs); case DroidPackage.CHECK_BOX__CLICKABLE: return basicSetClickable(null, msgs); case DroidPackage.CHECK_BOX__FADE_SCROLL_BARS: return basicSetFadeScrollBars(null, msgs); case DroidPackage.CHECK_BOX__IS_SCROLL_CONTAINER: return basicSetIsScrollContainer(null, msgs); case DroidPackage.CHECK_BOX__AUTO_TEXT: return basicSetAutoText(null, msgs); case DroidPackage.CHECK_BOX__DIGITS: return basicSetDigits(null, msgs); case DroidPackage.CHECK_BOX__EDITABLE: return basicSetEditable(null, msgs); case DroidPackage.CHECK_BOX__HINT: return basicSetHint(null, msgs); case DroidPackage.CHECK_BOX__NUMERIC: return basicSetNumeric(null, msgs); case DroidPackage.CHECK_BOX__PASSWORD: return basicSetPassword(null, msgs); case DroidPackage.CHECK_BOX__PHONE_NUMBER: return basicSetPhoneNumber(null, msgs); case DroidPackage.CHECK_BOX__SINGLE_LINE: return basicSetSingleLine(null, msgs); case DroidPackage.CHECK_BOX__TEXT_COLOR: return basicSetTextColor(null, msgs); case DroidPackage.CHECK_BOX__TEXT_SIZE: return basicSetTextSize(null, msgs); case DroidPackage.CHECK_BOX__ON_CHECK: return basicSetOnCheck(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DroidPackage.CHECK_BOX__NAME: return getName(); case DroidPackage.CHECK_BOX__TEXT: return getText(); case DroidPackage.CHECK_BOX__TOP: return getTop(); case DroidPackage.CHECK_BOX__LEFT: return getLeft(); case DroidPackage.CHECK_BOX__WIDTH: return getWidth(); case DroidPackage.CHECK_BOX__HEIGHT: return getHeight(); case DroidPackage.CHECK_BOX__BACKGROUND: return getBackground(); case DroidPackage.CHECK_BOX__CLICKABLE: return getClickable(); case DroidPackage.CHECK_BOX__FADE_SCROLL_BARS: return getFadeScrollBars(); case DroidPackage.CHECK_BOX__IS_SCROLL_CONTAINER: return getIsScrollContainer(); case DroidPackage.CHECK_BOX__AUTO_LINK: return getAutoLink(); case DroidPackage.CHECK_BOX__AUTO_TEXT: return getAutoText(); case DroidPackage.CHECK_BOX__CAPITALIZE: return getCapitalize(); case DroidPackage.CHECK_BOX__DIGITS: return getDigits(); case DroidPackage.CHECK_BOX__EDITABLE: return getEditable(); case DroidPackage.CHECK_BOX__GRAVITY: return getGravity(); case DroidPackage.CHECK_BOX__HINT: return getHint(); case DroidPackage.CHECK_BOX__NUMERIC: return getNumeric(); case DroidPackage.CHECK_BOX__PASSWORD: return getPassword(); case DroidPackage.CHECK_BOX__PHONE_NUMBER: return getPhoneNumber(); case DroidPackage.CHECK_BOX__SINGLE_LINE: return getSingleLine(); case DroidPackage.CHECK_BOX__TEXT_COLOR: return getTextColor(); case DroidPackage.CHECK_BOX__TYPEFACE: return getTypeface(); case DroidPackage.CHECK_BOX__TEXT_SIZE: return getTextSize(); case DroidPackage.CHECK_BOX__TEXT_STYLE: return getTextStyle(); case DroidPackage.CHECK_BOX__ON_CHECK: return getOnCheck(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case DroidPackage.CHECK_BOX__NAME: setName((String)newValue); return; case DroidPackage.CHECK_BOX__TEXT: setText((StringVA)newValue); return; case DroidPackage.CHECK_BOX__TOP: setTop((DimensionVA)newValue); return; case DroidPackage.CHECK_BOX__LEFT: setLeft((DimensionVA)newValue); return; case DroidPackage.CHECK_BOX__WIDTH: setWidth((DimensionVA)newValue); return; case DroidPackage.CHECK_BOX__HEIGHT: setHeight((DimensionVA)newValue); return; case DroidPackage.CHECK_BOX__BACKGROUND: setBackground((AnyDrawableVA)newValue); return; case DroidPackage.CHECK_BOX__CLICKABLE: setClickable((BooleanVA)newValue); return; case DroidPackage.CHECK_BOX__FADE_SCROLL_BARS: setFadeScrollBars((BooleanVA)newValue); return; case DroidPackage.CHECK_BOX__IS_SCROLL_CONTAINER: setIsScrollContainer((BooleanVA)newValue); return; case DroidPackage.CHECK_BOX__AUTO_LINK: setAutoLink((AutoLinkKind)newValue); return; case DroidPackage.CHECK_BOX__AUTO_TEXT: setAutoText((BooleanVA)newValue); return; case DroidPackage.CHECK_BOX__CAPITALIZE: setCapitalize((CapitalizeKind)newValue); return; case DroidPackage.CHECK_BOX__DIGITS: setDigits((StringVA)newValue); return; case DroidPackage.CHECK_BOX__EDITABLE: setEditable((BooleanVA)newValue); return; case DroidPackage.CHECK_BOX__GRAVITY: setGravity((LayoutGravityKind)newValue); return; case DroidPackage.CHECK_BOX__HINT: setHint((StringVA)newValue); return; case DroidPackage.CHECK_BOX__NUMERIC: setNumeric((BooleanVA)newValue); return; case DroidPackage.CHECK_BOX__PASSWORD: setPassword((BooleanVA)newValue); return; case DroidPackage.CHECK_BOX__PHONE_NUMBER: setPhoneNumber((BooleanVA)newValue); return; case DroidPackage.CHECK_BOX__SINGLE_LINE: setSingleLine((BooleanVA)newValue); return; case DroidPackage.CHECK_BOX__TEXT_COLOR: setTextColor((ColorVA)newValue); return; case DroidPackage.CHECK_BOX__TYPEFACE: setTypeface((TypefaceKind)newValue); return; case DroidPackage.CHECK_BOX__TEXT_SIZE: setTextSize((DimensionVA)newValue); return; case DroidPackage.CHECK_BOX__TEXT_STYLE: getTextStyle().clear(); getTextStyle().addAll((Collection<? extends TextStyleKind>)newValue); return; case DroidPackage.CHECK_BOX__ON_CHECK: setOnCheck((Action)newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case DroidPackage.CHECK_BOX__NAME: setName(NAME_EDEFAULT); return; case DroidPackage.CHECK_BOX__TEXT: setText((StringVA)null); return; case DroidPackage.CHECK_BOX__TOP: setTop((DimensionVA)null); return; case DroidPackage.CHECK_BOX__LEFT: setLeft((DimensionVA)null); return; case DroidPackage.CHECK_BOX__WIDTH: setWidth((DimensionVA)null); return; case DroidPackage.CHECK_BOX__HEIGHT: setHeight((DimensionVA)null); return; case DroidPackage.CHECK_BOX__BACKGROUND: setBackground((AnyDrawableVA)null); return; case DroidPackage.CHECK_BOX__CLICKABLE: setClickable((BooleanVA)null); return; case DroidPackage.CHECK_BOX__FADE_SCROLL_BARS: setFadeScrollBars((BooleanVA)null); return; case DroidPackage.CHECK_BOX__IS_SCROLL_CONTAINER: setIsScrollContainer((BooleanVA)null); return; case DroidPackage.CHECK_BOX__AUTO_LINK: setAutoLink(AUTO_LINK_EDEFAULT); return; case DroidPackage.CHECK_BOX__AUTO_TEXT: setAutoText((BooleanVA)null); return; case DroidPackage.CHECK_BOX__CAPITALIZE: setCapitalize(CAPITALIZE_EDEFAULT); return; case DroidPackage.CHECK_BOX__DIGITS: setDigits((StringVA)null); return; case DroidPackage.CHECK_BOX__EDITABLE: setEditable((BooleanVA)null); return; case DroidPackage.CHECK_BOX__GRAVITY: setGravity(GRAVITY_EDEFAULT); return; case DroidPackage.CHECK_BOX__HINT: setHint((StringVA)null); return; case DroidPackage.CHECK_BOX__NUMERIC: setNumeric((BooleanVA)null); return; case DroidPackage.CHECK_BOX__PASSWORD: setPassword((BooleanVA)null); return; case DroidPackage.CHECK_BOX__PHONE_NUMBER: setPhoneNumber((BooleanVA)null); return; case DroidPackage.CHECK_BOX__SINGLE_LINE: setSingleLine((BooleanVA)null); return; case DroidPackage.CHECK_BOX__TEXT_COLOR: setTextColor((ColorVA)null); return; case DroidPackage.CHECK_BOX__TYPEFACE: setTypeface(TYPEFACE_EDEFAULT); return; case DroidPackage.CHECK_BOX__TEXT_SIZE: setTextSize((DimensionVA)null); return; case DroidPackage.CHECK_BOX__TEXT_STYLE: getTextStyle().clear(); return; case DroidPackage.CHECK_BOX__ON_CHECK: setOnCheck((Action)null); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case DroidPackage.CHECK_BOX__NAME: return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); case DroidPackage.CHECK_BOX__TEXT: return text != null; case DroidPackage.CHECK_BOX__TOP: return top != null; case DroidPackage.CHECK_BOX__LEFT: return left != null; case DroidPackage.CHECK_BOX__WIDTH: return width != null; case DroidPackage.CHECK_BOX__HEIGHT: return height != null; case DroidPackage.CHECK_BOX__BACKGROUND: return background != null; case DroidPackage.CHECK_BOX__CLICKABLE: return clickable != null; case DroidPackage.CHECK_BOX__FADE_SCROLL_BARS: return fadeScrollBars != null; case DroidPackage.CHECK_BOX__IS_SCROLL_CONTAINER: return isScrollContainer != null; case DroidPackage.CHECK_BOX__AUTO_LINK: return autoLink != AUTO_LINK_EDEFAULT; case DroidPackage.CHECK_BOX__AUTO_TEXT: return autoText != null; case DroidPackage.CHECK_BOX__CAPITALIZE: return capitalize != CAPITALIZE_EDEFAULT; case DroidPackage.CHECK_BOX__DIGITS: return digits != null; case DroidPackage.CHECK_BOX__EDITABLE: return editable != null; case DroidPackage.CHECK_BOX__GRAVITY: return gravity != GRAVITY_EDEFAULT; case DroidPackage.CHECK_BOX__HINT: return hint != null; case DroidPackage.CHECK_BOX__NUMERIC: return numeric != null; case DroidPackage.CHECK_BOX__PASSWORD: return password != null; case DroidPackage.CHECK_BOX__PHONE_NUMBER: return phoneNumber != null; case DroidPackage.CHECK_BOX__SINGLE_LINE: return singleLine != null; case DroidPackage.CHECK_BOX__TEXT_COLOR: return textColor != null; case DroidPackage.CHECK_BOX__TYPEFACE: return typeface != TYPEFACE_EDEFAULT; case DroidPackage.CHECK_BOX__TEXT_SIZE: return textSize != null; case DroidPackage.CHECK_BOX__TEXT_STYLE: return textStyle != null && !textStyle.isEmpty(); case DroidPackage.CHECK_BOX__ON_CHECK: return onCheck != null; } return super.eIsSet(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (name: "); result.append(name); result.append(", autoLink: "); result.append(autoLink); result.append(", capitalize: "); result.append(capitalize); result.append(", gravity: "); result.append(gravity); result.append(", typeface: "); result.append(typeface); result.append(", textStyle: "); result.append(textStyle); result.append(')'); return result.toString(); } } //CheckBoxImpl