hibergui.property
Class TextEdit<T>
java.lang.Object
hibergui.Component<T>
hibergui.Edit<T>
hibergui.property.TextEdit<T>
- Direct Known Subclasses:
- DateEdit, IntegerEdit, StringEdit, TimeEdit1
public abstract class TextEdit<T>
- extends Edit<T>
- Author:
- espakm
TODO To change the template for this generated type comment go to
Window - Preferences - Java - Code Style - Code Templates
|
Field Summary |
private org.eclipse.swt.widgets.Text |
txt
|
|
Constructor Summary |
TextEdit(Form form,
org.eclipse.swt.widgets.Composite cptParent,
int style,
java.lang.String prop,
java.lang.String name)
|
| Methods inherited from class hibergui.Edit |
addConstraint, addConstraint, addModificationListener, addTraverseListener, extract, fill, fireKeyPressed, fireKeyReleased, fireTraversal, fix, get, getDefault, getName, getPropertyName, hasDefault, isDirty, isEditable, isFixed, isValid, markClean, markDirty, markInvalid, markValid, removeConstraint, removeConstraint, removeModificationListener, removeTraverseListener, resetBackground, set, setDefault, setDefault, setDefault, verify |
| Methods inherited from class hibergui.Component |
addChangeListener, addControlListener, addFocusListener, addKeyListener, dispose, fireChange, getControl, init, removeChangeListener, removeControlListener, removeFocusListener, removeKeyListener, setLayoutData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
txt
private org.eclipse.swt.widgets.Text txt
TextEdit
public TextEdit(Form form,
org.eclipse.swt.widgets.Composite cptParent,
int style,
java.lang.String prop,
java.lang.String name)
createContents
protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite cptParent)
- Description copied from class:
Component
- Creates the GUI contents of the component. Subclasses should override it.
- Specified by:
createContents in class Component<T>
- Parameters:
cptParent - The composite which the component will be placed on. The
parent of the control of the component.
- Returns:
- The control of the component containing its GUI elements.
getLineHeight
public int getLineHeight()
clear
public void clear()
- Description copied from class:
Edit
- Clears the controls of the edit.
- Specified by:
clear in class Edit<T>
getText
protected java.lang.String getText()
setText
protected void setText(java.lang.String s)
setFocus
public boolean setFocus()
- Specified by:
setFocus in class Component<T>
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled in class Edit<T>
isVisible
public boolean isVisible()
setEnabled
public void setEnabled(boolean b)
- Specified by:
setEnabled in class Edit<T>
setEditable
public void setEditable(boolean b)
- Specified by:
setEditable in class Edit<T>
setBackground
public void setBackground(org.eclipse.swt.graphics.Color clr)
- Specified by:
setBackground in class Edit<T>