chemaxon.alchemist.utils
Class AlchemistApplicationInnerDialog

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by chemaxon.alchemist.AlchemistPage
                      extended by chemaxon.alchemist.AlchemistGlassPage
                          extended by chemaxon.alchemist.utils.AlchemistApplicationInnerDialog
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
Direct Known Subclasses:
AlchemistApplicationLicenseHandlerInnerDialog

public abstract class AlchemistApplicationInnerDialog
extends AlchemistGlassPage

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static int COMPACT_VIEW
           
protected  java.awt.Dimension compactSize
           
static int DEFAULT_VIEW
           
protected  java.awt.Dimension defaultSize
           
static int EXTENDED_VIEW
           
protected  java.awt.Dimension extendedSize
           
 
Fields inherited from class chemaxon.alchemist.AlchemistGlassPage
PROPERTY_KEY_FADE, PROPERTY_VALUE_HIDING, PROPERTY_VALUE_SHOWING, PROPERTY_VALUE_STOPPED
 
Fields inherited from class chemaxon.alchemist.AlchemistPage
PROPERTY_KEY_MOVE_NEXT
 
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
AlchemistApplicationInnerDialog(AlchemistApplication application, javax.swing.Action closeAction)
          Constructs an AlchemistApplicationInnerDialog instance with close action
AlchemistApplicationInnerDialog(AlchemistApplication application, javax.swing.Action acceptAction, javax.swing.Action cancelAction)
          Constructs an AlchemistApplicationInnerDialog instance with ok and cancel actions
 
Method Summary
 void enterPage(AlchemistState state)
          Default implementation does nothing
protected  AlchemistLabel getMessageLabel()
           
 int getViewMode()
          Returns the current view mode
protected  boolean isClosable()
          Returns if panel is closable at current state Default implementation returns true
 boolean isCorrect()
          Default implementation returns true
 void leavePage(AlchemistState state)
          Default implementation does nothing
protected  void setMainComponent(javax.swing.JComponent component)
          Sets the main component
 void setPreferredSize(int viewMode, java.awt.Dimension dimension)
          Sets the preferred size for fiven mode
 void setViewMode(int viewMode)
          Sets the given view mode
protected  void updateButtons()
          Updates the buttons.
 
Methods inherited from class chemaxon.alchemist.AlchemistGlassPage
getFadeDelay, getFadeStep, isFadingEnabled, paint, setFadeDelay, setFadeStep, setFadingEnabled, setGlassImage, setVisible
 
Methods inherited from class chemaxon.alchemist.AlchemistPage
getGlassPane, getNotifier, hideProgressBar, isBottomTextVisible, isPageEnabled, isTopTextVisible, performLeavePage, setBottomText, setBottomTextVisible, setGlassPane, setPageEnabled, setTopText, setTopTextVisible, showProgressBar, showProgressBar, updateProgressBar, updateProgressBar
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, 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, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, 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

DEFAULT_VIEW

public static final int DEFAULT_VIEW
See Also:
Constant Field Values

COMPACT_VIEW

public static final int COMPACT_VIEW
See Also:
Constant Field Values

EXTENDED_VIEW

public static final int EXTENDED_VIEW
See Also:
Constant Field Values

defaultSize

protected java.awt.Dimension defaultSize

compactSize

protected java.awt.Dimension compactSize

extendedSize

protected java.awt.Dimension extendedSize
Constructor Detail

AlchemistApplicationInnerDialog

public AlchemistApplicationInnerDialog(AlchemistApplication application,
                                       javax.swing.Action acceptAction,
                                       javax.swing.Action cancelAction)
Constructs an AlchemistApplicationInnerDialog instance with ok and cancel actions

Parameters:
application - is the AlchemistApplication
acceptAction - is the action invoked when pressing ok
cancelAction - is the action invoked when pressing cancel

AlchemistApplicationInnerDialog

public AlchemistApplicationInnerDialog(AlchemistApplication application,
                                       javax.swing.Action closeAction)
Constructs an AlchemistApplicationInnerDialog instance with close action

Parameters:
application - is the AlchemistApplication
closeAction - is the action invoked when pressing cancel
Method Detail

setMainComponent

protected void setMainComponent(javax.swing.JComponent component)
Sets the main component

Parameters:
component - is the main component

isClosable

protected boolean isClosable()
Returns if panel is closable at current state Default implementation returns true

Returns:
if panel is closable at current state

getMessageLabel

protected AlchemistLabel getMessageLabel()

setPreferredSize

public void setPreferredSize(int viewMode,
                             java.awt.Dimension dimension)
Sets the preferred size for fiven mode

Parameters:
viewMode - the view mode (EXTENDED_VIEW, COMPACT_VIEW, DEFAULT_VIEW)
dimension - is the dimension

setViewMode

public void setViewMode(int viewMode)
Sets the given view mode

Parameters:
viewMode - is the view mode (EXTENDED_VIEW, COMPACT_VIEW, DEFAULT_VIEW)

getViewMode

public int getViewMode()
Returns the current view mode

Returns:
the current view mode

updateButtons

protected void updateButtons()
Updates the buttons. Default implementation enables or disables Accept button according to isCorrect(), and Cancel or Close buttons according to isClosable() NOTE: this modifies the button, not the action! All buttons are set to the same virtual action that invokes the action event further on the proper action.

See Also:
isCorrect(), isClosable()

enterPage

public void enterPage(AlchemistState state)
Default implementation does nothing

Specified by:
enterPage in class AlchemistPage
Parameters:
state - is the state object holding workflow data

isCorrect

public boolean isCorrect()
Default implementation returns true

Specified by:
isCorrect in class AlchemistPage
Returns:
boolean

leavePage

public void leavePage(AlchemistState state)
Default implementation does nothing

Specified by:
leavePage in class AlchemistPage
Parameters:
state - is the state object holding workflow data