com.bbn.swede.editor.visualeditors.restriction
Class RestrictionEditor

java.lang.Object
  extended byEditorPart
      extended bycom.bbn.swede.editor.OWLVisualEditor
          extended bycom.bbn.swede.editor.visualeditors.restriction.RestrictionEditor
All Implemented Interfaces:
IOASTChangeListener

public class RestrictionEditor
extends OWLVisualEditor

This class implements the visual restriction editor.

Author:
aperezlo
See Also:
Serialized Form

Field Summary
(package private) static int CLASS_NAME_COLUMN
          Index of the class name column.
(package private) static String[] COLUMN_NAMES_ARRAY
          Column name strings.
(package private) static int PROPERTY_NAME_COLUMN
          Index of the property name column.
(package private) static int RESTRICTION_ORIGIN_COLUMN
          Index of the restriction origin column.
(package private) static int RESTRICTION_TYPE_COLUMN
          Index of the restriction type column.
(package private) static int RESTRICTION_VALUE_COLUMN
          Index of the restriction value column.
 
Constructor Summary
RestrictionEditor()
          Default constructor.
 
Method Summary
 void createPartControl(Composite parent)
           
protected  void createRestrictionTable(Composite parent, FormToolkit tool)
          Initializes the restriction editor table tree.
 void oastChanged(OASTEvent event)
          This method is called automatically after the OAST is changed.
 void setFocus()
           
 
Methods inherited from class com.bbn.swede.editor.OWLVisualEditor
addSelectionChangedListener, doSave, doSaveAs, getOAST, getSelection, init, isActivePage, isDirty, isSaveAsAllowed, removeSelectionChangedListener, setSelection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAME_COLUMN

static final int CLASS_NAME_COLUMN
Index of the class name column.

See Also:
Constant Field Values

PROPERTY_NAME_COLUMN

static final int PROPERTY_NAME_COLUMN
Index of the property name column.

See Also:
Constant Field Values

RESTRICTION_TYPE_COLUMN

static final int RESTRICTION_TYPE_COLUMN
Index of the restriction type column.

See Also:
Constant Field Values

RESTRICTION_VALUE_COLUMN

static final int RESTRICTION_VALUE_COLUMN
Index of the restriction value column.

See Also:
Constant Field Values

RESTRICTION_ORIGIN_COLUMN

static final int RESTRICTION_ORIGIN_COLUMN
Index of the restriction origin column.

See Also:
Constant Field Values

COLUMN_NAMES_ARRAY

static final String[] COLUMN_NAMES_ARRAY
Column name strings.

Constructor Detail

RestrictionEditor

public RestrictionEditor()
Default constructor.

Method Detail

createPartControl

public void createPartControl(Composite parent)

oastChanged

public void oastChanged(OASTEvent event)
Description copied from interface: IOASTChangeListener
This method is called automatically after the OAST is changed. When this is called, the nodes in event.getRemoved() are no longer in the tree, and the nodes in event.getInserted() have been placed in the tree at their proper positions.

Parameters:
event - Describes the change that was just made to the OAST.

createRestrictionTable

protected void createRestrictionTable(Composite parent,
                                      FormToolkit tool)
Initializes the restriction editor table tree.

Parameters:
parent - The parent control for the table
tool - The form tool kit

setFocus

public void setFocus()
Overrides:
setFocus in class OWLVisualEditor


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.