org.eclipse.tptp.platform.common.ui.internal.util
Class CommonPageSizeUI
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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 pageinfo - labels displaying a description related to what the function doeslabelText - label for the page size text boxcontextHelpID - context help IDinitValue -
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()