| java.lang.Object org.eclipse.pde.internal.ui.parts.FormEntry
FormEntry | public class FormEntry (Code) | | The helper class for creating entry fields with label and text. Optionally,
a button can be added after the text. The attached listener reacts to all
the events. Entring new text makes the entry 'dirty', but only when 'commit'
is called is 'valueChanged' method called (and only if 'dirty' flag is set).
This allows delayed commit.
|
Constructor Summary | |
public | FormEntry(Composite parent, FormToolkit toolkit, String labelText, int style) The default constructor. | public | FormEntry(Composite parent, FormToolkit toolkit, String labelText, String browseText, boolean linkLabel) This constructor create all the controls right away. | public | FormEntry(Composite parent, FormToolkit toolkit, String labelText, String browseText, boolean linkLabel, int indent) | public | FormEntry(Composite parent, FormToolkit toolkit, String labelText, int indent, int tcolspan) |
Method Summary | |
public void | cancelEdit() | public void | commit() If dirty, commits the text in the widget to the value and notifies the
listener. | public Button | getButton() Returns the browse button control. | public Control | getLabel() | public Text | getText() Returns the text control. | public String | getValue() Returns the current entry value. | public boolean | isDirty() Returns true if the text has been modified. | public void | setEditable(boolean editable) | public void | setFormEntryListener(IFormEntryListener listener) Attaches the listener for the entry. | public void | setTextWidthHint(int width) If GridData was used, set the width hint. | public void | setValue(String value) Sets the value of this entry. | public void | setValue(String value, boolean blockNotification) Sets the value of this entry with the possibility to turn the
notification off. | public void | setVisible(boolean visible) |
F_DEFAULT_TEXT_WIDTH_HINT | final public static int F_DEFAULT_TEXT_WIDTH_HINT(Code) | | |
fIgnoreModify | boolean fIgnoreModify(Code) | | |
FormEntry | public FormEntry(Composite parent, FormToolkit toolkit, String labelText, int style)(Code) | | The default constructor. Call 'createControl' to make it.
|
FormEntry | public FormEntry(Composite parent, FormToolkit toolkit, String labelText, String browseText, boolean linkLabel)(Code) | | This constructor create all the controls right away.
Parameters: parent - Parameters: toolkit - Parameters: labelText - Parameters: browseText - Parameters: linkLabel - |
FormEntry | public FormEntry(Composite parent, FormToolkit toolkit, String labelText, String browseText, boolean linkLabel, int indent)(Code) | | |
FormEntry | public FormEntry(Composite parent, FormToolkit toolkit, String labelText, int indent, int tcolspan)(Code) | | |
cancelEdit | public void cancelEdit()(Code) | | |
commit | public void commit()(Code) | | If dirty, commits the text in the widget to the value and notifies the
listener. This call clears the 'dirty' flag.
|
getButton | public Button getButton()(Code) | | Returns the browse button control.
|
getLabel | public Control getLabel()(Code) | | |
getText | public Text getText()(Code) | | Returns the text control.
|
getValue | public String getValue()(Code) | | Returns the current entry value. If the entry is dirty and was not
commited, the value may be different from the text in the widget.
|
isDirty | public boolean isDirty()(Code) | | Returns true if the text has been modified.
|
setEditable | public void setEditable(boolean editable)(Code) | | |
setFormEntryListener | public void setFormEntryListener(IFormEntryListener listener)(Code) | | Attaches the listener for the entry.
Parameters: listener - |
setTextWidthHint | public void setTextWidthHint(int width)(Code) | | If GridData was used, set the width hint. If TableWrapData was used
set the max width. If no layout data was specified, this method does
nothing.
Parameters: width - |
setValue | public void setValue(String value)(Code) | | Sets the value of this entry.
Parameters: value - |
setValue | public void setValue(String value, boolean blockNotification)(Code) | | Sets the value of this entry with the possibility to turn the
notification off.
Parameters: value - Parameters: blockNotification - |
setVisible | public void setVisible(boolean visible)(Code) | | |
|
|