com.oktiva.mogno.additional
Class SuperSelect

java.lang.Object
  extended bycom.oktiva.mogno.Component
      extended bycom.oktiva.mogno.Visual
          extended bycom.oktiva.mogno.Container
              extended bycom.oktiva.mogno.html.Select
                  extended bycom.oktiva.mogno.additional.SelectView
                      extended bycom.oktiva.mogno.additional.SuperSelect
All Implemented Interfaces:
java.lang.Cloneable, ComponentView

public class SuperSelect
extends SelectView

A select with options.


Field Summary
 java.lang.String optionsString
           
 boolean orderInverse
           
 boolean orderOptions
           
 java.lang.String orderType
           
 
Fields inherited from class com.oktiva.mogno.additional.SelectView
viewOnly
 
Fields inherited from class com.oktiva.mogno.html.Select
dir, disabled, evOnChange, lang, multiple, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, required, size, tabindex, values
 
Fields inherited from class com.oktiva.mogno.Container
afterEnd, content
 
Fields inherited from class com.oktiva.mogno.Visual
evOnShow, evOnSyntaxError, gridHeight, gridWeightX, gridWeightY, gridWidth, id, lastError, left, parent, problematic, style, styleClass, title, top
 
Fields inherited from class com.oktiva.mogno.Component
bag, componentFiler, componentFilerParams, designing, eventQueue, evOnCreate, name, owned, ownedClasses, owner, tag, xmlFileName
 
Constructor Summary
SuperSelect()
          Creates a new instance of SuperSelect
 
Method Summary
 void addOption(java.util.Hashtable option)
          Add an option to the select.
 void addOption(java.lang.String value, java.lang.String label)
          Add an option to the select.
protected  java.util.Hashtable getContentsByValue()
           
 java.lang.String getOptionsString()
          String in the format value|label[&&value|label[&&...]]
 java.lang.String getOrderType()
          Getter for property orderType.
 boolean isOrderInverse()
          Getter for property orderInverse.
 boolean isOrderOptions()
          Getter for property orderOptions.
 void setOptions(java.util.Vector options)
          Set the options.
 void setOptionsString(java.lang.String optionsString)
          String in the format value|label[&&value|label[&&...]]
 void setOrderInverse(boolean orderInverse)
          Setter for property orderInverse.
 void setOrderOptions(boolean orderOptions)
          Setter for property orderOptions.
 void setOrderType(java.lang.String orderType)
          Setter for property orderType.
 java.lang.String startContainer()
          Starts the select and puts the options.
 
Methods inherited from class com.oktiva.mogno.additional.SelectView
isViewOnly, setViewOnly, show
 
Methods inherited from class com.oktiva.mogno.html.Select
checkSyntax, getDir, getDisabled, getEvOnChange, getId, getLang, getMultiple, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getRequired, getSize, getTabindex, getValue, getValues, htmlAttributes, isSelected, receiveRequest, serializeValues, setDir, setDisabled, setEvOnChange, setLang, setMultiple, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setRequired, setSize, setTabindex, setValue, setValues, unserializeValues
 
Methods inherited from class com.oktiva.mogno.Container
addChildsVector, betweenColumns, betweenRows, endColumn, endContainer, endRow, getChildsVector, getContent, getFullComponentsVector, getOrderedChildNames, getOrderedChildsVector, nonAttributeGetters, orderChildsVector, selectParentComponent, setContent, startColumn, startRow
 
Methods inherited from class com.oktiva.mogno.Visual
buildHtmlAttributes, cellhalignHtmlAttributes, cellvalignHtmlAttributes, coreHtmlAttributes, descendentOf, eventsHtmlAttributes, getEvOnShow, getEvOnSyntaxError, getGridHeight, getGridWeightX, getGridWeightY, getGridWidth, getLastError, getLeft, getParent, getStyle, getStyleClass, getTitle, getTop, i18nHtmlAttributes, localizableAttributes, setEvOnShow, setEvOnSyntaxError, setGridHeight, setGridWeightX, setGridWeightY, setGridWidth, setId, setLastError, setLeft, setParent, setStyle, setStyleClass, setTitle, setTop, showHtmlAttributes
 
Methods inherited from class com.oktiva.mogno.Component
attribsHash, createOwnedComponents, dispatch, dispatchAll, dispatchFunction, eventParamTypes, eventParamValues, freeChild, getApplication, getAttrsTypes, getBag, getChild, getChildClass, getClone, getEvOnCreate, getFromBag, getName, getOwner, initialize, initialize, initialize, initialize, isDesigning, listChilds, putInBag, queue, registerChild, removeFromBag, serializedBag, setBag, setComponentFiler, setComponentFilerParams, setDesigning, setEvOnCreate, setName, setOwner, setProperties, store, unserializeBag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

optionsString

public java.lang.String optionsString

orderOptions

public boolean orderOptions

orderType

public java.lang.String orderType

orderInverse

public boolean orderInverse
Constructor Detail

SuperSelect

public SuperSelect()
Creates a new instance of SuperSelect

Method Detail

startContainer

public java.lang.String startContainer()
Starts the select and puts the options.

Overrides:
startContainer in class Select

getContentsByValue

protected java.util.Hashtable getContentsByValue()
Overrides:
getContentsByValue in class SelectView

addOption

public void addOption(java.util.Hashtable option)
Add an option to the select.

Parameters:
option - Hashtable with keys "value" and "label".

addOption

public void addOption(java.lang.String value,
                      java.lang.String label)
Add an option to the select.


setOptions

public void setOptions(java.util.Vector options)
Set the options. It's a Vector of Hashtables, with keys "value" and "label".


getOptionsString

public java.lang.String getOptionsString()
String in the format value|label[&&value|label[&&...]]


setOptionsString

public void setOptionsString(java.lang.String optionsString)
String in the format value|label[&&value|label[&&...]]


isOrderOptions

public boolean isOrderOptions()
Getter for property orderOptions. Default: "true"

Returns:
Value of property orderOptions.

setOrderOptions

public void setOrderOptions(boolean orderOptions)
Setter for property orderOptions. Default: "false"

Parameters:
orderOptions - New value of property orderOptions.

getOrderType

public java.lang.String getOrderType()
Getter for property orderType. Default: "label", can be also "value".

Returns:
Value of property orderType.

setOrderType

public void setOrderType(java.lang.String orderType)
Setter for property orderType. Default: "label", can be also "value".

Parameters:
orderType - New value of property orderType.

isOrderInverse

public boolean isOrderInverse()
Getter for property orderInverse. Default: "false".

Returns:
Value of property orderInverse.

setOrderInverse

public void setOrderInverse(boolean orderInverse)
Setter for property orderInverse. Default: "false".

Parameters:
orderInverse - New value of property orderInverse.