Ontimize 5.2072EN

com.ontimize.gui.formtemplates
Class PopupPrintingTemplateList

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JList
                  extended bycom.ontimize.util.swing.popuplist.PopupList
                      extended bycom.ontimize.gui.formtemplates.PopupPrintingTemplateList
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, Internationalization, java.awt.MenuContainer, javax.swing.Scrollable, java.io.Serializable

public class PopupPrintingTemplateList
extends PopupList
implements Internationalization

See Also:
Serialized Form

Nested Class Summary
protected  class PopupPrintingTemplateList.MouseHandlerPopupList
           
 
Nested classes inherited from class com.ontimize.util.swing.popuplist.PopupList
PopupList.MouseHandler
 
Nested classes inherited from class javax.swing.JList
javax.swing.JList.AccessibleJList
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  PopupItem addTemplateItem
           
protected  javax.swing.JDialog helpFieldsDialog
           
protected  PopupItem helpItem
           
static java.lang.String M_CHANGE_USER_TEMPLATE
           
static java.lang.String M_ERROR_CHANGE_PRIVATE_TEMPLATE
           
protected  PopupPrintingTemplateList.MouseHandlerPopupList mouseHandler
           
protected  PopupItem openofficeItem
           
protected  PopupItem wordItem
           
 
Fields inherited from class com.ontimize.util.swing.popuplist.PopupList
bundle, defaultPopupBorder, emptyLabel, enabledPrivateTemplates, form, POPUPLIST_CHECK, POPUPLIST_DELETE_TEMPLATE, POPUPLIST_PRIVATE, POPUPLIST_SAVE_TEMPLATE, southPanel
 
Fields inherited from class javax.swing.JList
HORIZONTAL_WRAP, VERTICAL, VERTICAL_WRAP
 
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 com.ontimize.gui.i18n.Internationalization
DEBUG_LANGUAGE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
PopupPrintingTemplateList(Form f, boolean bPrivateTemplates)
           
 
Method Summary
protected  int calculateMarkerNumber(java.util.Vector vDataComponents)
           
 void chooseDefaultTemplate(PopupList list, int sel)
           
 void configurePrivateAction(PopupList list, int sel)
           
protected  void createFileChooser()
           
 void deleteTemplate(PopupList list, int sel)
           
protected  javax.swing.JLabel getEmptyMessage()
           
 java.util.Vector getTextsToTranslate()
          Returns all the texts in the element suitable for being translated.
protected  void installCellRenderer()
           
protected  void installListModel()
           
protected  void installMouseHandler()
           
 boolean isEnabledPrivateTemplate()
           
 void openTemplate(PopupList list, int sel)
           
protected  void retrieveNotQueryAttributes()
           
 void saveTemplate(PopupList list, int sel, java.awt.event.MouseEvent e)
           
 void setComponentLocale(java.util.Locale l)
           
 void setEnabledPrivateTemplate(boolean enabledPrivateTemplate)
           
 void setResourceBundle(java.util.ResourceBundle resourceBundle)
          Sets the language resource bundle.
protected  void setTextLabelInfo(java.util.ResourceBundle res, javax.swing.ListModel model)
           
 
Methods inherited from class com.ontimize.util.swing.popuplist.PopupList
addPopupItem, createPopup, getInfoMessage, getPanelElements, getPopupBorder, getToolTipText, getVisibleRowCount, setDataModel, setVisible, show
 
Methods inherited from class javax.swing.JList
addListSelectionListener, addSelectionInterval, clearSelection, createSelectionModel, ensureIndexIsVisible, fireSelectionValueChanged, getAccessibleContext, getAnchorSelectionIndex, getCellBounds, getCellRenderer, getDragEnabled, getFirstVisibleIndex, getFixedCellHeight, getFixedCellWidth, getLastVisibleIndex, getLayoutOrientation, getLeadSelectionIndex, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getModel, getNextMatch, getPreferredScrollableViewportSize, getPrototypeCellValue, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedIndex, getSelectedIndices, getSelectedValue, getSelectedValues, getSelectionBackground, getSelectionForeground, getSelectionMode, getSelectionModel, getUI, getUIClassID, getValueIsAdjusting, indexToLocation, isSelectedIndex, isSelectionEmpty, locationToIndex, paramString, removeListSelectionListener, removeSelectionInterval, setCellRenderer, setDragEnabled, setFixedCellHeight, setFixedCellWidth, setLayoutOrientation, setListData, setListData, setModel, setPrototypeCellValue, setSelectedIndex, setSelectedIndices, setSelectedValue, setSelectionBackground, setSelectionForeground, setSelectionInterval, setSelectionMode, setSelectionModel, setUI, setValueIsAdjusting, setVisibleRowCount, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

M_ERROR_CHANGE_PRIVATE_TEMPLATE

public static final java.lang.String M_ERROR_CHANGE_PRIVATE_TEMPLATE
See Also:
Constant Field Values

M_CHANGE_USER_TEMPLATE

public static final java.lang.String M_CHANGE_USER_TEMPLATE
See Also:
Constant Field Values

mouseHandler

protected PopupPrintingTemplateList.MouseHandlerPopupList mouseHandler

helpItem

protected PopupItem helpItem

wordItem

protected PopupItem wordItem

openofficeItem

protected PopupItem openofficeItem

addTemplateItem

protected PopupItem addTemplateItem

helpFieldsDialog

protected javax.swing.JDialog helpFieldsDialog
Constructor Detail

PopupPrintingTemplateList

public PopupPrintingTemplateList(Form f,
                                 boolean bPrivateTemplates)
Method Detail

calculateMarkerNumber

protected int calculateMarkerNumber(java.util.Vector vDataComponents)

createFileChooser

protected void createFileChooser()

installListModel

protected void installListModel()
Specified by:
installListModel in class PopupList

installCellRenderer

protected void installCellRenderer()
Specified by:
installCellRenderer in class PopupList

installMouseHandler

protected void installMouseHandler()
Specified by:
installMouseHandler in class PopupList

getEmptyMessage

protected javax.swing.JLabel getEmptyMessage()
Overrides:
getEmptyMessage in class PopupList

setTextLabelInfo

protected void setTextLabelInfo(java.util.ResourceBundle res,
                                javax.swing.ListModel model)
Specified by:
setTextLabelInfo in class PopupList

getTextsToTranslate

public java.util.Vector getTextsToTranslate()
Description copied from interface: Internationalization
Returns all the texts in the element suitable for being translated.

Specified by:
getTextsToTranslate in interface Internationalization
Returns:
all the texts in the element suitable for being translated.

setComponentLocale

public void setComponentLocale(java.util.Locale l)
Specified by:
setComponentLocale in interface Internationalization

setResourceBundle

public void setResourceBundle(java.util.ResourceBundle resourceBundle)
Description copied from interface: Internationalization
Sets the language resource bundle. When the application changes the configured language, for all the objects that implement this interface this method must be called with the new file.
The method must translate all the elements that have texts in the GUI

Specified by:
setResourceBundle in interface Internationalization
Parameters:
resourceBundle - the new language bundle.

configurePrivateAction

public void configurePrivateAction(PopupList list,
                                   int sel)

chooseDefaultTemplate

public void chooseDefaultTemplate(PopupList list,
                                  int sel)

saveTemplate

public void saveTemplate(PopupList list,
                         int sel,
                         java.awt.event.MouseEvent e)

deleteTemplate

public void deleteTemplate(PopupList list,
                           int sel)

retrieveNotQueryAttributes

protected void retrieveNotQueryAttributes()

openTemplate

public void openTemplate(PopupList list,
                         int sel)

isEnabledPrivateTemplate

public boolean isEnabledPrivateTemplate()

setEnabledPrivateTemplate

public void setEnabledPrivateTemplate(boolean enabledPrivateTemplate)

Ontimize