Class ModeInfo

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

public class ModeInfo extends Object
Version:
2.0
Author:
Nicklas
  • 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:
    • SELECTION_MODE

      private static final boolean SELECTION_MODE
      See Also:
    • NOT_SELECTION_MODE

      private static final boolean NOT_SELECTION_MODE
      See Also:
    • 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
    • SELECT_FILTER

      public static final ModeInfo SELECT_FILTER
    • ADD_MEMBERS

      public static final ModeInfo 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

      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
    • permission

      private final Permission 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

      public static ModeInfo get(String name)
    • getMainContext

      public SessionControl.MainContext getMainContext(Item itemType)
      Get a main context for this mode. This is used for assigning default subcontexts to different modes.
      Since:
      3.20
      See Also:
    • 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)
    • toString

      public String toString()
      Overrides:
      toString in class Object