com.tensegrity.generic.attribute
Class CustomAttributeEditorEnvironment

java.lang.Object
  extended bycom.tensegrity.generic.attribute.CustomAttributeEditorEnvironment

public class CustomAttributeEditorEnvironment
extends java.lang.Object

This class provides information used by the CustomAttributeEditor to configure the component or dialog returned for editing.

Author:
BurkhardWick

Nested Class Summary
static interface CustomAttributeEditorEnvironment.Callback
          Callback for the CustomAttributeEditor to stop or cancel the editing in the AttributeEditorComponent
static class CustomAttributeEditorEnvironment.EditorRegion
          A simple structure to hold the region of the editor
 
Constructor Summary
CustomAttributeEditorEnvironment(CustomAttributeEditorEnvironment.Callback cb)
          Constructor
 
Method Summary
 void cancelEditing()
          Cancel the editing in the attribute editor
 java.lang.Object getAttributeEditorComponent()
          Returns the attribute editor component of this environment
 java.lang.Object getParentFrame()
          Returns the parent frame to use for dialogs
 CustomAttributeEditorEnvironment.EditorRegion getRegion()
          Returns the region of the edited cell component in the attribute editor
 java.lang.Object getUIManager()
          Returns the UIManager to use for resources
 boolean isEditing()
          Returns true, if the attribute editor is editing
 void setAttributeEditorComponent(java.lang.Object attributeEditorComponent)
          Sets the attribute editor component of this environment
 void setParentFrame(java.lang.Object parentFrame)
          Sets the parent frame to use for dialogs
 void setRegion(CustomAttributeEditorEnvironment.EditorRegion region)
          Sets the region of the edited cell component in the attribute editor
 void setUIManager(java.lang.Object uiManager)
          Sets the UIManager to use for resources
 void stopEditing()
          Stops the editing in the attribute editor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomAttributeEditorEnvironment

public CustomAttributeEditorEnvironment(CustomAttributeEditorEnvironment.Callback cb)
Constructor

Parameters:
cb - The callback to use when editing has to be canceled or stopped
Method Detail

getAttributeEditorComponent

public java.lang.Object getAttributeEditorComponent()
Returns the attribute editor component of this environment

Returns:
the attribute editor component of this environment

setAttributeEditorComponent

public void setAttributeEditorComponent(java.lang.Object attributeEditorComponent)
Sets the attribute editor component of this environment

Parameters:
attributeEditorComponent - the attribute editor component to set

getParentFrame

public java.lang.Object getParentFrame()
Returns the parent frame to use for dialogs

Returns:
the parent frame to use for dialogs

setParentFrame

public void setParentFrame(java.lang.Object parentFrame)
Sets the parent frame to use for dialogs

Parameters:
parentFrame - the parent frame to use for dialogs

getRegion

public CustomAttributeEditorEnvironment.EditorRegion getRegion()
Returns the region of the edited cell component in the attribute editor

Returns:
the region of the edited cell component in the attribute editor

setRegion

public void setRegion(CustomAttributeEditorEnvironment.EditorRegion region)
Sets the region of the edited cell component in the attribute editor

Parameters:
region - the region of the edited cell component in the attribute editor

stopEditing

public void stopEditing()
Stops the editing in the attribute editor


cancelEditing

public void cancelEditing()
Cancel the editing in the attribute editor


isEditing

public boolean isEditing()
Returns true, if the attribute editor is editing

Returns:
true, if the attribute editor is editing

getUIManager

public java.lang.Object getUIManager()
Returns the UIManager to use for resources

Returns:
the UIManager to use for resources

setUIManager

public void setUIManager(java.lang.Object uiManager)
Sets the UIManager to use for resources

Parameters:
uiManager - the UIManager to use for resources


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