Extension SDK

oracle.jdevimpl.uieditor.assistant
Class BorderLayoutAssistant

java.lang.Object
  extended byoracle.jdevimpl.uieditor.assistant.BasicLayoutAssistant
      extended byoracle.jdevimpl.uieditor.assistant.BorderLayoutAssistant
All Implemented Interfaces:
LayoutAssistant
Direct Known Subclasses:
HiddenBorderLayoutAssistant

public class BorderLayoutAssistant
extends BasicLayoutAssistant


Field Summary
 
Fields inherited from class oracle.jdevimpl.uieditor.assistant.BasicLayoutAssistant
BIG_DECREASE_HEIGHT_ACTION, BIG_DECREASE_HEIGHT_CMD_ID, BIG_DECREASE_WIDTH_ACTION, BIG_DECREASE_WIDTH_CMD_ID, BIG_INCREASE_HEIGHT_ACTION, BIG_INCREASE_HEIGHT_CMD_ID, BIG_INCREASE_WIDTH_ACTION, BIG_INCREASE_WIDTH_CMD_ID, BIG_MOVE_DOWN_ACTION, BIG_MOVE_DOWN_CMD_ID, BIG_MOVE_LEFT_ACTION, BIG_MOVE_LEFT_CMD_ID, BIG_MOVE_RIGHT_ACTION, BIG_MOVE_RIGHT_CMD_ID, BIG_MOVE_UP_ACTION, BIG_MOVE_UP_CMD_ID, DECREASE_HEIGHT_ACTION, DECREASE_HEIGHT_CMD_ID, DECREASE_WIDTH_ACTION, DECREASE_WIDTH_CMD_ID, INCREASE_HEIGHT_ACTION, INCREASE_HEIGHT_CMD_ID, INCREASE_WIDTH_ACTION, INCREASE_WIDTH_CMD_ID, MOVE_DOWN_ACTION, MOVE_DOWN_CMD_ID, MOVE_LEFT_ACTION, MOVE_LEFT_CMD_ID, MOVE_RIGHT_ACTION, MOVE_RIGHT_CMD_ID, MOVE_TO_FIRST_ACTION, MOVE_TO_FIRST_CMD_ID, MOVE_TO_FIRST_ITEM, MOVE_TO_LAST_ACTION, MOVE_TO_LAST_CMD_ID, MOVE_TO_LAST_ITEM, MOVE_UP_ACTION, MOVE_UP_CMD_ID, ZORDER_MENU, ZORDER_SEPARATOR
 
Fields inherited from interface oracle.jdevimpl.uieditor.LayoutAssistant
TOOLBAR_ITEM, TOOLBAR_ITEM_COUNT
 
Constructor Summary
BorderLayoutAssistant()
           
 
Method Summary
 java.lang.String constrainMove(oracle.jdevimpl.uieditor.uicanvas.ModelNode node, oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode, java.awt.Point mousePos, java.awt.Point mouseOffset, java.awt.Point newPos, java.awt.Dimension newSize)
          Optionally modify size and position of an object being moved to conform to the constraints imposed by the LayoutManager being represented.
 Explorer getConstraintsEditor(Context context)
          Get an Explorer implementation with which to modify the constraints settings, else null.
 java.lang.String getConstraintsType()
           
 java.beans.PropertyEditor getPropertyEditor()
           
 void prepareAddComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode node, oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode, java.awt.Point location, java.awt.Point offset, java.awt.Dimension size)
          Perform any preparation on a child component that will be added into to a container.
 java.lang.String prepareAddStatus(oracle.jdevimpl.uieditor.uicanvas.ModelNode node, oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode, java.awt.Point location, java.awt.Dimension size)
          Return a string for display during the add process.
 void prepareChangeLayout(oracle.jdevimpl.uieditor.uicanvas.ModelNode parent)
          Perform changes on children of a container to best handle a layout type change.
 java.lang.String prepareMouseMoveStatus(oracle.jdevimpl.uieditor.uicanvas.ModelNode node, oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode, java.awt.Point location)
          Return a string for display while the user is moving the mouse over a component.
 void prepareMoveComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode node, oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode, java.awt.Point location, java.awt.Point offset)
          Child is being moved.
 void prepareResizeComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode node, oracle.jdevimpl.uieditor.uicanvas.SelectNib nib)
          Perform a requested resize on a child.
 java.lang.String prepareResizeStatus(oracle.jdevimpl.uieditor.uicanvas.ModelNode node, java.awt.Point location, java.awt.Dimension size)
          Return a string for display during the resize process.
 
Methods inherited from class oracle.jdevimpl.uieditor.assistant.BasicLayoutAssistant
calcBestZ, changeSize, changeZ, cleanupRemovedComponent, constrainAdd, getContextMenuItems, getEffects, getKey, getSelectedSiblings, getToolbarPrefix, handleEvent, layoutChanged, lessThan, move, prepareSelectComponent, prepareSelectDescendant, raiseChildToView, removeBoundsSetting, resizeAction, sort, sortedNodes, update, usesReverseZOrder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BorderLayoutAssistant

public BorderLayoutAssistant()
Method Detail

getConstraintsType

public final java.lang.String getConstraintsType()
Specified by:
getConstraintsType in interface LayoutAssistant
Overrides:
getConstraintsType in class BasicLayoutAssistant

getPropertyEditor

public final java.beans.PropertyEditor getPropertyEditor()
Specified by:
getPropertyEditor in interface LayoutAssistant
Overrides:
getPropertyEditor in class BasicLayoutAssistant

getConstraintsEditor

public final Explorer getConstraintsEditor(Context context)
Description copied from interface: LayoutAssistant
Get an Explorer implementation with which to modify the constraints settings, else null.

Specified by:
getConstraintsEditor in interface LayoutAssistant
Overrides:
getConstraintsEditor in class BasicLayoutAssistant

prepareChangeLayout

public final void prepareChangeLayout(oracle.jdevimpl.uieditor.uicanvas.ModelNode parent)
Description copied from interface: LayoutAssistant
Perform changes on children of a container to best handle a layout type change. Should set the contraints for each Component in the container. The layout of the container has already been switched when this call is made.

Specified by:
prepareChangeLayout in interface LayoutAssistant
Overrides:
prepareChangeLayout in class BasicLayoutAssistant

prepareMoveComponent

public final void prepareMoveComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
                                       oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode,
                                       java.awt.Point location,
                                       java.awt.Point offset)
Description copied from interface: LayoutAssistant
Child is being moved. Often implemented by calling prepareAddComponent

Specified by:
prepareMoveComponent in interface LayoutAssistant
Overrides:
prepareMoveComponent in class BasicLayoutAssistant

prepareAddComponent

public final void prepareAddComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
                                      oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode,
                                      java.awt.Point location,
                                      java.awt.Point offset,
                                      java.awt.Dimension size)
Description copied from interface: LayoutAssistant
Perform any preparation on a child component that will be added into to a container. Typically this involves setting the node's constraint value. The new component has already been added to the container via container.add(component). After the constraint is set by this method and/or the add order of the components manipulated, it will be re-added with the supplied constraint.

Specified by:
prepareAddComponent in interface LayoutAssistant
Overrides:
prepareAddComponent in class BasicLayoutAssistant

constrainMove

public final java.lang.String constrainMove(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
                                            oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode,
                                            java.awt.Point mousePos,
                                            java.awt.Point mouseOffset,
                                            java.awt.Point newPos,
                                            java.awt.Dimension newSize)
Description copied from interface: LayoutAssistant
Optionally modify size and position of an object being moved to conform to the constraints imposed by the LayoutManager being represented. This method may be called from the UIEditor during a move operation such that it may provide dynamic feedback to the user depicting the expected bounds of the object throughout the operation.

Specified by:
constrainMove in interface LayoutAssistant
Overrides:
constrainMove in class BasicLayoutAssistant

prepareAddStatus

public final java.lang.String prepareAddStatus(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
                                               oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode,
                                               java.awt.Point location,
                                               java.awt.Dimension size)
Description copied from interface: LayoutAssistant
Return a string for display during the add process.

Specified by:
prepareAddStatus in interface LayoutAssistant
Overrides:
prepareAddStatus in class BasicLayoutAssistant

prepareMouseMoveStatus

public final java.lang.String prepareMouseMoveStatus(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
                                                     oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode,
                                                     java.awt.Point location)
Description copied from interface: LayoutAssistant
Return a string for display while the user is moving the mouse over a component. Typically used to identify the node and display the constraint for the component that would be selected if the user were to release the mouse.

Specified by:
prepareMouseMoveStatus in interface LayoutAssistant
Overrides:
prepareMouseMoveStatus in class BasicLayoutAssistant

prepareResizeStatus

public final java.lang.String prepareResizeStatus(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
                                                  java.awt.Point location,
                                                  java.awt.Dimension size)
Description copied from interface: LayoutAssistant
Return a string for display during the resize process.

Specified by:
prepareResizeStatus in interface LayoutAssistant
Overrides:
prepareResizeStatus in class BasicLayoutAssistant

prepareResizeComponent

public final void prepareResizeComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
                                         oracle.jdevimpl.uieditor.uicanvas.SelectNib nib)
Description copied from interface: LayoutAssistant
Perform a requested resize on a child. Calculate a new constraint value for the node

Specified by:
prepareResizeComponent in interface LayoutAssistant
Overrides:
prepareResizeComponent in class BasicLayoutAssistant

Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.