|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JPopupMenu
|
+--com.klg.jclass.higrid.EditPopupMenu
The EditPopupMenu class is the default popup menu for runtime editing of HiGrid.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JPopupMenu |
JPopupMenu.AccessibleJPopupMenu, JPopupMenu.Separator |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
EditPopupMenu(com.klg.jclass.higrid.HiGrid grid)
Default Constructor |
|
| Method Summary | |
void |
actionPerformed(ActionEvent event)
|
protected void |
buildDynamicSubMenu(JMenuItem insertMenu,
String command)
Creates a submenu based on the passed command (currently insert/append) |
protected Rectangle |
computePopupBounds(int x,
int y,
int width,
int height)
|
JMenuItem |
createMenu(int index)
Create a menu component from the default popup menu list. |
JMenuItem |
createMenuItem(int index)
Create a menu item component from the default popup menu list. |
void |
dispose()
|
boolean |
enableMenuItem(Object menu,
String command,
boolean enable)
Enable or disable a menu item in the popup menu. |
protected int |
findMenuIndex(MenuElement[] subElements,
int command)
Retrieves the position of the specified command from the subElements. |
String |
getCommand(int index)
Retrieves the specified command string. |
void |
performAction(ActionEvent event)
Handles a popup menu action event. |
void |
performCommand(int command)
Execute one of the popup menu's commands. |
void |
performCommand(String command)
Execute one of the popup menu's commands. |
void |
setDefaultMenuList(int list)
Sets the popup menu to the indicated default list. |
void |
show(int x,
int y)
Show the popup menu. |
protected void |
showTips(String title,
String text)
Display the HiGrid tips window. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int DEFAULT_SHORT_POPUPMENU_LIST
public static final int DEFAULT_LONG_POPUPMENU_LIST
public static final int POPUP_INSERT
public static final int POPUP_APPEND
public static final int POPUP_DELETE
public static final int POPUP_DELETE_CURRENT
public static final int POPUP_DELETE_SELECTED
public static final int POPUP_CANCEL
public static final int POPUP_CANCEL_CURRENT
public static final int POPUP_CANCEL_SELECTED
public static final int POPUP_CANCEL_ALL
public static final int POPUP_REQUERY
public static final int POPUP_REQUERY_RECORD
public static final int POPUP_REQUERY_RECORD_AND_DETAILS
public static final int POPUP_REQUERY_SELECTED
public static final int POPUP_REQUERY_SELECTED_AND_DETAILS
public static final int POPUP_REQUERY_TABLE
public static final int POPUP_REQUERY_ALL
public static final int POPUP_UPDATE
public static final int POPUP_UPDATE_CURRENT
public static final int POPUP_UPDATE_SELECTED
public static final int POPUP_UPDATE_ALL
public static final int POPUP_SELECT
public static final int POPUP_SELECT_CURRENT
public static final int POPUP_SELECT_ALL_IN_SAME_LEVEL
public static final int POPUP_SELECT_ALL_IN_SAME_TABLE
public static final int POPUP_SELECT_ALL
public static final int POPUP_MOVE_TO_RECORD
public static final int POPUP_MOVE_TO_RECORD_FIRST
public static final int POPUP_MOVE_TO_RECORD_PREVIOUS
public static final int POPUP_MOVE_TO_RECORD_NEXT
public static final int POPUP_MOVE_TO_RECORD_LAST
public static final int POPUP_MOVE_TO_TABLE_RECORD
public static final int POPUP_MOVE_TO_TABLE_RECORD_FIRST
public static final int POPUP_MOVE_TO_TABLE_RECORD_PREVIOUS
public static final int POPUP_MOVE_TO_TABLE_RECORD_NEXT
public static final int POPUP_MOVE_TO_TABLE_RECORD_LAST
public static final int POPUP_MOVE_TO_PARENT
public static final int POPUP_COLLAPSE_PARENT
public static final int POPUP_PRINT
public static final int POPUP_PRINT_AS_DISPLAYED
public static final int POPUP_PRINT_AS_EXPANDED
public static final int POPUP_PRINT_EXPAND_ALL
public static final int POPUP_PRINT_PREVIEW
public static final int POPUP_PRINT_PREVIEW_AS_DISPLAYED
public static final int POPUP_PRINT_PREVIEW_AS_EXPANDED
public static final int POPUP_PRINT_PREVIEW_EXPAND_ALL
public static final int POPUP_TIPS
public static final int POPUP_TIPS_KEYBOARD
public static final int POPUP_TIPS_MOUSE
public static final int POPUP_TIPS_MENU
protected static final int NO_RECORDS_START_INDEX
protected static final int NO_RECORDS_END_INDEX
protected String[] commands
protected Vector insertList
protected com.klg.jclass.higrid.HiGrid grid
| Constructor Detail |
public EditPopupMenu(com.klg.jclass.higrid.HiGrid grid)
| Method Detail |
public void dispose()
public void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListenerpublic void setDefaultMenuList(int list)
list - The default list indication.public JMenuItem createMenu(int index)
index - The popup menu enum value.
public JMenuItem createMenuItem(int index)
index - The popup menu item enum value.
public String getCommand(int index)
index - The index for the command string.
protected int findMenuIndex(MenuElement[] subElements,
int command)
subElements - The submenu to search.command - The command id.
protected void buildDynamicSubMenu(JMenuItem insertMenu,
String command)
insertMenu - The submenu to modify.command - The command string.
public void show(int x,
int y)
x - The x position of the cursor.y - The y position of the cursor.
protected Rectangle computePopupBounds(int x,
int y,
int width,
int height)
public boolean enableMenuItem(Object menu,
String command,
boolean enable)
menu - The menu level.command - The command string.enable - True if enable else false.
public void performAction(ActionEvent event)
event - The action event.public void performCommand(int command)
command - The POPUP_ command to execute.
protected void showTips(String title,
String text)
title - The frame window's title.text - The HTML text to display in the window.public void performCommand(String command)
command - The command to execute.
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||