Business Objects
Quark Platform Documentation
Version 1.7.0_0
Business Objects

org.openquark.gems.client.valueentry
Class AlgebraicValueEditor.AlgebraicValueEditorProvider

java.lang.Object
  extended by org.openquark.gems.client.valueentry.ValueEditorProvider<AlgebraicValueEditor>
      extended by org.openquark.gems.client.valueentry.AlgebraicValueEditor.AlgebraicValueEditorProvider
Enclosing class:
AlgebraicValueEditor

public static class AlgebraicValueEditor.AlgebraicValueEditorProvider
extends ValueEditorProvider<AlgebraicValueEditor>

A custom value editor provider for the AlgebraicValueEditor.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.openquark.gems.client.valueentry.ValueEditorProvider
ValueEditorProvider.SupportInfo
 
Constructor Summary
AlgebraicValueEditor.AlgebraicValueEditorProvider(ValueEditorManager valueEditorManager)
           
 
Method Summary
 boolean canHandleValue(ValueNode valueNode, ValueEditorProvider.SupportInfo providerSupportInfo)
          Checks if the value editor provided by this provider can handle a given value node.
 AlgebraicValueEditor getEditorInstance(ValueEditorHierarchyManager valueEditorHierarchyManager, ValueNode valueNode)
          Returns an instance of the provided editor.
 
Methods inherited from class org.openquark.gems.client.valueentry.ValueEditorProvider
getDragPointHandler, getEditorInstance, getEditorInstance, getPerspective, getValueEditorManager, usableForOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlgebraicValueEditor.AlgebraicValueEditorProvider

public AlgebraicValueEditor.AlgebraicValueEditorProvider(ValueEditorManager valueEditorManager)
Method Detail

canHandleValue

public boolean canHandleValue(ValueNode valueNode,
                              ValueEditorProvider.SupportInfo providerSupportInfo)
Checks if the value editor provided by this provider can handle a given value node.

Specified by:
canHandleValue in class ValueEditorProvider<AlgebraicValueEditor>
Parameters:
valueNode - the value node to check
providerSupportInfo - the support info object threaded through nested calls.
Returns:
true if the provider can handle the value node

getEditorInstance

public AlgebraicValueEditor getEditorInstance(ValueEditorHierarchyManager valueEditorHierarchyManager,
                                              ValueNode valueNode)
Returns an instance of the provided editor. A new instance will be returned every time this method is called and null will never be returned. This method will take construct the value editor and set it's value node, however, it will not call setInitialValue() on the editor. Technically this method should be called after the editor has become the current editor meaning it should be called by the value editor hierarchy manager which determines the current editor.

Specified by:
getEditorInstance in class ValueEditorProvider<AlgebraicValueEditor>
Returns:
ValueEditor

Business Objects
Quark Platform Documentation
Version 1.7.0_0
Business Objects

Copyright © 2007 Business Objects. All rights reserved.