com.tssap.util.ui.reuse
Class GenericMultiListComponent

java.lang.Object
  |
  +--com.tssap.util.ui.AbstractEditable
        |
        +--com.tssap.util.ui.reuse.GenericComponent
              |
              +--com.tssap.util.ui.reuse.GenericMultiComponent
                    |
                    +--com.tssap.util.ui.reuse.GenericMultiListComponent
All Implemented Interfaces:
IEditable, IGenericComponent, IGenericMultiComponent, IGridLayoutPaneContainer, IReuseable
Direct Known Subclasses:
ListComponent

public class GenericMultiListComponent
extends GenericMultiComponent


Constructor Summary
GenericMultiListComponent()
          Constructor for GenericMultiListComponent.
GenericMultiListComponent(java.lang.String title)
          Constructor for GenericMultiListComponent.
 
Method Summary
 org.eclipse.swt.widgets.List getList()
          Returns the list.
 int getUserGridNumOfColumns()
          Returns number of columns for userArea given to method initContainer(IGridLayoutPane userArea)
 void initContainer(IGridLayoutPane userArea)
          Initialize component's UI.
 boolean isUserGridEqualColSize()
          Returns true if userArea given to method initContainer(IGridLayoutPane userArea) has to have equal column widths
 void setAddRemoveButtonsEnabled(boolean addRemoveButtonsEnabled)
           
 void setEnabled(boolean enabled)
          Set whether or not the component and all its subcomponents are enabled.
 void setList(org.eclipse.swt.widgets.List list)
          Sets the list.
 
Methods inherited from class com.tssap.util.ui.reuse.GenericMultiComponent
getAddButtonText, getButtonOrientation, getRemoveButtonText, hasAddRemoveButtons, isSecureRemove, setAddButtonText, setButtonOrientation, setHasAddRemoveButtons, setRemoveButtonText, setSecureRemove
 
Methods inherited from class com.tssap.util.ui.reuse.GenericComponent
addModifyListener, addSelectionListener, createPartControl, createPartControl, createPartControl, getTitle, getUserAreaGridLayoutPane, isComposable, isEnabled, 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.IEditable
isEditable, setEditable
 

Constructor Detail

GenericMultiListComponent

public GenericMultiListComponent()
Constructor for GenericMultiListComponent.

GenericMultiListComponent

public GenericMultiListComponent(java.lang.String title)
Constructor for GenericMultiListComponent.
Method Detail

getList

public org.eclipse.swt.widgets.List getList()
Returns the list.
Returns:
List

setList

public void setList(org.eclipse.swt.widgets.List list)
Sets the list.
Parameters:
list - The list to set

getUserGridNumOfColumns

public int getUserGridNumOfColumns()
Description copied from interface: IGridLayoutPaneContainer
Returns number of columns for userArea given to method initContainer(IGridLayoutPane userArea)
See Also:
IGridLayoutPaneContainer.getUserGridNumOfColumns()

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(IGridLayoutPane)

isUserGridEqualColSize

public boolean isUserGridEqualColSize()
Description copied from interface: IGridLayoutPaneContainer
Returns true if userArea given to method initContainer(IGridLayoutPane userArea) has to have equal column widths
See Also:
IGridLayoutPaneContainer.isUserGridEqualColSize()

setEnabled

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

setAddRemoveButtonsEnabled

public void setAddRemoveButtonsEnabled(boolean addRemoveButtonsEnabled)


Copyright © 2005 SAP AG. All Rights Reserved.