Package net.sf.basedb.clients.web
Class ModeInfo
java.lang.Object
net.sf.basedb.clients.web.ModeInfo
- Version:
- 2.0
- Author:
- Nicklas
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
This implementation create main contextes from a mode and item type which means that we can have different default subcontexts for the default list pages and for selection list pages. -
Field Summary
Modifier and TypeFieldDescriptionstatic final ModeInfo
Mode for adding members to an item list.static final ModeInfo
private static final Pattern
private static final Pattern
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private final boolean
private final boolean
private final boolean
private final boolean
private final boolean
private final boolean
private final boolean
private final boolean
private final boolean
private final boolean
private final boolean
private static final boolean
private final boolean
private final String
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final Permission
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private final String
private final Permission
static final ModeInfo
private static final boolean
private final boolean
static final ModeInfo
static final ModeInfo
static final ModeInfo
private final String
-
Constructor Summary
ModifierConstructorDescriptionprivate
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
Modifier and TypeMethodDescriptiongenerateTitle
(String one, String many) static ModeInfo
getMainContext
(Item itemType) Get a main context for this mode.getName()
boolean
boolean
hasCheck()
boolean
boolean
boolean
boolean
hasIcons()
boolean
boolean
boolean
boolean
hasRadio()
boolean
boolean
boolean
toString()
-
Field Details
-
HAS_TOOLBAR
private static final boolean HAS_TOOLBAR- See Also:
-
NO_TOOLBAR
private static final boolean NO_TOOLBAR- See Also:
-
HAS_FILTER
private static final boolean HAS_FILTER- See Also:
-
NO_FILTER
private static final boolean NO_FILTER- See Also:
-
HAS_NAVIGATOR
private static final boolean HAS_NAVIGATOR- See Also:
-
NO_NAVIGATOR
private static final boolean NO_NAVIGATOR- See Also:
-
HAS_CHECK
private static final boolean HAS_CHECK- See Also:
-
NO_CHECK
private static final boolean NO_CHECK- See Also:
-
HAS_RADIO
private static final boolean HAS_RADIO- See Also:
-
NO_RADIO
private static final boolean NO_RADIO- See Also:
-
HAS_ICONS
private static final boolean HAS_ICONS- See Also:
-
NO_ICONS
private static final boolean NO_ICONS- See Also:
-
IS_COMPACT
private static final boolean IS_COMPACT- See Also:
-
NOT_COMPACT
private static final boolean NOT_COMPACT- See Also:
-
HAS_OKBUTTON
private static final boolean HAS_OKBUTTON- See Also:
-
NO_OKBUTTON
private static final boolean NO_OKBUTTON- See Also:
-
HAS_CLOSEBUTTON
private static final boolean HAS_CLOSEBUTTON- See Also:
-
NO_CLOSEBUTTON
private static final boolean NO_CLOSEBUTTON- See Also:
-
HAS_CANCELBUTTON
private static final boolean HAS_CANCELBUTTON- See Also:
-
NO_CANCELBUTTON
private static final boolean NO_CANCELBUTTON- See Also:
-
HAS_PROPERTYLINK
private static final boolean HAS_PROPERTYLINK- See Also:
-
NO_PROPERTYLINK
private static final boolean NO_PROPERTYLINK- See Also:
-
HAS_EDITLINK
private static final boolean HAS_EDITLINK- See Also:
-
NO_EDITLINK
private static final boolean NO_EDITLINK- See Also:
-
SELECTION_MODE
private static final boolean SELECTION_MODE- See Also:
-
NOT_SELECTION_MODE
private static final boolean NOT_SELECTION_MODE- See Also:
-
NO_PERMISSION
-
modes
-
DEFAULT
-
SELECTONE
-
SELECTMULTIPLE
-
SELECTMULTIPLE_NOBUTTONS
-
SELECT_FILTER
-
ADD_MEMBERS
Mode for adding members to an item list. It is similar to the SELECTMULTIPLE_NOBUTTONS mode, but doesn't require USE permission.- Since:
- 3.20
-
findOne
-
findMany
-
name
-
pageType
-
titleTemplate
-
hasToolbar
private final boolean hasToolbar -
hasFilter
private final boolean hasFilter -
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
-
selectionMode
private final boolean selectionMode
-
-
Constructor Details
-
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 Details
-
get
-
getMainContext
Get a main context for this mode. This is used for assigning default subcontexts to different modes.- Since:
- 3.20
- See Also:
-
getName
-
getPageType
-
hasToolbar
public boolean hasToolbar() -
hasFilter
public boolean hasFilter() -
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
-
isSelectionMode
public boolean isSelectionMode() -
generateTitle
-
toString
-