com.tssap.util.ui.reuse.list
Class ListComponent

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
                          |
                          +--com.tssap.util.ui.reuse.list.ListComponent
All Implemented Interfaces:
IEditable, IGenericComponent, IGenericMultiComponent, IGridLayoutPaneContainer, IReuseable

public class ListComponent
extends GenericMultiListComponent

description: displays a list with add and remove buttons

Since:
2002/11/15
Version:
1.0.0

Constructor Summary
ListComponent()
          Constructor for ListComponent.
ListComponent(IListSelectorCallback callback)
          Constructor for ListComponent.
 
Method Summary
 boolean containsElement(IListElement listElement)
          Method containsElement.
 IListElement[] getElements()
          Returns the elements.
 java.lang.String[] getListElements()
          Returns the listElements.
 void initContainer(IGridLayoutPane userArea)
          Initialize component's UI.
 boolean isSecurityRemove()
          Returns the securityRemove.
 void setElements(IListElement[] elements)
          Sets the elements.
 void setSecurityRemove(boolean securityRemove)
          Sets the securityRemove.
 void setSelection(int elementIndex)
           
 
Methods inherited from class com.tssap.util.ui.reuse.GenericMultiListComponent
getList, getUserGridNumOfColumns, isUserGridEqualColSize, setAddRemoveButtonsEnabled, setEnabled, setList
 
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

ListComponent

public ListComponent()
Constructor for ListComponent.

ListComponent

public ListComponent(IListSelectorCallback callback)
Constructor for ListComponent.
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().
Overrides:
initContainer in class GenericMultiListComponent
See Also:
IGridLayoutPaneContainer.initContainer(IGridLayoutPane)

containsElement

public boolean containsElement(IListElement listElement)
Method containsElement.
Parameters:
listElement -  
Returns:
boolean

getListElements

public java.lang.String[] getListElements()
Returns the listElements.
Returns:
String[]

setSelection

public void setSelection(int elementIndex)
See Also:
com.tssap.util.ui.reuse.list.IMutableListSelector#setSelection(int)

isSecurityRemove

public boolean isSecurityRemove()
Returns the securityRemove.
Returns:
boolean

setSecurityRemove

public void setSecurityRemove(boolean securityRemove)
Sets the securityRemove.
Parameters:
securityRemove - The securityRemove to set

getElements

public IListElement[] getElements()
Returns the elements.
Returns:
IListElement[]

setElements

public void setElements(IListElement[] elements)
Sets the elements.
Parameters:
elements - The elements to set


Copyright © 2005 SAP AG. All Rights Reserved.