Class RadioButton
java.lang.Object
com.independentsoft.office.odf.forms.Control
com.independentsoft.office.odf.forms.RadioButton
- All Implemented Interfaces:
IFormContent,IContentElement
Defines a control which acts like a check box except that when multiple radio buttons belong to the same group they are mutually exclusive.
-
Field Summary
Fields inherited from class com.independentsoft.office.odf.forms.Control
eventListeners, parent, properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Returns all content elements.Gets the specific concrete rendition or implementation of a control that should be instantiated.Specifies the name of a column in the result set defined by a (data-aware) form.getID()Gets an identifier for a control element.Specifies which border (start, end) or axis (center) of an image and a text are to be aligned.Gets the location of an image relative to the text of a control.getLabel()Gets the text for a control.getName()Gets the name of a form or control element.Returns the parent content element.intGets tabbing navigation order of controls within a form.getTitle()Gets additional information about a control.getValue()Gets the default value of an input control.Gets the visual effect to apply to a control.booleanSpecifies the state of a radio button or option element.booleanSpecifies whether a control can accept user input.booleanSpecifies whether a control is included in the tabbing navigation order.booleanSpecifies whether a control is printed when a user prints a document in which the control is contained.booleanSpecifies the default state of a radio button or option.voidsetControlImplementation(String controlImplementation)Sets the specific concrete rendition or implementation of a control that should be instantiated.voidsetCurrentSelected(boolean isCurrentSelected)Specifies the state of a radio button or option element.voidsetDataField(String dataField)Specifies the name of a column in the result set defined by a (data-aware) form.voidsetDisabled(boolean isDisabled)Specifies whether a control can accept user input.voidsetEnableTabbingNavigation(boolean enableTabbingNavigation)Specifies whether a control is included in the tabbing navigation order.voidSets an identifier for a control element.voidsetImageAlignment(ImageAlignment imageAlignment)Specifies which border (start, end) or axis (center) of an image and a text are to be aligned.voidsetImagePosition(ImagePosition imagePosition)Sets the location of an image relative to the text of a control.voidSets the text for a control.voidSets the name of a form or control element.voidsetParent(IContentElement parent)Sets the parent content element.voidsetPrintable(boolean isPrintable)Specifies whether a control is printed when a user prints a document in which the control is contained.voidsetSelected(boolean isSelected)Specifies the default state of a radio button or option.voidsetTabIndex(int tabIndex)Sets tabbing navigation order of controls within a form.voidSets additional information about a control.voidSets the default value of an input control.voidsetVisualEffect(VisualEffect visualEffect)Sets the visual effect to apply to a control.toString()Converts the value of the current RadioButton object to its equivalent string representation.Methods inherited from class com.independentsoft.office.odf.forms.Control
getEventListeners, getProperties
-
Constructor Details
-
RadioButton
public RadioButton()Initializes a new instance of the RadioButton class.
-
-
Method Details
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Specified by:
getContentElementsin classControl- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Overrides:
getParentin classControl- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Overrides:
setParentin classControl- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIFormContent- Specified by:
clonein classControl- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current RadioButton object to its equivalent string representation. -
getName
Gets the name of a form or control element.- Returns:
- the name
-
setName
Sets the name of a form or control element.- Parameters:
name- the new name
-
getControlImplementation
Gets the specific concrete rendition or implementation of a control that should be instantiated.- Returns:
- the control implementation
-
setControlImplementation
Sets the specific concrete rendition or implementation of a control that should be instantiated.- Parameters:
controlImplementation- the new control implementation
-
getID
Gets an identifier for a control element.- Returns:
- the id
-
setID
Sets an identifier for a control element.- Parameters:
id- the new id
-
getValue
Gets the default value of an input control.- Returns:
- the value
-
setValue
Sets the default value of an input control.- Parameters:
value- the new value
-
isDisabled
public boolean isDisabled()Specifies whether a control can accept user input.- Returns:
- true, if is disabled
-
setDisabled
public void setDisabled(boolean isDisabled)Specifies whether a control can accept user input.- Parameters:
isDisabled- the new disabled
-
isPrintable
public boolean isPrintable()Specifies whether a control is printed when a user prints a document in which the control is contained.- Returns:
- true, if is printable
-
setPrintable
public void setPrintable(boolean isPrintable)Specifies whether a control is printed when a user prints a document in which the control is contained.- Parameters:
isPrintable- the new printable
-
getTabIndex
public int getTabIndex()Gets tabbing navigation order of controls within a form.- Returns:
- the tab index
-
setTabIndex
public void setTabIndex(int tabIndex)Sets tabbing navigation order of controls within a form.- Parameters:
tabIndex- the new tab index
-
getTitle
Gets additional information about a control.- Returns:
- the title
-
setTitle
Sets additional information about a control.- Parameters:
title- the new title
-
getDataField
Specifies the name of a column in the result set defined by a (data-aware) form. A control interchanges content with its column when: -the current row of a form changes, the control is initialized with the value from its column. -the user changes the content of a control, this changed value is written back to its column.- Returns:
- the data field
-
setDataField
Specifies the name of a column in the result set defined by a (data-aware) form. A control interchanges content with its column when: -the current row of a form changes, the control is initialized with the value from its column. -the user changes the content of a control, this changed value is written back to its column.- Parameters:
dataField- the new data field
-
isCurrentSelected
public boolean isCurrentSelected()Specifies the state of a radio button or option element.- Returns:
- true, if is current selected
-
setCurrentSelected
public void setCurrentSelected(boolean isCurrentSelected)Specifies the state of a radio button or option element.- Parameters:
isCurrentSelected- the new current selected
-
isSelected
public boolean isSelected()Specifies the default state of a radio button or option. A control initializes to the default state specified by this attribute.- Returns:
- true, if is selected
-
setSelected
public void setSelected(boolean isSelected)Specifies the default state of a radio button or option. A control initializes to the default state specified by this attribute.- Parameters:
isSelected- the new selected
-
getLabel
Gets the text for a control.- Returns:
- the label
-
setLabel
Sets the text for a control.- Parameters:
label- the new label
-
getVisualEffect
Gets the visual effect to apply to a control.- Returns:
- the visual effect
-
setVisualEffect
Sets the visual effect to apply to a control.- Parameters:
visualEffect- the new visual effect
-
getImagePosition
Gets the location of an image relative to the text of a control.- Returns:
- the image position
-
setImagePosition
Sets the location of an image relative to the text of a control.- Parameters:
imagePosition- the new image position
-
getImageAlignment
Specifies which border (start, end) or axis (center) of an image and a text are to be aligned.- Returns:
- the image alignment
-
setImageAlignment
Specifies which border (start, end) or axis (center) of an image and a text are to be aligned.- Parameters:
imageAlignment- the new image alignment
-