|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.layout.LayoutController
LayoutController class. LayoutController that manages the
creation, and activation of layouts.
| Field Summary | |
static int |
ACTIVATE_LAYOUT_CMD_ID
|
static int |
DELETE_LAYOUT_CMD_ID
|
static int |
EDIT_LAYOUT_CMD_ID
|
static int |
NEW_LAYOUT_CMD_ID
|
| Constructor Summary | |
|
LayoutController(Layouts layouts,
LayoutsPanel panel)
|
protected |
LayoutController(LayoutsPanel panel)
|
| Method Summary | |
protected boolean |
activateLayout(Layout layout)
|
void |
checkCommands(Context context,
Controller activeController)
checkCommands() should be called on the controller associated with the active view whenever the Context changes. |
protected boolean |
deleteLayout(Layout layout)
|
boolean |
handleEvent(IdeAction action,
Context context)
This method is called when a user interaction with a View
triggers the execution of a command. |
protected boolean |
newLayout(Layout layout)
|
protected boolean |
renameLayout(Layout layout,
Context context)
|
protected void |
setLayouts(Layouts layouts)
|
Controller |
supervisor()
Gets the supervising controller |
boolean |
update(IdeAction action,
Context context)
This method updates the enabled status of the specified action within the specified context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int NEW_LAYOUT_CMD_ID
public static final int ACTIVATE_LAYOUT_CMD_ID
public static final int EDIT_LAYOUT_CMD_ID
public static final int DELETE_LAYOUT_CMD_ID
| Constructor Detail |
public LayoutController(Layouts layouts,
LayoutsPanel panel)
protected LayoutController(LayoutsPanel panel)
| Method Detail |
public Controller supervisor()
Controller
supervisor in interface Controller
public boolean handleEvent(IdeAction action,
Context context)
ControllerView
triggers the execution of a command.
handleEvent in interface Controlleraction - action whose command is to be executed.
public boolean update(IdeAction action,
Context context)
Controller
update in interface Controlleraction - action whose command is to be executed.context - the current context
public void checkCommands(Context context,
Controller activeController)
Controller
checkCommands in interface Controllercontext - the current context. Null values are acceptable.activeController - the controller associated with the active view.
Null values are acceptable.protected boolean deleteLayout(Layout layout)
protected boolean renameLayout(Layout layout,
Context context)
protected boolean activateLayout(Layout layout)
protected boolean newLayout(Layout layout)
protected void setLayouts(Layouts layouts)
|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©1997, 2003, Oracle. All rights reserved.