sk.uniba.euromath.editor.dialogs
Class ProcessingInstructionDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by sk.uniba.euromath.editor.dialogs.ProcessingInstructionDialog
All Implemented Interfaces:
IShellProvider

public class ProcessingInstructionDialog
extends Dialog

Dialog to insert or modify processing instruction.

Author:
Tomáš Studva 22.8.2006

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
Window.IExceptionHandler
 
Field Summary
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
ProcessingInstructionDialog(Shell parentShell, String dialogTitle, String initialTarget, String initialData)
          Creates dialog to insert or modify processing instruction.
 
Method Summary
protected  void buttonPressed(int buttonId)
           
protected  void configureShell(Shell shell)
           
protected  void createButtonsForButtonBar(Composite parent)
           
protected  Control createDialogArea(Composite parent)
           
 String getData()
          Getter.
 String getTarget()
          Getter.
 void setErrorMessage(String errorMessage)
          Sets or clears the error message.
protected  void validateInput()
          Validates the input.
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, 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

ProcessingInstructionDialog

public ProcessingInstructionDialog(Shell parentShell,
                                   String dialogTitle,
                                   String initialTarget,
                                   String initialData)
Creates dialog to insert or modify processing instruction.

Parameters:
parentShell - the parent shell, or null to create a top-level shell
dialogTitle - the dialog title, or null if none
initialTarget - initial target of processing instruction
initialData - initial data of processing instruction
Method Detail

configureShell

protected void configureShell(Shell shell)
Overrides:
configureShell in class Window

buttonPressed

protected void buttonPressed(int buttonId)
Overrides:
buttonPressed in class Dialog

createButtonsForButtonBar

protected void createButtonsForButtonBar(Composite parent)
Overrides:
createButtonsForButtonBar in class Dialog

createDialogArea

protected Control createDialogArea(Composite parent)
Overrides:
createDialogArea in class Dialog

getTarget

public String getTarget()
Getter.

Returns:
target of processing instruction

getData

public String getData()
Getter.

Returns:
data of processing instruction

validateInput

protected void validateInput()
Validates the input. Restriction is on target, it can be gene-ref target.


setErrorMessage

public void setErrorMessage(String errorMessage)
Sets or clears the error message. If not "", the OK button is disabled.

Parameters:
errorMessage - the error message
Since:
3.0


Copyright © 2003-2006 null. All Rights Reserved.