public class XViewerTextWidget extends XViewerWidget
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.swt.custom.StyledText |
sText |
protected java.lang.String |
text |
displayLabel, editable, fillHorizontally, fillVertically, label, labelWidget, reportType, requiredEntry, RPT_MULTI_LINE, RPT_NONE, RPT_SINGLE_LINE, toolkit, toolTip, verticalLabel, xmlRoot, xmlSubRoot
Constructor and Description |
---|
XViewerTextWidget() |
XViewerTextWidget(java.lang.String displayLabel) |
XViewerTextWidget(java.lang.String displayLabel,
java.lang.String xmlRoot) |
XViewerTextWidget(java.lang.String displayLabel,
java.lang.String xmlRoot,
java.lang.String xmlSubRoot) |
Modifier and Type | Method and Description |
---|---|
void |
addModifyListener(org.eclipse.swt.events.ModifyListener modifyListener) |
void |
append(java.lang.String text) |
void |
createWidgets(org.eclipse.swt.widgets.Composite parent,
int horizontalSpan)
Create Text Widgets.
|
void |
createWidgets(org.eclipse.swt.widgets.Composite parent,
int horizontalSpan,
boolean fillText) |
void |
dispose()
Create Widgets used to display label and entry for wizards and editors
|
void |
forceFocus() |
java.lang.String |
get() |
org.eclipse.swt.widgets.Control |
getControl() |
java.lang.Object |
getData() |
org.eclipse.swt.widgets.Menu |
getDefaultMenu() |
double |
getFloat() |
org.eclipse.swt.graphics.Font |
getFont() |
int |
getInt() |
int |
getInteger() |
java.lang.String |
getReportData()
Return data for display in Report (without label) NOTE: There should be no newlines at end of String
|
org.eclipse.swt.custom.StyledText |
getStyledText() |
java.lang.String |
getText() |
java.lang.String |
getXmlData()
Return string to save off between xml tags Used by call to toXml() String returned will be sent through
AXml.textToXml() before being saved Used by: toXml
|
boolean |
isFloat() |
boolean |
isInteger() |
boolean |
isValid()
Return true if entry is valid
|
void |
refresh()
Refresh the entry widget
|
boolean |
requiredEntry() |
void |
set(java.lang.String text) |
void |
set(XViewerTextWidget text) |
void |
setEditable(boolean editable) |
void |
setEnabled(boolean enabled) |
void |
setFocus()
Set focus to the entry widget
|
void |
setFont(org.eclipse.swt.graphics.Font font) |
void |
setFromXml(java.lang.String xml) |
void |
setHeight(int height) |
void |
setMaxTextLimit(int limit)
Set max character limit on text field
|
void |
setRequiredEntry(boolean requiredEntry) |
void |
setSize(int width,
int height) |
void |
setText(java.lang.String text) |
void |
setXmlData(java.lang.String str)
Called with string found between xml tags Used by setFromXml() String will be sent through AXml.xmlToText() before
being sent to setXmlData implementation.
|
java.lang.String |
toHTML(java.lang.String labelFont) |
java.lang.String |
toHTML(java.lang.String labelFont,
boolean newLineText) |
java.lang.String |
toString() |
java.lang.String |
toXml() |
java.lang.String |
toXml(java.lang.String xmlRoot) |
java.lang.String |
toXml(java.lang.String xmlRoot,
java.lang.String xmlSubRoot) |
protected void |
updateTextWidget() |
adaptControls, addXModifiedListener, createWidgets, getDisplayLabels, getLabel, getLabelWidget, getReportType, getToolTip, getXmlRoot, getXmlSubRoot, isDisplayLabel, isEditable, isFillHorizontally, isFillVertically, isRequiredEntry, isVerticalLabel, notifyXModifiedListeners, openHelp, setDisplayLabel, setDisplayLabel, setFillHorizontally, setFillVertically, setLabel, setLabelError, setLabelWidget, setReportType, setToolTip, setVerticalLabel, setXmlRoot, setXmlSubRoot, toReport, toReport
protected org.eclipse.swt.custom.StyledText sText
protected java.lang.String text
public XViewerTextWidget()
public XViewerTextWidget(java.lang.String displayLabel)
public XViewerTextWidget(java.lang.String displayLabel, java.lang.String xmlRoot)
public XViewerTextWidget(java.lang.String displayLabel, java.lang.String xmlRoot, java.lang.String xmlSubRoot)
public void setEnabled(boolean enabled)
public void setSize(int width, int height)
public void setHeight(int height)
public java.lang.String toString()
toString
in class XViewerWidget
public org.eclipse.swt.widgets.Control getControl()
getControl
in class XViewerWidget
public void createWidgets(org.eclipse.swt.widgets.Composite parent, int horizontalSpan)
createWidgets
in class XViewerWidget
public void createWidgets(org.eclipse.swt.widgets.Composite parent, int horizontalSpan, boolean fillText)
public java.lang.String getText()
public void setText(java.lang.String text)
public org.eclipse.swt.widgets.Menu getDefaultMenu()
public void dispose()
XViewerWidget
dispose
in class XViewerWidget
public void setFocus()
XViewerWidget
setFocus
in class XViewerWidget
public void setEditable(boolean editable)
setEditable
in class XViewerWidget
public void setMaxTextLimit(int limit)
limit
- - if 0, then limit is 999, else sets to limitpublic void forceFocus()
public boolean isInteger()
public boolean isFloat()
public int getInteger()
public double getFloat()
public void setRequiredEntry(boolean requiredEntry)
setRequiredEntry
in class XViewerWidget
public boolean requiredEntry()
public void addModifyListener(org.eclipse.swt.events.ModifyListener modifyListener)
public java.lang.String get()
public java.lang.String getXmlData()
XViewerWidget
getXmlData
in class XViewerWidget
public java.lang.String toXml()
toXml
in class XViewerWidget
public java.lang.String toXml(java.lang.String xmlRoot)
toXml
in class XViewerWidget
public java.lang.String toXml(java.lang.String xmlRoot, java.lang.String xmlSubRoot)
toXml
in class XViewerWidget
public void setXmlData(java.lang.String str)
XViewerWidget
setXmlData
in class XViewerWidget
public void setFromXml(java.lang.String xml)
setFromXml
in class XViewerWidget
public int getInt()
protected void updateTextWidget()
public void set(java.lang.String text)
public void set(XViewerTextWidget text)
public void append(java.lang.String text)
public void refresh()
XViewerWidget
refresh
in class XViewerWidget
public java.lang.String getReportData()
XViewerWidget
getReportData
in class XViewerWidget
public java.lang.String toHTML(java.lang.String labelFont, boolean newLineText)
public java.lang.String toHTML(java.lang.String labelFont)
toHTML
in class XViewerWidget
public boolean isValid()
XViewerWidget
isValid
in class XViewerWidget
public java.lang.Object getData()
getData
in class XViewerWidget
public org.eclipse.swt.custom.StyledText getStyledText()
public org.eclipse.swt.graphics.Font getFont()
public void setFont(org.eclipse.swt.graphics.Font font)
font
- the font to set