org.odftoolkit.simple.common.field
Class ConditionField

java.lang.Object
  extended by org.odftoolkit.simple.Component
      extended by org.odftoolkit.simple.common.field.Field
          extended by org.odftoolkit.simple.common.field.ConditionField

public class ConditionField
extends Field

ConditionField specifies a condition for display of one text string or another. If the condition is true, one of the text strings is displayed. If the condition is false, the other text string is displayed.

Since:
0.5

Nested Class Summary
 
Nested classes/interfaces inherited from class org.odftoolkit.simple.common.field.Field
Field.FieldType
 
Method Summary
 Field.FieldType getFieldType()
          Return the type of this field.
 OdfElement getOdfElement()
          Return the instance of OdfElement which presents this structure.
 void updateCondition(String condition)
          Update the condition of this field.
 void updateFalseText(String text)
          Update the false text of this condition field.
 void updateTrueText(String text)
          Update the true text of this condition field.
 
Methods inherited from class org.odftoolkit.simple.Component
getComponentByElement, getOwnerDocument, registerComponent, unregisterComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

updateCondition

public void updateCondition(String condition)
Update the condition of this field.

Parameters:
condition - the new condition of this condition field.

updateTrueText

public void updateTrueText(String text)
Update the true text of this condition field.

Parameters:
text - the new text content.

updateFalseText

public void updateFalseText(String text)
Update the false text of this condition field.

Parameters:
text - the new text content.

getOdfElement

public OdfElement getOdfElement()
Description copied from class: Component
Return the instance of OdfElement which presents this structure.

Specified by:
getOdfElement in class Component
Returns:
the instance of OdfElement

getFieldType

public Field.FieldType getFieldType()
Description copied from class: Field
Return the type of this field.

Specified by:
getFieldType in class Field
Returns:
the type of this field.


Copyright © 2010-2017 The Apache Software Foundation. All Rights Reserved.