public class CalculatedColumnDialog extends EJDialog implements Internationalization
| Modifier and Type | Class and Description |
|---|---|
static class |
CalculatedColumnDialog.ColumnPosition |
protected static class |
CalculatedColumnDialog.CustomListModel |
static class |
CalculatedColumnDialog.Expression |
protected static class |
CalculatedColumnDialog.InsertSymbolListener |
protected class |
CalculatedColumnDialog.TranslationListCellRenderer |
JDialog.AccessibleJDialogDialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityTypeWindow.AccessibleAWTWindow, Window.TypeContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyactions, askQuestionEverOnClose, askQuestionOnEsc, autoPackOnOpen, changeLAF, closeQuestion, defaultValueAskQuestionOnClose, defaultValueAskQuestionOnEsc, focusSet, glassPanel, keys, keyStrokes, opaque, previousGlassPane, sizePositionPreferenceaccessibleContext, rootPane, rootPaneCheckingEnabledDEFAULT_MODALITY_TYPEBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDEBUG_LANGUAGEDISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
CalculatedColumnDialog(Dialog d,
Table table) |
CalculatedColumnDialog(Frame frame,
Table table) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
acceptDialog() |
protected void |
addColumnToExpression(int index) |
protected Row |
buildLabelTitle(String labelText) |
protected void |
cancelDialog() |
protected void |
changeCalculatedColumnSelection()
Method used to update the text in the JTextPane using the selected
calculated column
|
protected void |
checkExpression(String col,
String expr) |
protected void |
checkLoops(List sourceExpressions) |
protected void |
configureAvailableColsListRenderer(JList list) |
protected void |
configureCalculatedColsListRenderer(JList list) |
protected Button |
createButton(String key,
String text,
String iconPath,
boolean addToGroup,
String align) |
protected Column |
createColumn(boolean expand,
String title,
int preferredWidth,
boolean titleAsLabel,
String margin,
boolean expandlast,
Border border) |
protected ComponentTextPane |
createExpressionEditor() |
protected FormComponent |
createHelpPanel()
Creates a CollapsiblePanel and add the help field to it
|
protected void |
createHtmlHelpField() |
protected JList |
createList(String attr,
String tip) |
protected void |
createNewCalculatedColumn(String defaultName) |
static MathExpressionParser |
createParser(String col,
String expr,
List columns) |
protected Row |
createRow(boolean expand,
String title,
int preferredHeight,
String margin) |
protected void |
deleteSeletedCalculatedColumn() |
protected void |
enableGroup(boolean enabled) |
protected List |
getCalculatedColumnsDependence(String expression,
String columnName,
List columns) |
protected Hashtable |
getContainerParameters(boolean expand,
String title,
int preferredWidth,
int preferredHeight,
String margin,
boolean titleAsLabel) |
protected int[] |
getExpressionIndexColName(String colName,
String expression) |
protected List |
getModifiedElements(boolean onlyNames,
boolean translate)
Get a list with the modified columns
|
Vector |
getTextsToTranslate()
Returns all the texts in the element suitable for being translated.
|
protected void |
init(Table table) |
protected void |
registerUndoableListener(JTextComponent component) |
protected void |
registerUndoRedoActions(JTextComponent component) |
void |
setComponentLocale(Locale l) |
protected void |
setExpressionText(String expression) |
void |
setResourceBundle(ResourceBundle res)
Sets the language resource bundle.
|
static void |
showCalculatorWindow(Component c,
Table t) |
protected void |
updateAvailableColsList() |
protected void |
updateCalculatedColsList() |
protected void |
updateSelectedCalculatedColumnExpression() |
askCloseQuestion, dispose, getSizePositionPreference, initWindowListener, isAskOnClose, isAskOnEsc, pack, processKeyEvent, processWindowEvent, registerKeyBindings, setAction, setActionForKey, setAskOnClose, setAskOnEsc, setAutoPackOnOpen, setInitialFocus, setSizePositionPreference, setVisible, transparentaddImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateaddNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBackaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static String HTML_HELP_TEXT
protected static final String AVAILABLE_COLUMMNS_TIP
public static final String CalculatedColsDialogTitle
public static String labelsBgImage
public static Border listBorder
protected Table table
protected Column calculatedColumnsPanel
protected Button createNewCalculatedColumnButton
protected Button deleteCalculatedColumnButton
protected JList calculatedColumnList
protected Column expressionEditorPanel
protected Button addButton
protected Button substractButton
protected Button multiplyButton
protected Button divideButton
protected Button openParenthesisButton
protected Button closeParenthesisButton
protected Column availableColumnPanel
protected JList availableColumnsList
protected ComponentTextPane expressionPane
protected Button acceptButton
protected Button cancelButton
protected List internationalizationComponentList
protected List deletedExpressions
protected List newExpressions
protected boolean updateSelectedCalculatedColumnExpression
protected UndoManager undoManager
protected HtmlHelpField htmlHelpField
protected List componentsGroup
protected static String[] invalidChars
protected void enableGroup(boolean enabled)
protected void init(Table table)
protected void cancelDialog()
protected List getModifiedElements(boolean onlyNames, boolean translate)
onlyNames - If this is then the list contains only the names (String) of
the modified columns. If it is false then the list contains
the Expression objecttranslate - If this is true and onlyNames is true then the names are
translated. Ifprotected void acceptDialog()
protected void deleteSeletedCalculatedColumn()
protected ComponentTextPane createExpressionEditor()
protected void createNewCalculatedColumn(String defaultName)
protected int[] getExpressionIndexColName(String colName, String expression)
protected void addColumnToExpression(int index)
protected void changeCalculatedColumnSelection()
protected void setExpressionText(String expression)
protected void updateSelectedCalculatedColumnExpression()
protected void configureCalculatedColsListRenderer(JList list)
protected void configureAvailableColsListRenderer(JList list)
protected Column createColumn(boolean expand, String title, int preferredWidth, boolean titleAsLabel, String margin, boolean expandlast, Border border)
protected Hashtable getContainerParameters(boolean expand, String title, int preferredWidth, int preferredHeight, String margin, boolean titleAsLabel)
protected Button createButton(String key, String text, String iconPath, boolean addToGroup, String align)
protected void createHtmlHelpField()
protected FormComponent createHelpPanel()
field - public void setResourceBundle(ResourceBundle res)
InternationalizationsetResourceBundle in interface Internationalizationres - the new language bundle.public void setComponentLocale(Locale l)
setComponentLocale in interface Internationalizationpublic Vector getTextsToTranslate()
InternationalizationgetTextsToTranslate in interface Internationalizationprotected void updateCalculatedColsList()
protected void updateAvailableColsList()
protected void registerUndoableListener(JTextComponent component)
protected void registerUndoRedoActions(JTextComponent component)
protected void checkExpression(String col, String expr) throws Exception
Exceptionprotected List getCalculatedColumnsDependence(String expression, String columnName, List columns)
public static MathExpressionParser createParser(String col, String expr, List columns)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.