com.groovemanager.app.mc909se
Class OnlyMessagePage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by com.groovemanager.app.mc909se.OnlyMessagePage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage
Direct Known Subclasses:
PlaySequencePage

public class OnlyMessagePage
extends org.eclipse.jface.wizard.WizardPage

This class represents a wizard page containing a text and optionally an image

Author:
Manu Robledo

Field Summary
private  java.lang.String image
          The image path
private  org.eclipse.swt.widgets.Composite imageComp
          The composite used for displaying the image
private  org.eclipse.swt.graphics.Image img
          The image
private  org.eclipse.swt.widgets.Label messageLabel
          The Label used to display the text
private  java.lang.String messageText
          The message text
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
OnlyMessagePage(java.lang.String pageName, java.lang.String message)
          Create a new OnlyMessagePage
OnlyMessagePage(java.lang.String pageName, java.lang.String title, org.eclipse.jface.resource.ImageDescriptor titleImage, java.lang.String message)
          Create a new OnlyMessagePage
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
 void setImage(java.lang.String path)
          Set the image to be displayed besides the message text
 void setMessageText(java.lang.String text)
          Set the message text
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
 

Field Detail

image

private java.lang.String image
The image path


imageComp

private org.eclipse.swt.widgets.Composite imageComp
The composite used for displaying the image


img

private org.eclipse.swt.graphics.Image img
The image


messageLabel

private org.eclipse.swt.widgets.Label messageLabel
The Label used to display the text


messageText

private java.lang.String messageText
The message text

Constructor Detail

OnlyMessagePage

public OnlyMessagePage(java.lang.String pageName,
                       java.lang.String message)
Create a new OnlyMessagePage

Parameters:
pageName - The page´s name
message - The message to display

OnlyMessagePage

public OnlyMessagePage(java.lang.String pageName,
                       java.lang.String title,
                       org.eclipse.jface.resource.ImageDescriptor titleImage,
                       java.lang.String message)
Create a new OnlyMessagePage

Parameters:
pageName - The page´s name
title - The page title
titleImage - The title image
Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
Specified by:
createControl in interface org.eclipse.jface.dialogs.IDialogPage
Specified by:
createControl in class org.eclipse.jface.dialogs.DialogPage

setImage

public void setImage(java.lang.String path)
Set the image to be displayed besides the message text

Parameters:
path - The path of the image

setMessageText

public void setMessageText(java.lang.String text)
Set the message text

Parameters:
text - The message to set