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

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

public class NodeRuleEditor
extends java.lang.Object
implements RuleEditor

RuleEditor extension for displaying and editing node rule settings.

Version:
$Id: NodeRuleEditor.java,v 1.9 2005/11/29 14:20:52 ArndHouben Exp $
Author:
Arnd Houben

Constructor Summary
NodeRuleEditor(UIManager uiManager)
          Creates a new editor for displaying and modifying node 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

NodeRuleEditor

public NodeRuleEditor(UIManager uiManager)
Creates a new editor for displaying and modifying node 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 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 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.