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

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
                                      |
                                      +--com.tssap.util.ui.reuse.java.TypeComponent2
All Implemented Interfaces:
IEditable, IGenericComponent, IGridLayoutPaneContainer, IObjectEditorComponent, IReuseable, IValidatable

public class TypeComponent2
extends JavaComponent


Inner Class Summary
 class TypeComponent2.TypeNameModifyListener
           
 
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
TypeComponent2()
           
TypeComponent2(ITypeData typeData)
           
TypeComponent2(java.lang.String title)
           
TypeComponent2(java.lang.String title, ITypeData typeData)
           
 
Method Summary
 java.lang.String acceptData(java.lang.Object data)
          Method acceptData.
 ITypeData getTypeData()
          Returns the typeData. getTypeData() only returns reasonable values in case you called refreshDataFromUI() before or if you set auto refreshing to true.
 IDropDownSelector getTypeNameSelector()
           
 org.eclipse.core.runtime.IStatus getValidationStatus()
           
 void initContainer(IGridLayoutPane userArea)
          Initialize component's UI.
 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 setArrayCheckboxEditable(boolean isArrayCheckboxEditable)
           
 void setFullQualifiedNameLabelVisible(boolean isFullQualifiedNameLabelVisible)
          Sets the isFullQualifiedNameLabelVisible.
 void setShowArrayCheckbox(boolean showArrayCheckbox)
          Sets the showArrayCheckbox.
 void setTypeChooser(IChooser typeChooser)
          Sets the typeChooser.
 void setTypeData(ITypeData data)
          Sets the typeData.
 void setTypeNameSelector(IDropDownSelector typeNameSelector)
           
 
Methods inherited from class com.tssap.util.ui.reuse.java.JavaComponent
getJavaData, isAutoRefreshData, okToLeave, setAutoRefreshData, setJavaData
 
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
 

Constructor Detail

TypeComponent2

public TypeComponent2()

TypeComponent2

public TypeComponent2(java.lang.String title)

TypeComponent2

public TypeComponent2(ITypeData typeData)

TypeComponent2

public TypeComponent2(java.lang.String title,
                      ITypeData typeData)
Method Detail

initContainer

public void initContainer(IGridLayoutPane userArea)
Description copied from interface: IGridLayoutPaneContainer
Initialize component's UI. Implementor has to fill the given grid layout pane. The number of columns comes from call to method getUserGridNumOfColumns(). If grid columns have equal widths is decided through call to isUserGridEqualColSize().
See Also:
IGridLayoutPaneContainer.initContainer(com.tssap.util.ui.pane.IGridLayoutPane)

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 JavaComponent
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 JavaComponent
See Also:
IObjectEditorComponent.refreshUIFromData()

getTypeData

public ITypeData getTypeData()
Returns the typeData. getTypeData() only returns reasonable values in case you called refreshDataFromUI() before or if you set auto refreshing to true.
Returns:
ITypeData
See Also:
principles of extended class ObjectEditorComponent (refresh methods).

setTypeData

public void setTypeData(ITypeData data)
Sets the typeData.
Parameters:
typeData - The typeData to set

acceptData

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

setTypeChooser

public void setTypeChooser(IChooser typeChooser)
Sets the typeChooser.
Parameters:
typeChooser - The typeChooser to set

getValidationStatus

public org.eclipse.core.runtime.IStatus getValidationStatus()
Overrides:
getValidationStatus in class JavaComponent
Following copied from class: com.tssap.util.ui.reuse.java.JavaComponent
See Also:
IValidatable.getValidationStatus()

setShowArrayCheckbox

public void setShowArrayCheckbox(boolean showArrayCheckbox)
Sets the showArrayCheckbox.
Parameters:
showArrayCheckbox - The showArrayCheckbox to set

setArrayCheckboxEditable

public void setArrayCheckboxEditable(boolean isArrayCheckboxEditable)

setFullQualifiedNameLabelVisible

public void setFullQualifiedNameLabelVisible(boolean isFullQualifiedNameLabelVisible)
Sets the isFullQualifiedNameLabelVisible.
Parameters:
isFullQualifiedNameLabelVisible - The isFullQualifiedNameLabelVisible to set

setTypeNameSelector

public void setTypeNameSelector(IDropDownSelector typeNameSelector)

getTypeNameSelector

public IDropDownSelector getTypeNameSelector()


Copyright © 2005 SAP AG. All Rights Reserved.