ZenMagick 0.9.8


org.zenmagick.store.mvc.widgets.ZMorderStatusSelectFormWidget
\store\mvc\widgets\ZMOrderStatusSelectFormWidget.php at line 37

Class ZMorderStatusSelectFormWidget

ZMObject
└─ZMWidget
└─ZMFormWidget
└─ZMSelectFormWidget
└─ZMorderStatusSelectFormWidget

public class ZMorderStatusSelectFormWidget
extends ZMSelectFormWidget

A order status select form widget.

This widget will append a list of all available order stati to the options list. That means the generic options propert may be used to set custom options that will show up at the top of the list.

One typical use is to prepend an empty option if required.

Author:
DerManoMann
Version:
$Id: ZMOrderStatusSelectFormWidget.php 2610 2009-11-20 02:45:25Z dermanomann $

Constructor Summary

ZMorderStatusSelectFormWidget()

Create new instance.

Method Summary
array

getOptions()

Get the options map.

boolean

isShowKey()

Check if the numeric key should be appended to the description.

void

setShowKey(boolean enable)

Show/hide the numeric key.

Methods inherited from org.zenmagick.mvc.widgets.form.ZMSelectFormWidget
getOptions, getStringValue, isMultiValue, render, setMultiple, setOptions, setValue
Methods inherited from org.zenmagick.mvc.widgets.form.ZMFormWidget
compare, getAttributeNames, getAttributeString, getName, getStringValue, getValue, isMultiValue, setAttributeNames, setName, setValue
Methods inherited from org.zenmagick.mvc.widgets.ZMWidget
getDescription, getTitle, isEnabled, render, setDescription, setEnabled, setTitle
Methods inherited from org.zenmagick.core.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\store\mvc\widgets\ZMOrderStatusSelectFormWidget.php at line 44

ZMorderStatusSelectFormWidget

public ZMorderStatusSelectFormWidget()

Create new instance.


Method Detail

\store\mvc\widgets\ZMOrderStatusSelectFormWidget.php at line 79

getOptions

public array getOptions()

Get the options map.

Returns:
Map of value/name pairs.

\store\mvc\widgets\ZMOrderStatusSelectFormWidget.php at line 70

isShowKey

public boolean isShowKey()

Check if the numeric key should be appended to the description.

Returns:
true to append, false to hide.

\store\mvc\widgets\ZMOrderStatusSelectFormWidget.php at line 61

setShowKey

public void setShowKey(boolean enable)

Show/hide the numeric key.

Parameters:
enable - true to append the numeric value to the description.

ZenMagick 0.9.8