com.tssap.util.ui.reuse.chooser.impl
Class TextChooser
java.lang.Object
|
+--com.tssap.util.ui.reuse.chooser.impl.TextChooser
- All Implemented Interfaces:
- IChooser, IDisplayableChooser, ITextChooser
- Direct Known Subclasses:
- RadioChooser
- public class TextChooser
- extends java.lang.Object
- implements ITextChooser
- Since:
- 17.09.2002
|
Constructor Summary |
TextChooser(java.lang.String textLabel,
java.lang.String textEntry,
java.lang.String buttonText,
org.eclipse.swt.graphics.Image buttonImage,
IDisplayableChooser chooser)
Constructor for TextChooser. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextChooser
public TextChooser(java.lang.String textLabel,
java.lang.String textEntry,
java.lang.String buttonText,
org.eclipse.swt.graphics.Image buttonImage,
IDisplayableChooser chooser)
- Constructor for TextChooser. Full efficiency only before calling createPartControl!
When creating a TextChooser instance after having called createPartControl(..) and
setting this instance, only parameter textEntry makes sense to be set.
The other parameters can be null because it is not possible to set them afterwards.
In other words changes on e.g. the buttonText won't occur. So, better use setTextEntry(...)
instead.
- Parameters:
textLabel - textEntry - buttonText - buttonImage - chooser -
getTextLabel
public java.lang.String getTextLabel()
- Specified by:
getTextLabel in interface ITextChooser
- See Also:
ITextChooser.getTextLabel()
setTextLabel
public void setTextLabel(java.lang.String textLabel)
- Sets the textLabel.
- Specified by:
setTextLabel in interface ITextChooser
- Parameters:
textLabel - The textLabel to set
getTextEntry
public java.lang.String getTextEntry()
- Specified by:
getTextEntry in interface ITextChooser
- See Also:
ITextChooser.getTextEntry()
setTextEntry
public void setTextEntry(java.lang.String textEntry)
- Sets the textEntry.
- Specified by:
setTextEntry in interface ITextChooser
- Parameters:
textEntry - The textEntry to set
getButtonText
public java.lang.String getButtonText()
- Specified by:
getButtonText in interface ITextChooser
- See Also:
ITextChooser.getButtonText()
setButtonText
public void setButtonText(java.lang.String buttonText)
- Sets the buttonText.
- Specified by:
setButtonText in interface ITextChooser
- Parameters:
buttonText - The buttonText to set
setButtonImage
public void setButtonImage(org.eclipse.swt.graphics.Image buttonImage)
- Sets the buttonImage.
- Specified by:
setButtonImage in interface ITextChooser
- Parameters:
buttonImage - The buttonImage to set
getButtonImage
public org.eclipse.swt.graphics.Image getButtonImage()
- Specified by:
getButtonImage in interface ITextChooser
- See Also:
ITextChooser.getButtonImage()
getChooser
public IDisplayableChooser getChooser()
- Specified by:
getChooser in interface ITextChooser
- See Also:
ITextChooser.getChooser()
setChooser
public void setChooser(IDisplayableChooser chooser)
- Sets the chooser.
- Specified by:
setChooser in interface ITextChooser
- Parameters:
chooser - The chooser to set
getSelection
public java.lang.String getSelection(java.lang.String currentText,
org.eclipse.swt.widgets.Shell parentShell)
- Specified by:
getSelection in interface IDisplayableChooser
- See Also:
IDisplayableChooser.getSelection(String, Shell)
Copyright © 2005 SAP AG. All Rights Reserved.