2.17.2: 2011-06-17

net.sf.basedb.clients.web
Class ModeInfo

java.lang.Object
  extended by net.sf.basedb.clients.web.ModeInfo

public class ModeInfo
extends Object

Version:
2.0
Author:
Nicklas

Field Summary
static ModeInfo DEFAULT
           
private static Pattern findMany
           
private static Pattern findOne
           
private static boolean HAS_CANCELBUTTON
           
private static boolean HAS_CHECK
           
private static boolean HAS_CLOSEBUTTON
           
private static boolean HAS_EDITLINK
           
private static boolean HAS_FILTER
           
private static boolean HAS_ICONS
           
private static boolean HAS_NAVIGATOR
           
private static boolean HAS_OKBUTTON
           
private static boolean HAS_PROPERTYLINK
           
private static boolean HAS_RADIO
           
private static boolean HAS_TOOLBAR
           
private  boolean hasCancelButton
           
private  boolean hasCheck
           
private  boolean hasCloseButton
           
private  boolean hasEditLink
           
private  boolean hasFilter
           
private  boolean hasIcons
           
private  boolean hasNavigator
           
private  boolean hasOkButton
           
private  boolean hasPropertyLink
           
private  boolean hasRadio
           
private  boolean hasToolbar
           
private static boolean IS_COMPACT
           
private  boolean isCompact
           
private static Map<String,ModeInfo> modes
           
private  String name
           
private static boolean NO_CANCELBUTTON
           
private static boolean NO_CHECK
           
private static boolean NO_CLOSEBUTTON
           
private static boolean NO_EDITLINK
           
private static boolean NO_FILTER
           
private static boolean NO_ICONS
           
private static boolean NO_NAVIGATOR
           
private static boolean NO_OKBUTTON
           
private static Permission NO_PERMISSION
           
private static boolean NO_PROPERTYLINK
           
private static boolean NO_RADIO
           
private static boolean NO_TOOLBAR
           
private static boolean NOT_COMPACT
           
private static boolean NOT_SELECTION_MODE
           
private  String pageType
           
private  Permission permission
           
private static boolean SELECTION_MODE
           
private  boolean selectionMode
           
static ModeInfo SELECTMULTIPLE
           
static ModeInfo SELECTMULTIPLE_NOBUTTONS
           
static ModeInfo SELECTONE
           
private  String titleTemplate
           
 
Constructor Summary
private ModeInfo(String name, String pageType, String titleTemplate, boolean hasToolbar, boolean hasFilter, boolean hasNavigator, boolean hasPropertyLink, boolean hasCheck, boolean hasRadio, boolean hasIcons, boolean isCompact, boolean hasEditLink, boolean hasOkButton, boolean hasCloseButton, boolean hasCancelButton, Permission permission, boolean selectionMode)
           
 
Method Summary
 Permission forceItemPermission()
           
 String generateTitle(String one, String many)
           
static ModeInfo get(String name)
           
 String getName()
           
 String getPageType()
           
 boolean hasCancelButton()
           
 boolean hasCheck()
           
 boolean hasCloseButton()
           
 boolean hasEditLink()
           
 boolean hasFilter()
           
 boolean hasIcons()
           
 boolean hasNavigator()
           
 boolean hasOkButton()
           
 boolean hasPropertyLink()
           
 boolean hasRadio()
           
 boolean hasToolbar()
           
 boolean isCompact()
           
 boolean isSelectionMode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HAS_TOOLBAR

private static final boolean HAS_TOOLBAR
See Also:
Constant Field Values

NO_TOOLBAR

private static final boolean NO_TOOLBAR
See Also:
Constant Field Values

HAS_FILTER

private static final boolean HAS_FILTER
See Also:
Constant Field Values

NO_FILTER

private static final boolean NO_FILTER
See Also:
Constant Field Values

HAS_NAVIGATOR

private static final boolean HAS_NAVIGATOR
See Also:
Constant Field Values

NO_NAVIGATOR

private static final boolean NO_NAVIGATOR
See Also:
Constant Field Values

HAS_CHECK

private static final boolean HAS_CHECK
See Also:
Constant Field Values

NO_CHECK

private static final boolean NO_CHECK
See Also:
Constant Field Values

HAS_RADIO

private static final boolean HAS_RADIO
See Also:
Constant Field Values

NO_RADIO

private static final boolean NO_RADIO
See Also:
Constant Field Values

HAS_ICONS

private static final boolean HAS_ICONS
See Also:
Constant Field Values

NO_ICONS

private static final boolean NO_ICONS
See Also:
Constant Field Values

IS_COMPACT

private static final boolean IS_COMPACT
See Also:
Constant Field Values

NOT_COMPACT

private static final boolean NOT_COMPACT
See Also:
Constant Field Values

HAS_OKBUTTON

private static final boolean HAS_OKBUTTON
See Also:
Constant Field Values

NO_OKBUTTON

private static final boolean NO_OKBUTTON
See Also:
Constant Field Values

HAS_CLOSEBUTTON

private static final boolean HAS_CLOSEBUTTON
See Also:
Constant Field Values

NO_CLOSEBUTTON

private static final boolean NO_CLOSEBUTTON
See Also:
Constant Field Values

HAS_CANCELBUTTON

private static final boolean HAS_CANCELBUTTON
See Also:
Constant Field Values

NO_CANCELBUTTON

private static final boolean NO_CANCELBUTTON
See Also:
Constant Field Values

HAS_PROPERTYLINK

private static final boolean HAS_PROPERTYLINK
See Also:
Constant Field Values

NO_PROPERTYLINK

private static final boolean NO_PROPERTYLINK
See Also:
Constant Field Values

HAS_EDITLINK

private static final boolean HAS_EDITLINK
See Also:
Constant Field Values

NO_EDITLINK

private static final boolean NO_EDITLINK
See Also:
Constant Field Values

SELECTION_MODE

private static final boolean SELECTION_MODE
See Also:
Constant Field Values

NOT_SELECTION_MODE

private static final boolean NOT_SELECTION_MODE
See Also:
Constant Field Values

NO_PERMISSION

private static final Permission NO_PERMISSION

modes

private static final Map<String,ModeInfo> modes

DEFAULT

public static final ModeInfo DEFAULT

SELECTONE

public static final ModeInfo SELECTONE

SELECTMULTIPLE

public static final ModeInfo SELECTMULTIPLE

SELECTMULTIPLE_NOBUTTONS

public static final ModeInfo SELECTMULTIPLE_NOBUTTONS

findOne

private static final Pattern findOne

findMany

private static final Pattern findMany

name

private final String name

pageType

private final String pageType

titleTemplate

private final String titleTemplate

hasToolbar

private final boolean hasToolbar

hasFilter

private final boolean hasFilter

hasNavigator

private final boolean hasNavigator

hasCheck

private final boolean hasCheck

hasRadio

private final boolean hasRadio

hasIcons

private final boolean hasIcons

isCompact

private final boolean isCompact

hasOkButton

private final boolean hasOkButton

hasCloseButton

private final boolean hasCloseButton

hasCancelButton

private final boolean hasCancelButton

hasPropertyLink

private final boolean hasPropertyLink

hasEditLink

private final boolean hasEditLink

permission

private final Permission permission

selectionMode

private final boolean selectionMode
Constructor Detail

ModeInfo

private ModeInfo(String name,
                 String pageType,
                 String titleTemplate,
                 boolean hasToolbar,
                 boolean hasFilter,
                 boolean hasNavigator,
                 boolean hasPropertyLink,
                 boolean hasCheck,
                 boolean hasRadio,
                 boolean hasIcons,
                 boolean isCompact,
                 boolean hasEditLink,
                 boolean hasOkButton,
                 boolean hasCloseButton,
                 boolean hasCancelButton,
                 Permission permission,
                 boolean selectionMode)
Method Detail

get

public static ModeInfo get(String name)

getName

public String getName()

getPageType

public String getPageType()

hasToolbar

public boolean hasToolbar()

hasFilter

public boolean hasFilter()

hasNavigator

public boolean hasNavigator()

hasCheck

public boolean hasCheck()

hasRadio

public boolean hasRadio()

hasIcons

public boolean hasIcons()

isCompact

public boolean isCompact()

hasOkButton

public boolean hasOkButton()

hasCloseButton

public boolean hasCloseButton()

hasCancelButton

public boolean hasCancelButton()

hasPropertyLink

public boolean hasPropertyLink()

hasEditLink

public boolean hasEditLink()

forceItemPermission

public Permission forceItemPermission()

isSelectionMode

public boolean isSelectionMode()

generateTitle

public String generateTitle(String one,
                            String many)

2.17.2: 2011-06-17