IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.rcp.xui.proposal
Class ProposalDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.PopupDialog
          extended by com.ibm.btt.rcp.xui.proposal.ProposalDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider

public class ProposalDialog
extends org.eclipse.jface.dialogs.PopupDialog

Proposal dialog which offers proposal items.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
 
Fields inherited from class org.eclipse.jface.dialogs.PopupDialog
HOVER_SHELLSTYLE, INFOPOPUP_SHELLSTYLE, INFOPOPUPRESIZE_SHELLSTYLE, POPUP_HORIZONTALSPACING, POPUP_IMG_MENU, POPUP_IMG_MENU_DISABLED, POPUP_MARGINHEIGHT, POPUP_MARGINWIDTH, POPUP_VERTICALSPACING
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
ProposalDialog(org.eclipse.swt.widgets.Control control)
          Constructor for Proposal Dialog
 
Method Summary
 void acceptSelection()
          Accept current selection
protected  void adjustBounds()
           
 void adjustSelection(int index)
          Adjust proposal selection
protected  org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
           
 int getItemCount()
          Get proposal item number
 org.eclipse.swt.widgets.Table getProposalControl()
          Get proposal control (Table)
 IProposalProvider getProposalProvider()
          Get proposal provider
 int getSelectionIndex()
          Get index of selection proposal
 boolean hasFocus()
          Check if proposal control has focus or not
 void setProposalProvider(IProposalProvider provider)
          Set proposal provider
 
Methods inherited from class org.eclipse.jface.dialogs.PopupDialog
applyBackgroundColor, applyForegroundColor, close, configureShell, createContents, createInfoTextArea, createTitleControl, createTitleMenuArea, fillDialogMenu, getBackground, getBackgroundColorExclusions, getDefaultLocation, getDefaultSize, getDialogSettings, getFocusControl, getForeground, getForegroundColorExclusions, getInitialLocation, getInitialSize, getPersistBounds, getPersistLocation, getPersistSize, hasInfoArea, hasTitleArea, open, saveDialogBounds, setInfoText, setTabOrder, setTitleText, showDialogMenu
 
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, create, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, initializeBounds, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProposalDialog

public ProposalDialog(org.eclipse.swt.widgets.Control control)
Constructor for Proposal Dialog

Parameters:
control - the control to wrapped by proposal dialog
Method Detail

createDialogArea

protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
Overrides:
createDialogArea in class org.eclipse.jface.dialogs.PopupDialog

getProposalControl

public org.eclipse.swt.widgets.Table getProposalControl()
Get proposal control (Table)

Returns:
proposal control (Table)

adjustSelection

public void adjustSelection(int index)
Adjust proposal selection

Parameters:
index - the selection index

acceptSelection

public void acceptSelection()
Accept current selection


adjustBounds

protected void adjustBounds()
Overrides:
adjustBounds in class org.eclipse.jface.dialogs.PopupDialog

setProposalProvider

public void setProposalProvider(IProposalProvider provider)
Set proposal provider

Parameters:
provider - proposal provider

getProposalProvider

public IProposalProvider getProposalProvider()
Get proposal provider

Returns:
proposal provider

getItemCount

public int getItemCount()
Get proposal item number

Returns:
proposal item number

getSelectionIndex

public int getSelectionIndex()
Get index of selection proposal

Returns:
index of selection proposal

hasFocus

public boolean hasFocus()
Check if proposal control has focus or not

Returns:
if proposal control has focus or not

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011