com.tensegrity.gui.swt.dialog.ruleeditor
Class GraphRuleEditor

java.lang.Object
  extended bycom.tensegrity.gui.swt.dialog.ruleeditor.GraphRuleEditor
All Implemented Interfaces:
RuleEditor

public class GraphRuleEditor
extends java.lang.Object
implements RuleEditor

RuleEditor extension for displaying and editing graph rule settings.

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

Constructor Summary
GraphRuleEditor(UIManager uiManager)
          Creates a new editor for displaying and modifying graph rules
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphRuleEditor

public GraphRuleEditor(UIManager uiManager)
Creates a new editor for displaying and modifying graph rules

Parameters:
uiManager - used for localization
Method Detail

createContent

public void createContent(org.eclipse.swt.widgets.Composite parent)
Description copied from interface: RuleEditor
Creates the editor gui to display and modify current rule settings

Specified by:
createContent in interface RuleEditor
Parameters:
parent - the Composite to add this editor to

set

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

Specified by:
set in interface RuleEditor
Parameters:
rule - an arbitrary rule

storeRule

public final boolean storeRule()
Description copied from interface: RuleEditor
Stores the currently settings to the used rule.

Specified by:
storeRule in interface RuleEditor
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.