|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.rse.ui.view.SystemViewForm
This re-usable widget is for a single widget that displays a toolbar underneath which is a systems view tree.
| Field Summary | |
|---|---|
protected Object |
caller
|
protected boolean |
callerInstanceOfSystemPromptDialog
|
protected boolean |
callerInstanceOfWizardPage
|
static int |
DEFAULT_HEIGHT
|
static int |
DEFAULT_WIDTH
|
protected ViewerFilter[] |
initViewerFilters
|
| Fields inherited from class org.eclipse.swt.widgets.Composite |
|---|
embeddedHandle |
| Fields inherited from class org.eclipse.swt.widgets.Widget |
|---|
handle |
| Constructor Summary | |
|---|---|
SystemViewForm(Shell shell,
Composite parent,
int style,
ISystemViewInputProvider inputProvider,
boolean singleSelectionMode,
ISystemMessageLine msgLine)
Constructor |
|
SystemViewForm(Shell shell,
Composite parent,
int style,
ISystemViewInputProvider inputProvider,
boolean singleSelectionMode,
ISystemMessageLine msgLine,
int horizontalSpan,
int verticalSpan)
Constructor when you want to span more than one column or row |
|
SystemViewForm(Shell shell,
Composite parent,
int style,
ISystemViewInputProvider inputProvider,
boolean singleSelectionMode,
ISystemMessageLine msgLine,
int horizontalSpan,
int verticalSpan,
ViewerFilter[] initViewerFilters)
Constructor when you want to span more than one column or row |
|
| Method Summary | |
|---|---|
void |
addListRequestListener(ISystemLongRunningRequestListener listener)
Add a listener that is informed when a remote list request starts and stops. |
protected void |
addOurMouseListener()
|
protected void |
addOurSelectionListener()
|
void |
addSelectionChangedListener(ISelectionChangedListener listener)
Register a listener interested in an item is selected in the system view |
boolean |
areAnySelectedItemsExpandable()
Returns true if any of the selected items are expandable but not yet expanded |
boolean |
areAnySelectedItemsExpanded()
Returns true if any of the selected items are currently expanded |
protected void |
createButtonBar(Composite parentComposite,
int nbrButtons)
|
protected void |
createSystemView(Shell shell,
ISystemViewInputProvider inputProvider,
boolean singleSelectionMode)
|
protected void |
createToolBar(Shell shell)
|
protected void |
enableButtonBarButtons(boolean enableRefresh)
Enable/Disable refresh and getList buttons. |
protected void |
fireRequestStartEvent()
Fire long running request listener event |
protected void |
fireRequestStopEvent()
Fire long running request listener event |
int |
getChildCount(Object element)
Return the number of immediate children in the tree, for the given tree node |
Object[] |
getElementNodes(Object element)
This returns an array containing each element in the tree, up to but not including the root. |
Object |
getNextElement()
This returns the element immediately after the last selected element in this tree level Often needed for enablement decisions for move down actions. |
Object |
getPreviousElement()
This returns the element immediately before the first selected element in this tree level. |
Object |
getRootParent()
This is called to walk the tree back up to the roots and return the visible root node for the first selected object. |
Object |
getSelectedParent()
This is called to accurately get the parent object for the current selection for this viewer. |
ISelection |
getSelection()
Return the selection of the tree viewer |
SystemView |
getSystemView()
Return the system view tree viewer |
ToolBarManager |
getToolBarManager()
Return the toolbar widget manager |
Tree |
getTreeControl()
Return the system view tree viewer tree widget |
Item |
getViewerItem()
Returns the tree item of the first selected object. |
boolean |
isSelectedOrChildSelected(Object parentElement)
Helper method to determine if a given object is currently selected. |
boolean |
okToClose()
Returns true if it is ok to close the dialog or wizard page. |
protected void |
populateToolBar(Shell shell)
|
protected Composite |
prepareComposite(int numColumns,
int horizontalSpan,
int verticalSpan)
Prepares this composite control and sets the default layout data. |
protected void |
processGetListButton()
Process the getList button. |
protected void |
processRefreshButton()
Process the refresh button. |
void |
refresh()
Refresh contents |
void |
removeListRequestListener(ISystemLongRunningRequestListener listener)
Add a listener that is informed when a remote list request starts and stops. |
void |
removeSelectionChangedListener(ISelectionChangedListener listener)
Remove a previously set system view selection listener. |
void |
reset(ISystemViewInputProvider inputProvider)
Reset contents |
boolean |
sameParent()
This is called to ensure all elements in a multiple-selection have the same parent in the tree viewer. |
void |
select(Object element,
boolean expand)
Called to select an object within the tree, and optionally expand it |
void |
setEnabled(boolean enabled)
Disable/Enable all the child controls. |
void |
setToolTipText(String tip)
Set the tree's tooltip text |
void |
updatePropertySheet()
Called when a property is updated and we need to inform the Property Sheet viewer. |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
|---|
changed, checkSubclass, computeSize, getBackgroundMode, getChildren, getClientArea, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
|---|
computeTrim, getBorderWidth, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
|---|
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int DEFAULT_WIDTH
public static final int DEFAULT_HEIGHT
protected Object caller
protected boolean callerInstanceOfWizardPage
protected boolean callerInstanceOfSystemPromptDialog
protected ViewerFilter[] initViewerFilters
| Constructor Detail |
public SystemViewForm(Shell shell,
Composite parent,
int style,
ISystemViewInputProvider inputProvider,
boolean singleSelectionMode,
ISystemMessageLine msgLine)
shell - The owning windowparent - The owning compositestyle - The swt style to apply to the overall composite. Typically SWT.NULLinputProvider - Who is supplying the roots for the system viewer?singleSelectionMode - Are users allowed to select multiple things at once?msgLine - where to show messages and tooltip text
public SystemViewForm(Shell shell,
Composite parent,
int style,
ISystemViewInputProvider inputProvider,
boolean singleSelectionMode,
ISystemMessageLine msgLine,
int horizontalSpan,
int verticalSpan)
shell - The owning windowparent - The owning compositestyle - The swt style to apply to the overall composite. Typically SWT.NULLinputProvider - Who is supplying the roots for the system viewer?singleSelectionMode - Are users allowed to select multiple things at once?msgLine - where to show messages and tooltip texthorizontalSpan - how many columns in parent composite to spanverticalSpan - how many rows in parent composite to span
public SystemViewForm(Shell shell,
Composite parent,
int style,
ISystemViewInputProvider inputProvider,
boolean singleSelectionMode,
ISystemMessageLine msgLine,
int horizontalSpan,
int verticalSpan,
ViewerFilter[] initViewerFilters)
shell - The owning windowparent - The owning compositestyle - The swt style to apply to the overall composite. Typically SWT.NULLinputProvider - Who is supplying the roots for the system viewer?singleSelectionMode - Are users allowed to select multiple things at once?msgLine - where to show messages and tooltip texthorizontalSpan - how many columns in parent composite to spanverticalSpan - how many rows in parent composite to spaninitViewerFilters - the initial viewer filters to apply.| Method Detail |
public ToolBarManager getToolBarManager()
public SystemView getSystemView()
public Tree getTreeControl()
public void setToolTipText(String tip)
public void refresh()
public void reset(ISystemViewInputProvider inputProvider)
public void setEnabled(boolean enabled)
public void addSelectionChangedListener(ISelectionChangedListener listener)
removeSelectionChangedListener(ISelectionChangedListener)public void removeSelectionChangedListener(ISelectionChangedListener listener)
addSelectionChangedListener(ISelectionChangedListener)public void addListRequestListener(ISystemLongRunningRequestListener listener)
public void removeListRequestListener(ISystemLongRunningRequestListener listener)
public ISelection getSelection()
public boolean areAnySelectedItemsExpanded()
areAnySelectedItemsExpanded in interface ISystemTreepublic boolean areAnySelectedItemsExpandable()
areAnySelectedItemsExpandable in interface ISystemTreepublic boolean sameParent()
Designed to be as fast as possible by going directly to the SWT widgets
sameParent in interface ISystemTreepublic Object getSelectedParent()
The getParent() method in the adapter is very unreliable... adapters can't be sure of the context which can change via filtering and view options.
getSelectedParent in interface ISystemTreepublic Object getPreviousElement()
getPreviousElement in interface ISystemTreepublic Object getNextElement()
getNextElement in interface ISystemTreepublic Object getRootParent()
getRootParent in interface ISystemTreepublic Object[] getElementNodes(Object element)
getElementNodes in interface ISystemTreeelement - the element from which to begin
public boolean isSelectedOrChildSelected(Object parentElement)
isSelectedOrChildSelected in interface ISystemTreeparentElement - the element to query
public int getChildCount(Object element)
getChildCount in interface ISystemTreeelement - the element in the tree to query
public void updatePropertySheet()
updatePropertySheet in interface ISystemTree
public void select(Object element,
boolean expand)
select in interface ISystemTreeelement - the element in the tree to selectexpand - true if the element is to be expandedpublic Item getViewerItem()
getViewerItem in interface ISystemTreepublic boolean okToClose()
protected Composite prepareComposite(int numColumns,
int horizontalSpan,
int verticalSpan)
protected void createSystemView(Shell shell,
ISystemViewInputProvider inputProvider,
boolean singleSelectionMode)
protected void createToolBar(Shell shell)
protected void populateToolBar(Shell shell)
protected void createButtonBar(Composite parentComposite,
int nbrButtons)
protected void addOurSelectionListener()
protected void addOurMouseListener()
protected void processRefreshButton()
protected void processGetListButton()
protected void enableButtonBarButtons(boolean enableRefresh)
protected void fireRequestStartEvent()
protected void fireRequestStopEvent()
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||