org.formaria.swt
Class Edit

java.lang.Object
  extended by Text
      extended by org.formaria.swt.Edit
All Implemented Interfaces:
TextHolder

public class Edit
extends Text
implements TextHolder

A wrapper for the SWT TextField class

Copyright (c) Formaria Ltd.,
License: see license.txt


Constructor Summary
Edit(java.lang.Object parent)
          Construct a new edit
 
Method Summary
protected  void checkSubclass()
          Suppress the subclassing exception
 java.lang.String getToolTip()
          Get the tooltip text
 void setText(java.lang.String text)
          Set the text of the edit
 void setToolTip(java.lang.String text)
          Set the tooltip text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.formaria.aria.TextHolder
getText
 

Constructor Detail

Edit

public Edit(java.lang.Object parent)
Construct a new edit

Parameters:
parent - parent object
Method Detail

checkSubclass

protected void checkSubclass()
Suppress the subclassing exception


setText

public void setText(java.lang.String text)
Set the text of the edit

Specified by:
setText in interface TextHolder
Parameters:
text - the new text

setToolTip

public void setToolTip(java.lang.String text)
Set the tooltip text

Parameters:
text - the new text

getToolTip

public java.lang.String getToolTip()
Get the tooltip text

Returns:
the existing text if any