|
RSE Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rse.ui.widgets.SystemPortPrompt
public class SystemPortPrompt
A composite encapsulating the GUI widgets for prompting for a port. Used in the core SubSystem property page but also be instantiated and used anywhere.
Field Summary | |
---|---|
protected SystemMessage |
errorMessage
|
protected int |
existingPortValue
|
protected ISystemMessageLine |
msgLine
|
protected boolean |
portApplicable
|
protected boolean |
portEditable
|
protected ISystemValidator |
portValidator
|
Constructor Summary | |
---|---|
SystemPortPrompt(Composite parent,
int style,
ISystemMessageLine msgLine,
boolean wantLabel,
boolean isPortEditable,
int existingPortValue,
ISystemValidator portValidator)
Constructor when you want a new composite to hold the child controls |
|
SystemPortPrompt(Composite composite_prompts,
ISystemMessageLine msgLine,
boolean wantLabel,
boolean isPortEditable,
int existingPortValue,
ISystemValidator portValidator)
Constructor when you have an existing composite to hold the child controls |
Method Summary | |
---|---|
protected void |
clearErrorMessage()
|
protected void |
createPortPrompt(Composite composite_prompts,
boolean wantLabel)
Create GUI widgets |
int |
getPort()
Get user-entered Port number. |
Control |
getPortField()
Return the entry field or label for the port prompt |
String |
getPortString()
Return user-enter Port number as a string |
protected void |
init(Composite composite_prompts,
ISystemMessageLine msgLine,
boolean wantLabel,
boolean isPortEditable,
int existingPortValue,
ISystemValidator portValidator)
Initialize vars, create and init prompts |
protected String |
internalGetPort()
Return user-entered Port number. |
boolean |
isComplete()
Return true if current port value is without error |
boolean |
isEditable()
Return true if port is user-editable |
protected boolean |
isPortApplicable()
Return true if the port is applicable. |
protected boolean |
isPortEditable()
Return true if the port is editable for this subsystem |
void |
setDefault()
Reset to original value |
protected void |
setErrorMessage(SystemMessage msg)
|
boolean |
setFocus()
Set the focus |
void |
setPort(int port)
Set the initial port value |
SystemMessage |
validatePortInput()
Validate port value per keystroke |
void |
widgetDefaultSelected(SelectionEvent event)
|
void |
widgetSelected(SelectionEvent event)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SystemMessage errorMessage
protected boolean portEditable
protected boolean portApplicable
protected int existingPortValue
protected ISystemValidator portValidator
protected ISystemMessageLine msgLine
Constructor Detail |
---|
public SystemPortPrompt(Composite parent, int style, ISystemMessageLine msgLine, boolean wantLabel, boolean isPortEditable, int existingPortValue, ISystemValidator portValidator)
public SystemPortPrompt(Composite composite_prompts, ISystemMessageLine msgLine, boolean wantLabel, boolean isPortEditable, int existingPortValue, ISystemValidator portValidator)
Method Detail |
---|
public int getPort()
public String getPortString()
public boolean isEditable()
public boolean isComplete()
public void setPort(int port)
public boolean setFocus()
public void setDefault()
public Control getPortField()
public SystemMessage validatePortInput()
protected void init(Composite composite_prompts, ISystemMessageLine msgLine, boolean wantLabel, boolean isPortEditable, int existingPortValue, ISystemValidator portValidator)
protected String internalGetPort()
protected void createPortPrompt(Composite composite_prompts, boolean wantLabel)
protected boolean isPortApplicable()
protected boolean isPortEditable()
protected void setErrorMessage(SystemMessage msg)
protected void clearErrorMessage()
public void widgetDefaultSelected(SelectionEvent event)
widgetDefaultSelected
in interface SelectionListener
public void widgetSelected(SelectionEvent event)
widgetSelected
in interface SelectionListener
|
RSE Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |