com.tssap.util.ui.reuse.java
Class JavaComponent

java.lang.Object
  |
  +--com.tssap.util.ui.AbstractEditable
        |
        +--com.tssap.util.ui.reuse.GenericComponent
              |
              +--com.tssap.util.ui.reuse.ObjectEditorComponent
                    |
                    +--com.tssap.util.ui.reuse.DefaultObjectEditorComponent
                          |
                          +--com.tssap.util.ui.reuse.RefreshObjectEditorComponent
                                |
                                +--com.tssap.util.ui.reuse.java.JavaComponent
All Implemented Interfaces:
IEditable, IGenericComponent, IGridLayoutPaneContainer, IObjectEditorComponent, IReuseable, IValidatable
Direct Known Subclasses:
MethodComponent, ModifierComponent, ParameterComponent, TypeComponent2

public abstract class JavaComponent
extends RefreshObjectEditorComponent
implements IValidatable


Fields inherited from interface com.tssap.util.ui.reuse.java.IValidatable
STATUS_OK
 
Fields inherited from interface com.tssap.util.ui.reuse.IObjectEditorComponent
SEVERITY_PREFIX_ERROR, SEVERITY_PREFIX_INFO, SEVERITY_PREFIX_LEAVABLE_WARNING, SEVERITY_PREFIX_UNLEAVABLE_WARNING
 
Constructor Summary
JavaComponent()
          Constructor for JavaComponent.
JavaComponent(java.lang.String title)
          Constructor for JavaComponent.
 
Method Summary
 java.lang.String acceptData(java.lang.Object data)
          Method acceptData.
 IJavaData getJavaData()
           
 org.eclipse.core.runtime.IStatus getValidationStatus()
           
 boolean isAutoRefreshData()
           
 java.lang.String okToLeave()
          Tests weather leaving the Editor is allowed.
 void refreshDataFromUI()
          The implementation has to update the content of the data Object with the current UI inputs
 void refreshUIFromData()
          The implementation has to fill it's UI elements with the data contained in it's data Object The implementation can rely that @see #setData(Object) and @see IReuseable#createPartControl(Composite) have been called before this method is invoked
 void setAutoRefreshData(boolean autoRefreshData)
          Sets the autoRefreshData.
 void setJavaData(IJavaData data)
           
 
Methods inherited from class com.tssap.util.ui.reuse.DefaultObjectEditorComponent
getUserGridNumOfColumns, isUserGridEqualColSize
 
Methods inherited from class com.tssap.util.ui.reuse.ObjectEditorComponent
dispose, getData, getModifiedCallback, isDataAutoRefreshing, isEnabled, setData, setEnabled, setModifiedCallback
 
Methods inherited from class com.tssap.util.ui.reuse.GenericComponent
addModifyListener, addSelectionListener, createPartControl, createPartControl, createPartControl, getTitle, getUserAreaGridLayoutPane, isComposable, refresh, removeModifyListener, removeSelectionListener, setTitle
 
Methods inherited from class com.tssap.util.ui.AbstractEditable
isEditable, setEditable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.tssap.util.ui.reuse.IReuseable
createPartControl
 
Methods inherited from interface com.tssap.util.ui.IEditable
isEditable, setEditable
 
Methods inherited from interface com.tssap.util.ui.glpc.IGridLayoutPaneContainer
initContainer
 

Constructor Detail

JavaComponent

public JavaComponent()
Constructor for JavaComponent.

JavaComponent

public JavaComponent(java.lang.String title)
Constructor for JavaComponent.
Parameters:
title -  
Method Detail

refreshDataFromUI

public void refreshDataFromUI()
Description copied from interface: IObjectEditorComponent
The implementation has to update the content of the data Object with the current UI inputs
Overrides:
refreshDataFromUI in class ObjectEditorComponent
See Also:
IObjectEditorComponent.refreshDataFromUI()

refreshUIFromData

public void refreshUIFromData()
Description copied from interface: IObjectEditorComponent
The implementation has to fill it's UI elements with the data contained in it's data Object The implementation can rely that @see #setData(Object) and @see IReuseable#createPartControl(Composite) have been called before this method is invoked
Overrides:
refreshUIFromData in class ObjectEditorComponent
See Also:
IObjectEditorComponent.refreshUIFromData()

getJavaData

public IJavaData getJavaData()

setJavaData

public void setJavaData(IJavaData data)

acceptData

public java.lang.String acceptData(java.lang.Object data)
Description copied from class: ObjectEditorComponent
Method acceptData.
Overrides:
acceptData in class ObjectEditorComponent
See Also:
ObjectEditorComponent.acceptData(java.lang.Object)

isAutoRefreshData

public boolean isAutoRefreshData()

setAutoRefreshData

public void setAutoRefreshData(boolean autoRefreshData)
Sets the autoRefreshData.
Parameters:
autoRefreshData - The autoRefreshData to set

getValidationStatus

public org.eclipse.core.runtime.IStatus getValidationStatus()
Specified by:
getValidationStatus in interface IValidatable
See Also:
IValidatable.getValidationStatus()

okToLeave

public java.lang.String okToLeave()
Description copied from interface: IObjectEditorComponent
Tests weather leaving the Editor is allowed. If not because of invalid data input an explanation text describing the reason is returned.
Overrides:
okToLeave in class ObjectEditorComponent
See Also:
IObjectEditorComponent.okToLeave()


Copyright © 2005 SAP AG. All Rights Reserved.