|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.jdevimpl.uieditor.assistant.BasicLayoutAssistant
oracle.jdevimpl.uieditor.assistant.GridBagLayoutAssistant
| Field Summary | |
static int |
ANCHOR_C_CMD_ID
|
static javax.swing.JMenuItem |
ANCHOR_C_ITEM
|
static int |
ANCHOR_CMD_ID
|
static int |
ANCHOR_E_CMD_ID
|
static javax.swing.JMenuItem |
ANCHOR_E_ITEM
|
static java.lang.String |
ANCHOR_GROUP
|
static javax.swing.JMenu |
ANCHOR_MENU
|
static int |
ANCHOR_N_CMD_ID
|
static javax.swing.JMenuItem |
ANCHOR_N_ITEM
|
static int |
ANCHOR_NE_CMD_ID
|
static javax.swing.JMenuItem |
ANCHOR_NE_ITEM
|
static int |
ANCHOR_NW_CMD_ID
|
static javax.swing.JMenuItem |
ANCHOR_NW_ITEM
|
static int |
ANCHOR_S_CMD_ID
|
static javax.swing.JMenuItem |
ANCHOR_S_ITEM
|
static int |
ANCHOR_SE_CMD_ID
|
static javax.swing.JMenuItem |
ANCHOR_SE_ITEM
|
static int |
ANCHOR_SW_CMD_ID
|
static javax.swing.JMenuItem |
ANCHOR_SW_ITEM
|
static int |
ANCHOR_W_CMD_ID
|
static javax.swing.JMenuItem |
ANCHOR_W_ITEM
|
static int |
FILL_BOTH_CMD_ID
|
static javax.swing.JMenuItem |
FILL_BOTH_ITEM
|
static int |
FILL_CMD_ID
|
static java.lang.String |
FILL_GROUP
|
static int |
FILL_HORIZ_CMD_ID
|
static javax.swing.JMenuItem |
FILL_HORIZ_ITEM
|
static javax.swing.JMenu |
FILL_MENU
|
static int |
FILL_VERT_CMD_ID
|
static javax.swing.JMenuItem |
FILL_VERT_ITEM
|
static javax.swing.JSeparator |
GRID_SEPARATOR
|
static javax.swing.JSeparator |
IPAD_SEPARATOR
|
static int |
NO_FILL_CMD_ID
|
static javax.swing.JMenuItem |
NO_FILL_ITEM
|
static int |
NO_WEIGHT_CMD_ID
|
static javax.swing.JMenuItem |
NO_WEIGHT_ITEM
|
static int |
REMOVE_INSETS_CMD_ID
|
static javax.swing.JMenuItem |
REMOVE_INSETS_ITEM
|
static int |
REMOVE_IPAD_CMD_ID
|
static javax.swing.JMenuItem |
REMOVE_IPAD_ITEM
|
static int |
SHOW_GRID_CMD_ID
|
static javax.swing.JMenuItem |
SHOW_GRID_ITEM
|
static int |
WEIGHT_BOTH_CMD_ID
|
static javax.swing.JMenuItem |
WEIGHT_BOTH_ITEM
|
static int |
WEIGHT_CMD_ID
|
static java.lang.String |
WEIGHT_GROUP
|
static int |
WEIGHT_HORIZ_CMD_ID
|
static javax.swing.JMenuItem |
WEIGHT_HORIZ_ITEM
|
static javax.swing.JMenu |
WEIGHT_MENU
|
static int |
WEIGHT_VERT_CMD_ID
|
static javax.swing.JMenuItem |
WEIGHT_VERT_ITEM
|
| Fields inherited from interface oracle.jdevimpl.uieditor.LayoutAssistant |
TOOLBAR_ITEM, TOOLBAR_ITEM_COUNT |
| Constructor Summary | |
GridBagLayoutAssistant()
|
|
| Method Summary | |
void |
cleanupRemovedComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode)
A child of this node's container has been removed. |
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. |
boolean |
execute(java.lang.Object first,
java.lang.Object second)
|
Explorer |
getConstraintsEditor(Context context)
Get an Explorer implementation with which to modify the constraints settings, else null. |
java.lang.String |
getConstraintsType()
|
javax.swing.JComponent[] |
getContextMenuItems(Context context)
Get an array of JComponent for population onto a ContextMenu. |
java.beans.PropertyEditor |
getPropertyEditor()
|
java.lang.String |
getToolbarPrefix()
Get the prefix to use in combination with the TOOLBAR_ITEM_COUNT and TOOLBAR_ITEM suffixes in order to fetch Toolbar related properties for this LayoutAssistant from the IDE settings. |
boolean |
handleEvent(IdeAction action,
Context context)
Respond to the given user action within the given context. |
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 mousePos,
java.awt.Dimension newSize)
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,
java.awt.Point location,
java.awt.Dimension size)
|
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 d)
Return a string for display during the resize process. |
void |
prepareSelectComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
oracle.jdevimpl.uieditor.uicanvas.UICanvas canvas)
An immedate child node has been selected. |
java.lang.String |
resizeAction(java.awt.Point newNibLocation,
oracle.jdevimpl.uieditor.uicanvas.UICanvas canvas,
oracle.jdevimpl.uieditor.uicanvas.SelectNib nib)
Return a status message string that will be displayed while the user is dragging the nib. |
boolean |
update(IdeAction action,
Context context)
Update the enabled state of the given action within the given context. |
| Methods inherited from class oracle.jdevimpl.uieditor.assistant.BasicLayoutAssistant |
calcBestZ, changeSize, changeZ, constrainAdd, getEffects, getKey, getSelectedSiblings, layoutChanged, lessThan, move, prepareSelectDescendant, raiseChildToView, removeBoundsSetting, sort, sortedNodes, usesReverseZOrder |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int WEIGHT_CMD_ID
public static final int WEIGHT_HORIZ_CMD_ID
public static final int WEIGHT_VERT_CMD_ID
public static final int WEIGHT_BOTH_CMD_ID
public static final int NO_WEIGHT_CMD_ID
public static final int FILL_CMD_ID
public static final int FILL_HORIZ_CMD_ID
public static final int FILL_VERT_CMD_ID
public static final int FILL_BOTH_CMD_ID
public static final int NO_FILL_CMD_ID
public static final int ANCHOR_CMD_ID
public static final int ANCHOR_NW_CMD_ID
public static final int ANCHOR_N_CMD_ID
public static final int ANCHOR_NE_CMD_ID
public static final int ANCHOR_W_CMD_ID
public static final int ANCHOR_C_CMD_ID
public static final int ANCHOR_E_CMD_ID
public static final int ANCHOR_SW_CMD_ID
public static final int ANCHOR_S_CMD_ID
public static final int ANCHOR_SE_CMD_ID
public static final int REMOVE_IPAD_CMD_ID
public static final int REMOVE_INSETS_CMD_ID
public static final int SHOW_GRID_CMD_ID
public static final java.lang.String WEIGHT_GROUP
public static final java.lang.String FILL_GROUP
public static final java.lang.String ANCHOR_GROUP
public static javax.swing.JMenu WEIGHT_MENU
public static javax.swing.JMenuItem WEIGHT_HORIZ_ITEM
public static javax.swing.JMenuItem WEIGHT_VERT_ITEM
public static javax.swing.JMenuItem WEIGHT_BOTH_ITEM
public static javax.swing.JMenuItem NO_WEIGHT_ITEM
public static javax.swing.JMenu FILL_MENU
public static javax.swing.JMenuItem FILL_HORIZ_ITEM
public static javax.swing.JMenuItem FILL_VERT_ITEM
public static javax.swing.JMenuItem FILL_BOTH_ITEM
public static javax.swing.JMenuItem NO_FILL_ITEM
public static javax.swing.JMenu ANCHOR_MENU
public static javax.swing.JMenuItem ANCHOR_NW_ITEM
public static javax.swing.JMenuItem ANCHOR_N_ITEM
public static javax.swing.JMenuItem ANCHOR_NE_ITEM
public static javax.swing.JMenuItem ANCHOR_W_ITEM
public static javax.swing.JMenuItem ANCHOR_C_ITEM
public static javax.swing.JMenuItem ANCHOR_E_ITEM
public static javax.swing.JMenuItem ANCHOR_SW_ITEM
public static javax.swing.JMenuItem ANCHOR_S_ITEM
public static javax.swing.JMenuItem ANCHOR_SE_ITEM
public static javax.swing.JSeparator IPAD_SEPARATOR
public static javax.swing.JMenuItem REMOVE_IPAD_ITEM
public static javax.swing.JMenuItem REMOVE_INSETS_ITEM
public static javax.swing.JSeparator GRID_SEPARATOR
public static javax.swing.JMenuItem SHOW_GRID_ITEM
| Constructor Detail |
public GridBagLayoutAssistant()
| Method Detail |
public java.lang.String getConstraintsType()
getConstraintsType in interface LayoutAssistantgetConstraintsType in class BasicLayoutAssistantpublic java.beans.PropertyEditor getPropertyEditor()
getPropertyEditor in interface LayoutAssistantgetPropertyEditor in class BasicLayoutAssistantpublic void prepareChangeLayout(oracle.jdevimpl.uieditor.uicanvas.ModelNode parent)
LayoutAssistant
prepareChangeLayout in interface LayoutAssistantprepareChangeLayout in class BasicLayoutAssistant
public 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)
LayoutAssistant
constrainMove in interface LayoutAssistantconstrainMove in class BasicLayoutAssistant
public void prepareMoveComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode,
java.awt.Point location,
java.awt.Point offset)
LayoutAssistant
prepareMoveComponent in interface LayoutAssistantprepareMoveComponent in class BasicLayoutAssistant
public 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)
LayoutAssistant
prepareAddComponent in interface LayoutAssistantprepareAddComponent in class BasicLayoutAssistant
public void prepareSelectComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
oracle.jdevimpl.uieditor.uicanvas.UICanvas canvas)
LayoutAssistant
prepareSelectComponent in interface LayoutAssistantprepareSelectComponent in class BasicLayoutAssistant
public void prepareResizeComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
oracle.jdevimpl.uieditor.uicanvas.SelectNib nib)
LayoutAssistant
prepareResizeComponent in interface LayoutAssistantprepareResizeComponent in class BasicLayoutAssistant
public void prepareResizeComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
java.awt.Point location,
java.awt.Dimension size)
public void cleanupRemovedComponent(oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode)
LayoutAssistant
cleanupRemovedComponent in interface LayoutAssistantcleanupRemovedComponent in class BasicLayoutAssistantpublic javax.swing.JComponent[] getContextMenuItems(Context context)
LayoutAssistant
getContextMenuItems in interface LayoutAssistantgetContextMenuItems in class BasicLayoutAssistant
public boolean update(IdeAction action,
Context context)
LayoutAssistant
update in interface LayoutAssistantupdate in class BasicLayoutAssistant
public boolean handleEvent(IdeAction action,
Context context)
LayoutAssistant
handleEvent in interface LayoutAssistanthandleEvent in class BasicLayoutAssistantpublic final java.lang.String getToolbarPrefix()
LayoutAssistant
getToolbarPrefix in interface LayoutAssistantgetToolbarPrefix in class BasicLayoutAssistantpublic Explorer getConstraintsEditor(Context context)
LayoutAssistant
getConstraintsEditor in interface LayoutAssistantgetConstraintsEditor in class BasicLayoutAssistant
public java.lang.String prepareAddStatus(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode,
java.awt.Point mousePos,
java.awt.Dimension newSize)
LayoutAssistant
prepareAddStatus in interface LayoutAssistantprepareAddStatus in class BasicLayoutAssistant
public java.lang.String resizeAction(java.awt.Point newNibLocation,
oracle.jdevimpl.uieditor.uicanvas.UICanvas canvas,
oracle.jdevimpl.uieditor.uicanvas.SelectNib nib)
LayoutAssistant
resizeAction in interface LayoutAssistantresizeAction in class BasicLayoutAssistant
public java.lang.String prepareResizeStatus(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
java.awt.Point location,
java.awt.Dimension d)
LayoutAssistant
prepareResizeStatus in interface LayoutAssistantprepareResizeStatus in class BasicLayoutAssistant
public java.lang.String prepareMouseMoveStatus(oracle.jdevimpl.uieditor.uicanvas.ModelNode node,
oracle.jdevimpl.uieditor.uicanvas.ModelNode toNode,
java.awt.Point location)
LayoutAssistant
prepareMouseMoveStatus in interface LayoutAssistantprepareMouseMoveStatus in class BasicLayoutAssistant
public boolean execute(java.lang.Object first,
java.lang.Object second)
|
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.