|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.tentackle.ui.FormPanel
org.tentackle.ui.FormComponentPanel
org.tentackle.ui.YesNoRadioButton
public class YesNoRadioButton
Radiobuttons to get a definitive decision from the user. The user must click yes or no or the answer is undetermined.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
YesNoRadioButton()
Creates a YesNoRadioButton. |
|
| Method Summary | |
|---|---|
Boolean |
getFormValue()
Retrieves the value from this component. The method is used to update the data if the view has changed because the user edited it. |
String |
getNoText()
Gets the text for the "no" button. |
Boolean |
getSelected()
Gets the decision. |
String |
getYesText()
Gets the text for the "yes" button. |
boolean |
isUndetermined()
Checks if user has chosen a value. |
boolean |
isValueChanged()
Checks whether the contents have been changed since the last savepoint. |
void |
saveValue()
Sets a savepoint for the data of this component. Allows to decide whether the user has changed the data associated with this component or not. |
void |
setChangeable(boolean changeable)
Set the component to be changeable. This is a unified abstraction and will be translated to setEditable or setEnabled, whatever is appropriate to this component. |
void |
setFormValue(Object object)
Sets a value in this component. The method is used to update the view if the data has changed. |
void |
setNoText(String text)
Sets the text for the "no" button. |
void |
setSelected(Boolean selected)
Sets the value. |
void |
setYesText(String text)
Sets the text for the "yes" button. |
| Methods inherited from class org.tentackle.ui.FormPanel |
|---|
addActionListener, areValuesChanged, componentAdded, componentRemoved, fireActionPerformed, getFormValues, getTitle, isAllChangeable, isHonourAllChangeable, removeActionListener, saveValues, setAllChangeable, setFormValues, setFormValuesKeepChanged, setHonourAllChangeable, setTitle, triggerValuesChanged |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.tentackle.ui.FormComponent |
|---|
transferFocus, transferFocusBackward |
| Constructor Detail |
|---|
public YesNoRadioButton()
| Method Detail |
|---|
public boolean isUndetermined()
public Boolean getSelected()
public Boolean getFormValue()
FormComponent
getFormValue in interface FormComponentgetFormValue in class FormComponentPanelgetSelected()public void setSelected(Boolean selected)
selected - is Boolean.TRUE if yes, Boolean.FALSE if no, null if no decision by userpublic void setFormValue(Object object)
FormComponent
setFormValue in interface FormComponentsetFormValue in class FormComponentPanelobject - is the object to setsetSelected(Boolean)public void setYesText(String text)
text - the text for the "yes" buttonpublic String getYesText()
public void setNoText(String text)
text - the text for the "no" buttonpublic String getNoText()
public void setChangeable(boolean changeable)
FormComponent
setChangeable in interface FormComponentsetChangeable in class FormComponentPanelchangeable - true the user can edit the data, false if show onlypublic void saveValue()
FormComponent
saveValue in interface FormComponentsaveValue in class FormComponentPanelFormComponent.isValueChanged()public boolean isValueChanged()
FormComponent
isValueChanged in interface FormComponentisValueChanged in class FormComponentPanelFormComponent.saveValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||