com.tssap.util.ui.reuse
Class GenericComponent

java.lang.Object
  |
  +--com.tssap.util.ui.AbstractEditable
        |
        +--com.tssap.util.ui.reuse.GenericComponent
All Implemented Interfaces:
IEditable, IGenericComponent, IGridLayoutPaneContainer, IReuseable
Direct Known Subclasses:
GenericMultiComponent, HandleDropDownSelectors, ObjectEditorComponent, RadioButtonComponent, TreeSelector

public abstract class GenericComponent
extends AbstractEditable
implements IGenericComponent

Since:
17.09.2002

Method Summary
 boolean addModifyListener(org.eclipse.swt.events.ModifyListener modifyListener)
          Register listener, interested in (modifications) modify events
 boolean addSelectionListener(org.eclipse.swt.events.SelectionListener selectionListener)
          Register listener, interested in selection event
 org.eclipse.swt.widgets.Control createPartControl(org.eclipse.swt.widgets.Composite parent)
          Creates and initializes the control
 org.eclipse.swt.widgets.Control createPartControl(IGridLayoutPane glp)
          Initializes component's UI.
 org.eclipse.swt.widgets.Control createPartControl(IGridLayoutPane glp, boolean grabHorizontal, boolean grabVertical)
           
 java.lang.String getTitle()
           
 IGridLayoutPane getUserAreaGridLayoutPane()
          Gets the userAreaGridLayoutPane.
 boolean isComposable()
          Method isComposable.
 boolean isEnabled()
          Receive the component's enabled state.
 void refresh()
          Update component's UI
 boolean removeModifyListener(org.eclipse.swt.events.ModifyListener modifyListener)
           
 boolean removeSelectionListener(org.eclipse.swt.events.SelectionListener selectionListener)
           
 void setEnabled(boolean enabled)
          Set whether or not the component and all its subcomponents are enabled.
 void setTitle(java.lang.String title)
          Change title text.
 
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.glpc.IGridLayoutPaneContainer
getUserGridNumOfColumns, initContainer, isUserGridEqualColSize
 
Methods inherited from interface com.tssap.util.ui.IEditable
isEditable, setEditable
 

Method Detail

createPartControl

public final org.eclipse.swt.widgets.Control createPartControl(IGridLayoutPane glp,
                                                               boolean grabHorizontal,
                                                               boolean grabVertical)
Specified by:
createPartControl in interface IGenericComponent
See Also:
IGenericComponent.createPartControl(com.tssap.util.ui.pane.IGridLayoutPane, boolean, boolean)

createPartControl

public final org.eclipse.swt.widgets.Control createPartControl(IGridLayoutPane glp)
Description copied from interface: IGenericComponent
Initializes component's UI.
Specified by:
createPartControl in interface IGenericComponent
See Also:
com.tssap.util.ui.reuse.IReuseable#createPartControl(IGridLayoutPane)

createPartControl

public final org.eclipse.swt.widgets.Control createPartControl(org.eclipse.swt.widgets.Composite parent)
Description copied from interface: IReuseable
Creates and initializes the control
Specified by:
createPartControl in interface IReuseable
See Also:
IReuseable.createPartControl(Composite)

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface IGenericComponent
See Also:
IGenericComponent.getTitle()

setTitle

public void setTitle(java.lang.String title)
Description copied from interface: IGenericComponent
Change title text. Title has to be set before call of method createPartControl(..).
Specified by:
setTitle in interface IGenericComponent
See Also:
IGenericComponent.setTitle(String)

addSelectionListener

public boolean addSelectionListener(org.eclipse.swt.events.SelectionListener selectionListener)
Description copied from interface: IGenericComponent
Register listener, interested in selection event
Specified by:
addSelectionListener in interface IGenericComponent
See Also:
IGenericComponent.addSelectionListener(SelectionListener)

removeSelectionListener

public boolean removeSelectionListener(org.eclipse.swt.events.SelectionListener selectionListener)
Specified by:
removeSelectionListener in interface IGenericComponent
See Also:
IGenericComponent.removeSelectionListener(SelectionListener)

addModifyListener

public boolean addModifyListener(org.eclipse.swt.events.ModifyListener modifyListener)
Description copied from interface: IGenericComponent
Register listener, interested in (modifications) modify events
Specified by:
addModifyListener in interface IGenericComponent
See Also:
IGenericComponent.addModifyListener(ModifyListener)

removeModifyListener

public boolean removeModifyListener(org.eclipse.swt.events.ModifyListener modifyListener)
Specified by:
removeModifyListener in interface IGenericComponent
See Also:
IGenericComponent.removeModifyListener(ModifyListener)

getUserAreaGridLayoutPane

public final IGridLayoutPane getUserAreaGridLayoutPane()
Gets the userAreaGridLayoutPane.
Returns:
Returns a IGridLayoutPane

isComposable

public final boolean isComposable()
Method isComposable.
Returns:
boolean

refresh

public void refresh()
Description copied from interface: IGenericComponent
Update component's UI
Specified by:
refresh in interface IGenericComponent

isEnabled

public boolean isEnabled()
Description copied from interface: IReuseable
Receive the component's enabled state.
Specified by:
isEnabled in interface IReuseable
See Also:
IReuseable.isEnabled()

setEnabled

public void setEnabled(boolean enabled)
Description copied from interface: IReuseable
Set whether or not the component and all its subcomponents are enabled.
Specified by:
setEnabled in interface IReuseable
See Also:
IReuseable.setEnabled(boolean)


Copyright © 2005 SAP AG. All Rights Reserved.