Style Intelligence v12.0

inetsoft.report
Interface ChoiceElement

All Superinterfaces:
Cloneable, FieldElement, HyperlinkSupport, PainterElement, ReportElement, Serializable

public interface ChoiceElement
extends FieldElement

This class represents a Choice form element. A choice element is an active element that can be used to select one item from a list of items.

* Only available in Style Report/EE.


Field Summary
 
Fields inherited from interface inetsoft.report.ReportElement
AGGREGATE, AUTOSIZE, GROW, LOCAL_QUERY, QUERY, XNODEPATH
 
Method Summary
 Object[] getChoices()
          Get the list of items in the choice element.
 Object getSelectedItem()
          Get the selected item.
 Object[] getValues()
          Get the list of values.
 boolean isOptional()
          Check if this field is optional.
 void setChoices(Object[] text)
          Set the list of items in the choice element.
 void setOptional(boolean optional)
          Set the optional property.
 void setSelectedItem(Object selected)
          Set the selected item.
 void setValues(Object[] values)
          Set a list of values to choose the value from.
 
Methods inherited from interface inetsoft.report.FieldElement
containsHiddenField, getForm, getHiddenField, getHiddenFieldNames, getName, getOnMouseDown, getOnSubmit, getToolTip, getValue, isDisabledOnStage, isEnabled, isSubmitOnChange, removeHiddenField, setEnabled, setForm, setHiddenField, setName, setOnMouseDown, setOnSubmit, setSubmitOnChange, setToolTip, setValue
 
Methods inherited from interface inetsoft.report.PainterElement
getAnchor, getHyperlink, getHyperlinkAreas, getLayout, getMargin, getPainter, getRotation, getSize, getWrapping, setAnchor, setHyperlink, setLayout, setMargin, setPainter, setRotation, setSize, setWrapping
 
Methods inherited from interface inetsoft.report.ReportElement
clone, getAlignment, getBackground, getCSSClass, getFont, getForeground, getFullName, getID, getIndent, getOnClick, getPreferredSize, getProperty, getPropertyNames, getScript, getSpacing, getTarget, getType, getUserObject, isHideOnPrint, isKeepWithNext, isVisible, setAlignment, setBackground, setContext, setCSSClass, setFont, setForeground, setFullName, setHideOnPrint, setID, setIndent, setKeepWithNext, setOnClick, setProperty, setScript, setSpacing, setTarget, setUserObject, setVisible
 
Methods inherited from interface inetsoft.report.HyperlinkSupport
getHyperlink, setHyperlink
 

Method Detail

getChoices

Object[] getChoices()
Get the list of items in the choice element.


setChoices

void setChoices(Object[] text)
Set the list of items in the choice element.


setValues

void setValues(Object[] values)
Set a list of values to choose the value from.


getValues

Object[] getValues()
Get the list of values.

Returns:
null if value is not set.

getSelectedItem

Object getSelectedItem()
Get the selected item.


setSelectedItem

void setSelectedItem(Object selected)
Set the selected item.


isOptional

boolean isOptional()
Check if this field is optional.


setOptional

void setOptional(boolean optional)
Set the optional property.


Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.