com.togethersoft.openapi.ide.inspector
Class IdeInspectorCompoundComponent

java.lang.Object
  |
  +--java.beans.FeatureDescriptor
        |
        +--com.togethersoft.openapi.ide.inspector.IdeInspectorComponent
              |
              +--com.togethersoft.openapi.ide.inspector.IdeInspectorCompoundComponent
Direct Known Subclasses:
TabbedCompoundComponent

public class IdeInspectorCompoundComponent
extends IdeInspectorComponent

Class IdeInspectorCompoundComponents represents an inspector component
that contains the other inspector components. For example, a tab pane is located inside the other tab. This component
contains its own internal inspector.

Author:
TogetherSoft
Since: Together 4.0
See Also: IdeInspector

Inner Class Summary
 private classIdeInspectorCompoundComponent.ModelPropertyNamesServiceImpl
          This class implements model propert names service.

Field Summary
 protected IdeContextmyContext
           
 protected IdeInspectormyInternalInspector
           

Constructor Summary
IdeInspectorCompoundComponent(IdeContext context)
          Constructs an instance of IdeInspectorCompoundComponent object
that represents an internal inspector for the specified context.

Method Summary
 voidaddComponent(IdeInspectorComponent component, Condition condition)
          Adds specified component to the internal inspector with the condition.
 voidaddComponent(IdeInspectorComponent component, Condition condition, double weight)
          Adds component to the internal inspector with the specified condition and weight.
 protected voidmarkComponentsToUpdate()
          This method is called before update of the internal inspector and it should mark those components that should be
updated as.
 voidremoveComponent(IdeInspectorComponent component)
          Removes specified component from the internal inspector.
 private voidsetRebuildCommand()
           
 voidsetSelectedComponent(Enumeration path)
           
 voidupdate()
          Updates internal inspector and all subcomponents.

Methods inherited from class com.togethersoft.openapi.ide.inspector.IdeInspectorComponent
getService, setService

Methods inherited from class java.beans.FeatureDescriptor
getName, setName, getDisplayName, setDisplayName, isExpert, setExpert, isHidden, setHidden, isPreferred, setPreferred, getShortDescription, setShortDescription, setValue, getValue, attributeNames

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize

Field Detail

myContext

protected IdeContext myContext

myInternalInspector

protected IdeInspector myInternalInspector
Constructor Detail

IdeInspectorCompoundComponent

public IdeInspectorCompoundComponent(IdeContext context)
Constructs an instance of IdeInspectorCompoundComponent object
that represents an internal inspector for the specified context.
Parameters:
context IdeContext for which internal inspector will be created
Method Detail

addComponent

public void addComponent(IdeInspectorComponent component, Condition condition)
Adds specified component to the internal inspector with the condition.
See Also:
IdeInspector.addComponent(com.togethersoft.openapi.ide.inspector.IdeInspectorComponent,com.togethersoft.openapi.ide.inspector.Condition)

addComponent

public void addComponent(IdeInspectorComponent component, Condition condition, double weight)
Adds component to the internal inspector with the specified condition and weight.
See Also:
IdeInspector.addComponent(com.togethersoft.openapi.ide.inspector.IdeInspectorComponent,com.togethersoft.openapi.ide.inspector.Condition,double)

markComponentsToUpdate

protected void markComponentsToUpdate()
This method is called before update of the internal inspector and it should mark those components that should be
updated as. To mark component that requires update, set the value of its property "forcedUpdate" to Boolean.TRUE:
component.setValue (Options.FORCED_UPDATE, Boolean.TRUE);
Since:
Together 5.0

removeComponent

public void removeComponent(IdeInspectorComponent component)
Removes specified component from the internal inspector.
See Also:
IdeInspector#addComponent(IdeInspectorComponent)

setRebuildCommand

private void setRebuildCommand()

setSelectedComponent

public void setSelectedComponent(Enumeration path)

update

public void update()
Updates internal inspector and all subcomponents.

Association Links

to Class com.togethersoft.openapi.ide.IdeContext

to Class com.togethersoft.openapi.ide.inspector.IdeInspector