TPTP 4.6.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.common.ui.internal.util
Class CommonPageSizeUI

java.lang.Object
  extended by org.eclipse.tptp.platform.common.ui.internal.util.CommonPageSizeUI
All Implemented Interfaces:
java.util.EventListener, org.eclipse.swt.events.ModifyListener, org.eclipse.swt.internal.SWTEventListener

public class CommonPageSizeUI
extends java.lang.Object
implements org.eclipse.swt.events.ModifyListener

Helper class that displays a description and text box for inputting viewer page sizes. It's currently used by the log viewer, log interactions view and symptom results view page size preference pages.


Field Summary
protected  java.lang.String contextHelpID
           
protected  java.lang.String info
           
protected  java.lang.String initValue
           
protected  java.lang.String labelText
           
protected  org.eclipse.jface.preference.PreferencePage parent
           
protected  org.eclipse.swt.widgets.Text txtPageSize
           
 
Constructor Summary
CommonPageSizeUI(org.eclipse.jface.preference.PreferencePage parent, java.lang.String info, java.lang.String labelText, java.lang.String contextHelpID, java.lang.String initValue)
           
 
Method Summary
protected  int convertWidthInCharsToPixels(int chars, org.eclipse.swt.widgets.Control parent)
           
 org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parentComposite)
           
 java.lang.String getPageSize()
           
 void modifyText(org.eclipse.swt.events.ModifyEvent e)
           
 void setPageSize(java.lang.String newValue)
           
protected  org.eclipse.core.runtime.IStatus validateInput()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected org.eclipse.jface.preference.PreferencePage parent

labelText

protected java.lang.String labelText

info

protected java.lang.String info

contextHelpID

protected java.lang.String contextHelpID

txtPageSize

protected org.eclipse.swt.widgets.Text txtPageSize

initValue

protected java.lang.String initValue
Constructor Detail

CommonPageSizeUI

public CommonPageSizeUI(org.eclipse.jface.preference.PreferencePage parent,
                        java.lang.String info,
                        java.lang.String labelText,
                        java.lang.String contextHelpID,
                        java.lang.String initValue)
Parameters:
parent - parent preference page
info - labels displaying a description related to what the function does
labelText - label for the page size text box
contextHelpID - context help ID
initValue -
Method Detail

createContents

public org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parentComposite)

convertWidthInCharsToPixels

protected int convertWidthInCharsToPixels(int chars,
                                          org.eclipse.swt.widgets.Control parent)

getPageSize

public java.lang.String getPageSize()

setPageSize

public void setPageSize(java.lang.String newValue)

modifyText

public void modifyText(org.eclipse.swt.events.ModifyEvent e)
Specified by:
modifyText in interface org.eclipse.swt.events.ModifyListener

validateInput

protected org.eclipse.core.runtime.IStatus validateInput()

TPTP 4.6.0 Platform Project
Internal API Specification