public class EEFTabbedPropertyList
extends org.eclipse.swt.widgets.Composite
Modifier and Type | Field and Description |
---|---|
static int |
INDENT
The number of spaces used to indent a tab.
|
static int |
NONE
This constant is used to indicate NONE (for example the index of the currently selected tab).
|
Constructor and Description |
---|
EEFTabbedPropertyList(org.eclipse.swt.widgets.Composite parent,
EEFWidgetFactory widgetFactory)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.graphics.Point |
computeSize(int wHint,
int hHint,
boolean changed) |
protected void |
computeTabsThatFitInComposite()
Calculate the number of tabs that will fit in the tab list composite.
|
void |
deselectAll()
Deselects all the elements in the list.
|
EEFBottomNavigationElement |
getBottomNavigationElement()
Return the bottomNavigationElement.
|
int |
getBottomVisibleIndex()
Return the bottomVisibleIndex.
|
EEFTabbedPropertyListColorHolder |
getColorHolder() |
EEFListElement |
getElementAt(int index)
Returns the element with the given index from this list viewer.
|
boolean |
getFocus()
Return the focus.
|
int |
getNumberOfElements()
Returns the number of elements in this list viewer.
|
int |
getSelectionIndex()
Returns the zero-relative index of the item which is currently selected in the receiver, or -1 if no item is
selected.
|
EEFTopNavigationElement |
getTopNavigationElement()
Return the topNavigationElement.
|
int |
getTopVisibleIndex()
Return the topVisibleIndex.
|
int |
getWidestLabelIndex()
Returns zero-relative index of the widest item, or -1 if this list is empty.
|
boolean |
isDownScrollRequired()
Determine if a downward scrolling is required.
|
boolean |
isUpScrollRequired()
Determine if an upward scrolling is required.
|
void |
layoutTabs()
Layout the tabs.
|
void |
removeAll()
Remove all the elements from this list.
|
void |
select(int index)
Selects one of the elements in the list.
|
void |
setBottomVisibleIndex(int bottomVisibleIndex)
Sets the bottomVisibleIndex.
|
void |
setDynamicImageCount(java.util.Map<IEEFTabItem,java.lang.Integer> map)
Sets a map containing an IEEFTabItem as key and number of dynamic images as value.
|
void |
setElements(java.lang.Object[] children)
Sets the new list elements.
|
void |
setFocus(boolean focus)
Sets the focus.
|
void |
setTopVisibleIndex(int topVisibleIndex)
Sets the topVisibleIndex.
|
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
public static final int NONE
public static final int INDENT
public EEFTabbedPropertyList(org.eclipse.swt.widgets.Composite parent, EEFWidgetFactory widgetFactory)
parent
- The parent compositewidgetFactory
- The widget factorypublic void removeAll()
protected void computeTabsThatFitInComposite()
public int getNumberOfElements()
public EEFListElement getElementAt(int index)
null
if the index is out of
range.index
- the zero-based indexnull
if the index is out of rangepublic int getSelectionIndex()
public int getWidestLabelIndex()
public void setDynamicImageCount(java.util.Map<IEEFTabItem,java.lang.Integer> map)
map
- The new map of tabs to dynamic image countpublic void setElements(java.lang.Object[] children)
children
- The childrenpublic void select(int index)
index
- the index of the element to select.public void deselectAll()
public org.eclipse.swt.graphics.Point computeSize(int wHint, int hHint, boolean changed)
computeSize
in class org.eclipse.swt.widgets.Composite
Composite.computeSize(int, int, boolean)
public boolean isDownScrollRequired()
public boolean isUpScrollRequired()
public void layoutTabs()
public EEFTabbedPropertyListColorHolder getColorHolder()
public int getTopVisibleIndex()
public void setTopVisibleIndex(int topVisibleIndex)
topVisibleIndex
- the topVisibleIndex to setpublic int getBottomVisibleIndex()
public void setBottomVisibleIndex(int bottomVisibleIndex)
bottomVisibleIndex
- the bottomVisibleIndex to setpublic EEFTopNavigationElement getTopNavigationElement()
public EEFBottomNavigationElement getBottomNavigationElement()
public boolean getFocus()
public void setFocus(boolean focus)
focus
- the focus to set