|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.core.ui.widgets.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 | |
---|---|
static String |
copyright
|
protected SystemMessage |
errorMessage
|
protected Integer |
existingPortValue
|
protected ISystemMessageLine |
msgLine
|
protected boolean |
portApplicable
|
protected boolean |
portEditable
|
protected ISystemValidator |
portValidator
|
protected ResourceBundle |
rb
|
Constructor Summary | |
---|---|
SystemPortPrompt(Composite parent,
int style,
ISystemMessageLine msgLine,
boolean wantLabel,
boolean isPortEditable,
Integer 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,
Integer 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 |
Integer |
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,
Integer 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(Integer 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 |
public static final String copyright
protected SystemMessage errorMessage
protected ResourceBundle rb
protected boolean portEditable
protected boolean portApplicable
protected Integer existingPortValue
protected ISystemValidator portValidator
protected ISystemMessageLine msgLine
Constructor Detail |
public SystemPortPrompt(Composite parent, int style, ISystemMessageLine msgLine, boolean wantLabel, boolean isPortEditable, Integer existingPortValue, ISystemValidator portValidator)
public SystemPortPrompt(Composite composite_prompts, ISystemMessageLine msgLine, boolean wantLabel, boolean isPortEditable, Integer existingPortValue, ISystemValidator portValidator)
Method Detail |
public Integer getPort()
public String getPortString()
public boolean isEditable()
public boolean isComplete()
public void setPort(Integer 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, Integer 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)
public void widgetSelected(SelectionEvent event)
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |