TWE 2.5-1 API

org.enhydra.jawe.base.panel
Class SpecialChoiceElement

java.lang.Object
  extended byorg.enhydra.shark.xpdl.XMLElement
      extended byorg.enhydra.shark.xpdl.XMLComplexChoice
          extended byorg.enhydra.jawe.base.panel.SpecialChoiceElement
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class SpecialChoiceElement
extends org.enhydra.shark.xpdl.XMLComplexChoice

Helper element for displaying choices of other elements.

Author:
Sasa Bojanic
See Also:
Serialized Form

Field Summary
protected  java.lang.String choosenSubElementName
           
protected  org.enhydra.shark.xpdl.XMLElement controlled
           
protected  java.lang.String controlledSubElementName
           
protected  org.enhydra.shark.xpdl.XMLEmptyChoiceElement emptyChoice
           
protected  boolean handleEmptyChoice
           
protected  boolean useOriginalElementToName
           
 
Fields inherited from class org.enhydra.shark.xpdl.XMLComplexChoice
cachesInitialized, choices, choosen
 
Fields inherited from class org.enhydra.shark.xpdl.XMLElement
isReadOnly, listeners, notifyListeners, notifyMainListeners, originalElementHashCode, parent, value
 
Constructor Summary
SpecialChoiceElement(org.enhydra.shark.xpdl.XMLElement controlled, java.lang.String controlledSubElementName, java.util.List chs, java.lang.Object chsn, boolean handleEmptyChoice, java.lang.String chsnSubElementName, java.lang.String name, boolean isRequired)
           
SpecialChoiceElement(org.enhydra.shark.xpdl.XMLElement controlled, java.lang.String controlledSubElementName, java.util.List chs, java.lang.Object chsn, boolean handleEmptyChoice, java.lang.String chsnSubElementName, java.lang.String name, boolean isRequired, boolean useOriginalElementToName)
           
 
Method Summary
protected  void fillChoices()
           
 org.enhydra.shark.xpdl.XMLElement getControlledElement()
           
 void setChoosen(org.enhydra.shark.xpdl.XMLElement ch)
           
 void setReadOnly(boolean readOnly)
          Overrides super-method to set this element and all of its choice elements read only value to the one specified.
 void setValue(java.lang.String v)
          Sets the element value.
 java.lang.String toName()
          Returns the name of element.
 
Methods inherited from class org.enhydra.shark.xpdl.XMLComplexChoice
clearCaches, clone, equals, getChoices, getChoosen, initCaches, isEmpty, makeAs, setNotifyListeners, setNotifyMainListeners
 
Methods inherited from class org.enhydra.shark.xpdl.XMLElement
addListener, createInfo, getListeners, getMainElement, getOriginalElementHashCode, getParent, isMainElement, isReadOnly, isRequired, notifyListeners, notifyMainListeners, removeListener, setParent, toValue
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controlled

protected org.enhydra.shark.xpdl.XMLElement controlled

controlledSubElementName

protected java.lang.String controlledSubElementName

choosenSubElementName

protected java.lang.String choosenSubElementName

emptyChoice

protected org.enhydra.shark.xpdl.XMLEmptyChoiceElement emptyChoice

handleEmptyChoice

protected boolean handleEmptyChoice

useOriginalElementToName

protected boolean useOriginalElementToName
Constructor Detail

SpecialChoiceElement

public SpecialChoiceElement(org.enhydra.shark.xpdl.XMLElement controlled,
                            java.lang.String controlledSubElementName,
                            java.util.List chs,
                            java.lang.Object chsn,
                            boolean handleEmptyChoice,
                            java.lang.String chsnSubElementName,
                            java.lang.String name,
                            boolean isRequired)

SpecialChoiceElement

public SpecialChoiceElement(org.enhydra.shark.xpdl.XMLElement controlled,
                            java.lang.String controlledSubElementName,
                            java.util.List chs,
                            java.lang.Object chsn,
                            boolean handleEmptyChoice,
                            java.lang.String chsnSubElementName,
                            java.lang.String name,
                            boolean isRequired,
                            boolean useOriginalElementToName)
Method Detail

setChoosen

public void setChoosen(org.enhydra.shark.xpdl.XMLElement ch)

setValue

public void setValue(java.lang.String v)
Description copied from class: org.enhydra.shark.xpdl.XMLElement
Sets the element value. If it is simple element or an non-choice attribute, this sets the actual value of the element. If it is choice attribute, it sets the choosen value. Only some complex elements (Condition, SchemaType, and ExtendedAttribute) allows you to use this method, while others will throw RuntimeException.


fillChoices

protected void fillChoices()

setReadOnly

public void setReadOnly(boolean readOnly)
Description copied from class: org.enhydra.shark.xpdl.XMLComplexChoice
Overrides super-method to set this element and all of its choice elements read only value to the one specified.


toName

public java.lang.String toName()
Description copied from class: org.enhydra.shark.xpdl.XMLElement
Returns the name of element.


getControlledElement

public org.enhydra.shark.xpdl.XMLElement getControlledElement()

TWE 2.5-1 API