|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.emf.ui.properties.util.BooleanPropertyHelper
public abstract class BooleanPropertyHelper
Helper class used by boolean-based property descriptors and cell editors. It provides for conversion from/to objects used by cell editors. It also provides abstract methods to set/get the actual property.
Constructor Summary | |
---|---|
BooleanPropertyHelper(org.eclipse.emf.ecore.EObject element)
Constructor |
Method Summary | |
---|---|
protected abstract boolean |
getBooleanValue()
Clients should overwrite to get the boolean value from the property. |
org.eclipse.emf.ecore.EObject |
getElement()
|
java.lang.Integer |
getValue()
Gets the Integer representation of the boolean property. |
boolean |
isCompatible(java.lang.Object obj)
Checks if the provided object is compatible with the boolean based property. |
protected abstract void |
setBooleanValue(boolean value)
Clients should overwrite to set the boolean value to the property. |
void |
setValue(java.lang.Object value)
Sets the value to the boolean property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BooleanPropertyHelper(org.eclipse.emf.ecore.EObject element)
element
- The element that owns the propertyMethod Detail |
---|
public boolean isCompatible(java.lang.Object obj)
obj
- Object to be checked
public void setValue(java.lang.Object value)
value
- Value to be setprotected abstract void setBooleanValue(boolean value)
value
- Boolean value to be setpublic java.lang.Integer getValue()
protected abstract boolean getBooleanValue()
public org.eclipse.emf.ecore.EObject getElement()
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.