Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.3.0)
E15995-02


oracle.adf.view.page.editor.mode
Class ModeContext

java.lang.Object
  extended by oracle.adf.view.page.editor.mode.ModeContext


public class ModeContext
extends java.lang.Object

Encapsulates the mode context and provide APIs to get and set the mode. There are only two modes, View and Edit. View is the default mode.


Field Summary
static java.lang.String EDIT_MODE
          TODO: make these all private.
static java.lang.String MODE
           
static java.lang.String VIEW_MODE
           

 

Method Summary
static ModeContext getCurrent()
          Get the current instance of this class
 java.lang.String getCurrentModeName()
          Deprecated. use isInViewMode() and isInEditMode() instead.
 boolean isInEditMode()
          Return whether the current mode is EditMode.
 boolean isInViewMode()
          Return whether the current mode is ViewMode.
 boolean isModeChangedInCurrentRequest()
          Deprecated.  
 void setEditMode()
          Switch into Edit Mode.
 void unsetEditMode()
          Unset Edit Mode.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

EDIT_MODE

public static final java.lang.String EDIT_MODE
TODO: make these all private. use isInViewMode() and isInEditMode() instead.
See Also:
Constant Field Values

VIEW_MODE

public static final java.lang.String VIEW_MODE
See Also:
Constant Field Values

MODE

public static final java.lang.String MODE
See Also:
Constant Field Values

Method Detail

getCurrent

public static ModeContext getCurrent()
Get the current instance of this class
Returns:
the Current Instance of this class

getCurrentModeName

public java.lang.String getCurrentModeName()
Deprecated. use isInViewMode() and isInEditMode() instead.
Get the current mode name
Returns:
the current mode.

isInViewMode

public boolean isInViewMode()
Return whether the current mode is ViewMode.

isInEditMode

public boolean isInEditMode()
Return whether the current mode is EditMode.

setEditMode

public void setEditMode()
Switch into Edit Mode.

unsetEditMode

public void unsetEditMode()
Unset Edit Mode.

isModeChangedInCurrentRequest

public boolean isModeChangedInCurrentRequest()
Deprecated. 
Is mode changed in the current request
Returns:
whether mode changed in the current request

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.3.0)
E15995-02


Copyright © 2009, 2010, Oracle. All rights reserved.