com.tensegrity.gui.swt.dialog.ruleeditor
Interface RuleEditor

All Known Implementing Classes:
EdgeRuleEditor, GraphRuleEditor, NodeRuleEditor

public interface RuleEditor

Describes the basic functionality of a general RuleEditor. Implementing classes are responsible for managing rules, i.e. they take care of the condition that the rule given by setRule() should match to the gui implemented by createContent().

Version:
$Id: RuleEditor.java,v 1.2 2005/08/24 09:03:07 ArndHouben Exp $
Author:
Arnd Houben

Method Summary
 void createContent(org.eclipse.swt.widgets.Composite parent)
          Creates the editor gui to display and modify current rule settings
 void set(Rule rule)
          Uses the given rule.
 boolean storeRule()
          Stores the currently settings to the used rule.
 

Method Detail

createContent

public void createContent(org.eclipse.swt.widgets.Composite parent)
Creates the editor gui to display and modify current rule settings

Parameters:
parent - the Composite to add this editor to

set

public void set(Rule rule)
Uses the given rule. NOTE: Implementing classes have to check that they can handle the given rule, i.e. gui and rule match together

Parameters:
rule - an arbitrary rule

storeRule

public boolean storeRule()
Stores the currently settings to the used rule.

Returns:
true if the settings could be stored successfully, false otherwise


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.