ZenMagick 0.9.6


org.zenmagick.misc.ZMSortOption

Class ZMSortOption

ZMObject
|
+--ZMSortOption

public class ZMSortOption
extends ZMObject

A single sort option.

The returned id will automatically reflect the current status, the id the sort order.

Author:
DerManoMann
Rp.package:
org.zenmagick.rp.resultlist.model
Version:
$Id: ZMSortOption.php 2121 2009-03-31 01:56:56Z dermanomann $

Fields inherited from org.zenmagick.ZMObject
properties_
Constructor Summary

ZMSortOption(string name, int id, boolean active, boolean decending)

Create a new sort option.

Method Summary
string

getId()

Get the option id.

string

getName()

Get the option name.

string

getReverseId()

Get the reverse option id.

boolean

isActive()

Check if this option is active.

boolean

isDecending()

Check if the sorting is ascending or decending.

Methods inherited from org.zenmagick.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

ZMSortOption

public ZMSortOption(string name, int id, boolean active, boolean decending)

Create a new sort option.

Parameters:
name - The option name.
id - The option id.
active - Optional active flag if this option is currently active.
decending - Ascending/decending flag (default is ascending.

Method Detail

getId

public string getId()

Get the option id.

Returns:
The option id.

getName

public string getName()

Get the option name.

Returns:
The option name.

getReverseId

public string getReverseId()

Get the reverse option id.

Returns:
The reverse option id.

isActive

public boolean isActive()

Check if this option is active.

Returns:
true if this option is active, false, if not.

isDecending

public boolean isDecending()

Check if the sorting is ascending or decending.

Returns:
true if sorting is decending, false if sorting * is ascending.

ZenMagick 0.9.6