|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A SCCheckbox may have one of two states, ("checked" or "unchecked"), and a sendText String associated with each state. These sendText Strings will be sent to the host when the SCCheckbox experiences a state change to maintain consistency between what it displays and what is actually on the host. The SCCheckbox also has a displayText String that is the "caption" the user will see.
Method Summary | |
java.lang.String |
getDisplayText()
Gets the displayText. |
java.lang.String |
getSendText()
Gets the sendText associated with the current state of the checkbox. |
java.lang.String |
getSendText(boolean state)
Gets the sendText associated with a specified state for the checkbox. |
boolean |
isSelected()
Determines whether this checkbox is in the "on" or "off" state. |
void |
setDisplayText(java.lang.String displayText)
Sets the displayText. |
void |
setSelected(boolean selected)
Sets the state of this checkbox to the "on"/"off" state. |
void |
setSendText(java.lang.String sendText,
boolean state)
Sets the sendText for the specified state(checked= true ,
unchecked=false ). |
Methods inherited from interface com.ibm.hi.customizer.beans.scci.SCCustomComponent |
getBackgroundColor, getCaption, getForegroundColor, getGlobalRead, getGlobalWrite, getHelpCaption, getHostLinkLength, getHostLinkPosition, getTabNumber, hasFocus, isTempHidden, isVisible, readGlobalVariable, requestFocus, setBackgroundColor, setCaption, setForegroundColor, setGlobalRead, setGlobalWrite, setHelpCaption, setTempHidden, setVisible, toString, writeGlobalVariable |
Method Detail |
public java.lang.String getDisplayText()
setDisplayText(java.lang.String)
public java.lang.String getSendText()
setSendText(java.lang.String, boolean)
public java.lang.String getSendText(boolean state)
state
- the specified statesetSendText(java.lang.String, boolean)
public void setDisplayText(java.lang.String displayText)
displayText
- the displayText to setgetDisplayText()
public void setSendText(java.lang.String sendText, boolean state)
true
,
unchecked=false
).sendText
- the sendText to set.state
- the state for which to send the sendTextgetDisplayText()
public void setSelected(boolean selected)
selected
- the "on"/"off" state to setisSelected()
public boolean isSelected()
true
indicates the "on" state,
and false
indicates the "off" state.setSelected(boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |