TPTP 4.1.0 Platform Project
Public API Specification

org.eclipse.tptp.platform.analysis.util.ui.propertysheet.impl
Class AbstractPropertyCell

java.lang.Object
  extended byorg.eclipse.tptp.platform.analysis.util.ui.propertysheet.impl.AbstractPropertyCell
All Implemented Interfaces:
IPropertyCell
Direct Known Subclasses:
AbstractBrowsePropertyCell, CheckboxPropertyCell, ComboPropertyCell, LabelPropertyCell, ListPropertyCell, TextFieldPropertyCell

public abstract class AbstractPropertyCell
extends java.lang.Object
implements IPropertyCell

AbstractPropertyCell


Constructor Summary
AbstractPropertyCell()
           
 
Method Summary
protected abstract  org.eclipse.swt.widgets.Control create(org.eclipse.swt.widgets.Composite parent)
           
 void createComponent(org.eclipse.swt.widgets.Composite parent, IPropertyDescriptor pd, IPropertyModel model)
          Create the component.
 void dispose()
          Dispose the object.
protected  void error(java.lang.String msg, java.lang.Throwable err)
           
protected  java.lang.String getAsText(java.lang.Object oValue)
           
 org.eclipse.swt.widgets.Control getComponent()
          Get the component.
protected  java.lang.Object getCurrentValue()
           
protected  org.eclipse.swt.graphics.Color getErrorColor(org.eclipse.swt.widgets.Control control)
           
protected  IPropertyModel getModel()
           
protected  org.eclipse.swt.graphics.Color getNoErrorBackgroundColor()
           
protected  IPropertySheet getParentSheet()
           
 IPropertyDescriptor getPropertyDescriptor()
          Get the property descriptor.
 boolean hasError()
          return the error flag.
 boolean isFilled()
          return the isFilled status.
protected  void noError()
           
 boolean requiresLabel()
          return the requiresLabel status.
protected  void setErrorComponentBackgroundColor(org.eclipse.swt.graphics.Color c)
           
 void setListener(IPropertyCellChangeListener cellListener)
          Set a listener.
 void setParentSheet(IPropertySheet sheet)
          Set the parent sheet.
protected abstract  void updateEditor(java.lang.Object oNewValue)
           
protected  void updateModel(java.lang.Object oNewValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPropertyCell

public AbstractPropertyCell()
Method Detail

createComponent

public final void createComponent(org.eclipse.swt.widgets.Composite parent,
                                  IPropertyDescriptor pd,
                                  IPropertyModel model)
Create the component.

Specified by:
createComponent in interface IPropertyCell
Parameters:
parent -
pd -
model -

getComponent

public final org.eclipse.swt.widgets.Control getComponent()
Get the component.

Specified by:
getComponent in interface IPropertyCell
Returns:

getPropertyDescriptor

public IPropertyDescriptor getPropertyDescriptor()
Get the property descriptor.

Specified by:
getPropertyDescriptor in interface IPropertyCell
Returns:
the IPropertyDescriptor

setParentSheet

public void setParentSheet(IPropertySheet sheet)
Set the parent sheet.

Specified by:
setParentSheet in interface IPropertyCell
Parameters:
sheet -

hasError

public boolean hasError()
return the error flag.

Specified by:
hasError in interface IPropertyCell
Returns:
hasError status

isFilled

public boolean isFilled()
return the isFilled status.

Specified by:
isFilled in interface IPropertyCell
Returns:
isFilled status

setListener

public void setListener(IPropertyCellChangeListener cellListener)
Set a listener.

Specified by:
setListener in interface IPropertyCell
Parameters:
cellListener -

requiresLabel

public boolean requiresLabel()
return the requiresLabel status.

Specified by:
requiresLabel in interface IPropertyCell
Returns:
requiresLabel status.

getModel

protected IPropertyModel getModel()

getCurrentValue

protected java.lang.Object getCurrentValue()

updateModel

protected void updateModel(java.lang.Object oNewValue)

updateEditor

protected abstract void updateEditor(java.lang.Object oNewValue)

create

protected abstract org.eclipse.swt.widgets.Control create(org.eclipse.swt.widgets.Composite parent)

error

protected void error(java.lang.String msg,
                     java.lang.Throwable err)

noError

protected void noError()

getParentSheet

protected IPropertySheet getParentSheet()

getAsText

protected java.lang.String getAsText(java.lang.Object oValue)

setErrorComponentBackgroundColor

protected void setErrorComponentBackgroundColor(org.eclipse.swt.graphics.Color c)

getNoErrorBackgroundColor

protected org.eclipse.swt.graphics.Color getNoErrorBackgroundColor()

getErrorColor

protected org.eclipse.swt.graphics.Color getErrorColor(org.eclipse.swt.widgets.Control control)

dispose

public void dispose()
Dispose the object.

Specified by:
dispose in interface IPropertyCell

TPTP 4.1.0 Platform Project
Public API Specification